Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. <?
  2.  
  3. require_once("include/bittorrent.php");
  4.  
  5. dbconn();
  6.  
  7. stdhead("Login");
  8.  
  9. unset($returnto);
  10. if (!empty($_GET["returnto"])) {
  11. $returnto = $_GET["returnto"];
  12. if (!$_GET["nowarn"]) {
  13. print("<h1>Not logged in!</h1>\n");
  14. print("<p><b>Error:</b> The page you tried to view can only be used when you're logged in.</p>\n");
  15. }
  16. }
  17.  
  18. ?>
  19. <form method="post" action="takelogin.php">
  20. <p>Note: You need cookies enabled to log in.</p>
  21. <table border="0" cellpadding=5>
  22. <tr><td class=rowhead>Username:</td><td align=left><input type="text" size=40 name="username" /></td></tr>
  23. <tr><td class=rowhead>Password:</td><td align=left><input type="password" size=40 name="password" /></td></tr>
  24. <tr><td class=rowhead>Enter code:</td><td align=left><input type="text" size="10" name="code" /></td></tr>
  25. <tr><td class=rowhead>Generated code:</td><td align=center><img src="securimage_show.php"></td></tr>
  26. <!--<tr><td class=rowhead>Duration:</td><td align=left><input type=checkbox name=logout value='yes' checked>Log me out after 15 minutes inactivity</td></tr>-->
  27. <tr><td colspan="2" align="center"><input type="submit" value="Log in!" class=btn></td></tr>
  28. </table>
  29. <?
  30.  
  31. if (isset($returnto))
  32. print("<input type=\"hidden\" name=\"returnto\" value=\"" . htmlspecialchars($returnto) . "\" />\n");
  33.  
  34. ?>
  35. </form>
  36. <p>Don't have an account? <a href="signup.php">Sign up</a> right now!</p>
  37. <?
  38.  
  39. stdfoot();
  40.  
  41. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement