<?
/*
//||||||||||||||||||||||||||||||||||||||||||||||||\\
\\*          SUPER HERO MOD WEB STATS 3.0         //
//                                                \\
\\  Written By ShadowLeader aka 123 (Tim Hansen)  //
//                                                \\
\\              http://SH-MOD.TK                  //
//          Email: shadowleader@jubii.dk          \\
\\          MSN: shadowleader11@hotmail.com       //
//                                                \\
\\   You are allowed to edit anything in these    //
//     files, as long as these lines remain.      \\
\\                                                //
//   If you have any trouble with the system,     \\
\\       go to www.SH-MOD.TK to get help.         //
//                                                \\
\\   Thanks to:                                   //
//   AlleyKat - Help with Template system         \\
\\   MajesticM00se - A little code                //
//   Vittu - Finding bugs                         \\
\\||||||||||||||||||||||||||||||||||||||||||||||||//
*/

require "include/header.php";

dbconn(true);

stdhead();
/////////START/////////
?>
<?
unset($returnto);
if (!empty($_GET["returnto"])) {
	$returnto = $_GET["returnto"];
	if (!$_GET["nowarn"]) {
		print("<h1>Not logged in!</h1>\n");
		print("<p><b>Error:</b> The page you tried to view can only be used when you're logged in.</p>\n");
	}
}

?>
<form method="post" action="takelogin.php">
<p>Note: You need cookies enabled to log in.</p>
<table width=100%>
<tr>
  <td colspan="2">Login</td>
</tr>
<tr>
 <td width=8%>Username:</td>
 <td width=92%><input type="text" size=40 name="username" class="input" /></td>
</tr>
<tr>
 <td width=8%>Password:</td>
 <td width=92%><input type="password" size=40 name="password" class="input" /></td>
</tr>
<tr>
  <td colspan="2"><input type="submit" value="Log in!" class="input"></td>
</tr>
</table>
<?
if (isset($returnto))
	print("<input type=\"hidden\" name=\"returnto\" value=\"" . htmlspecialchars($returnto) . "\" />\n");
?>
</form>
<p>How do I get my own account? Answer <a href="howto.php">here</a></p>
<?
/////////END/////////
stdfoot();
?>