Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));
- include "lib/connect.php";
- if ($GET['login']) {
- include("lib/login.php");
- /*VARS*/
- $mysql_database= $dbconf['dbname'];
- $mysql_hostname= $dbconf['host'];
- $mysql_username= $dbconf['dbuser'];
- $mysql_password= $dbconf['dbpass'];
- $table_name= "user";
- $table_username= "username";
- $table_password= "password";
- $query_username= $_POST['uname'];
- $query_password= md5($_POST['pass']);
- $redirect_accepted= "index.php";
- $redirect_denied= "index2.php";
- $redirect_oprindex= "oprindex.php";
- /*CREATE CLASS*/
- $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);
- $a->login_mysql();
- $a->login_check();
- }
- ?>
- <style>
- body {
- background-color: #e0ffff;
- font-family: helvetica;
- background-image: url(image/bg.jpg);
- background-repeat: repeat-y repeat-x;
- }
- #FLogin{
- position: absolute;
- top: 50%;
- left: 50%;
- margin-top: -200px;
- margin-left: -200px;
- font-size: 14px;
- color: #FFEFD5;
- border: 1px solid #FFC0CB;
- background-color: #D8BFD8;
- }
- #FLogin .top{
- height: 60px;
- border-bottom: 1px solid #ffffff;
- color: #ffffff;
- }
- </style>
- <div id="FLogin">
- <form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>?login=1" >
- <table width="340" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan='5' class="top"><center><b><h2>LOGIN ADMIN</h2></b></center></td>
- </tr>
- <tr>
- <td colspan='5' height='4'></td>
- </tr>
- <tr>
- <td rowspan="4"> <img src="image/login.png" width="60" height="60" /></td>
- <td style="color:#fff "> Username </td>
- <td style="color: #fff">:</td>
- <td> <input type="text" name="uname" id="idusername" tabindex=1 size=24 maxlength=20 ></td>
- </tr>
- <tr>
- <td colspan='2'height='0'></td>
- </tr>
- <tr>
- <td style="color:#fff "> Password</td>
- <td style="color: #fff">:</td>
- <td> <input type="password" name="pass" id="idpassword" tabindex=2 size=24 maxlength=20 ></td>
- </tr>
- <tr>
- <td colspan='5'height='4'></td>
- </tr>
- <tr>
- <td colspan='2'height="20"></td>
- <td colspan="3"> <input type="submit" name="tombol" value=" Login " style=" border: 1px solid #666666; background-color:#fff "></td>
- </tr>
- <tr>
- <td colspan='5'height='10'></td>
- </tr>
- </table>
- </form>
- </div>
Add Comment
Please, Sign In to add comment