Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.34 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Admin</title>
  4. <style type="text/css">
  5. <!--.body { font-family: Arial, Helvetica, sans-serif;  color: #FFFFFF; background-color: #666666;  width: 600px;   text-align: left;}.header { font-family: Arial, Helvetica, sans-serif;  font-size: 48px;    font-weight: bold;  color: #BBBBBB; background-color: #333333;  width: 600px;}.bottom { font-family: Arial, Helvetica, sans-serif;  color: #DDDDDD; background-color: #555555;  width: 600px;}body {    background-color: #222222;}.title { font-size: 20px;    font-weight: bold;}.copy {        font-size: 12px;}a:link { color: #EEEEEE; font-weight: bold;}a:visited {  color: #EEEEEE;}a:hover {   color: #FFFFFF;}-->
  6. </style>
  7. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
  8. <body onLoad="goto('less');">
  9. <div align="center">
  10. <div class="header">Admin</div>
  11. <div class="body">
  12. <?php
  13. $username=($_POST['username']);
  14. $password=($_POST['password']);
  15. if(md5($username)=="(md5 of username)"){
  16.    if(md5($password)=="(md5 of password)"){
  17.       session_register("username");
  18.       session_register("password");
  19.       header("location:admin.php");
  20.     }else{
  21.       echo "Wrong Username or Password";
  22.   }
  23. }else{
  24.   echo "Wrong Username or Password";
  25. }
  26. ?>
  27. </div>
  28. <div class="bottom">
  29. <a href="index.php">Home</a>
  30. <div align="right" class="copy">&copy;2010</div></div></div>
  31. </body>
  32. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement