Guest User

veawsm

a guest
Oct 5th, 2017
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. <?php
  2. error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));
  3. include "lib/connect.php";
  4.  
  5. if ($GET['login']) {
  6. include("lib/login.php");
  7.  
  8. /*VARS*/
  9. $mysql_database= $dbconf['dbname'];
  10. $mysql_hostname= $dbconf['host'];
  11. $mysql_username= $dbconf['dbuser'];
  12. $mysql_password= $dbconf['dbpass'];
  13.  
  14. $table_name= "user";
  15. $table_username= "username";
  16. $table_password= "password";
  17. $query_username= $_POST['uname'];
  18. $query_password= md5($_POST['pass']);
  19.  
  20. $redirect_accepted= "index.php";
  21. $redirect_denied= "index2.php";
  22. $redirect_oprindex= "oprindex.php";
  23.  
  24. /*CREATE CLASS*/
  25. $a = new loginn($mysql_database, $mysql_hostname, $mysql_username, $mysql_password, $query_username, $query_password, $table_name, $table_username, $table_password, $redirect_accepted, $redirect_denied, $redirect_oprindex);
  26. $a->login_mysql();
  27. $a->login_check();
  28.  
  29. }
  30. ?>
  31.  
  32. <style>
  33. body {
  34. background-color: #e0ffff;
  35. font-family: helvetica;
  36. background-image: url(image/bg.jpg);
  37. background-repeat: repeat-y repeat-x;
  38. }
  39. #FLogin{
  40. position: absolute;
  41. top: 50%;
  42. left: 50%;
  43. margin-top: -200px;
  44. margin-left: -200px;
  45. font-size: 14px;
  46. color: #FFEFD5;
  47. border: 1px solid #FFC0CB;
  48. background-color: #D8BFD8;
  49. }
  50. #FLogin .top{
  51. height: 60px;
  52. border-bottom: 1px solid #ffffff;
  53. color: #ffffff;
  54. }
  55. </style>
  56. <div id="FLogin">
  57. <form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>?login=1" >
  58. <table width="340" border="0" cellpadding="0" cellspacing="0">
  59. <tr>
  60. <td colspan='5' class="top"><center><b><h2>LOGIN ADMIN</h2></b></center></td>
  61. </tr>
  62. <tr>
  63. <td colspan='5' height='4'></td>
  64. </tr>
  65. <tr>
  66. <td rowspan="4">&nbsp;&nbsp;<img src="image/login.png" width="60" height="60" /></td>
  67. <td style="color:#fff ">&nbsp;Username </td>
  68. <td style="color: #fff">:</td>
  69. <td>&nbsp;<input type="text" name="uname" id="idusername" tabindex=1 size=24 maxlength=20 ></td>
  70. </tr>
  71. <tr>
  72. <td colspan='2'height='0'></td>
  73. </tr>
  74. <tr>
  75. <td style="color:#fff ">&nbsp;Password</td>
  76. <td style="color: #fff">:</td>
  77. <td>&nbsp;<input type="password" name="pass" id="idpassword" tabindex=2 size=24 maxlength=20 ></td>
  78. </tr>
  79. <tr>
  80. <td colspan='5'height='4'></td>
  81. </tr>
  82. <tr>
  83. <td colspan='2'height="20"></td>
  84. <td colspan="3">&nbsp;&nbsp;<input type="submit" name="tombol" value=" Login " style=" border: 1px solid #666666; background-color:#fff "></td>
  85. </tr>
  86. <tr>
  87. <td colspan='5'height='10'></td>
  88. </tr>
  89. </table>
  90. </form>
  91. </div>
Add Comment
Please, Sign In to add comment