<?php
include_once 'Auth_simple/Auth_Simple.php';
if($_POST['go'] == "true"){
Auth_Simple::__addUser($_POST['username'], $_POST['password']);
header('Location: login.php');
}
$theme = "default";
?>
<html>
<head>
<title>Register</title>
<link href="theme/<?php echo $theme;?>/css/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<br/><br/>
<center>
<table cellspacing="5" cellpadding="0" border="0" align="center" id="tbl_global">
<tr>
<td>
<h3>Register: </h3>
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
<table cellpadding="2" cellspacing="0" border="0" class="default">
<tr>
<td id="borders">Username: </td>
<td id="borders"><input type="text" name="username" /></td>
</tr>
<tr>
<td id="borders">Password: </td>
<td id="borders"><input type="text" name="password" /></td>
</tr>
<tr>
<td id="borders" colspan="2"><input type="submit" value="Register"><input type="hidden" name="go" value="true"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</center>
</body>
</html>