[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
simpeg
/
administrator
/
[
Home
]
File: index.php
<?php require_once("../lib/konek.php"); require_once("../lib/konfigurasi_semua.php"); // echo "<script>window.alert('Halo ".$_SESSION["hrd-id"]."');</script>"; if($_SESSION["hrd-id"] != 0) { header("Location:utama.php"); exit(); } if($_POST["username"] && $_POST["password"]) { $sql = "select * from hrd_user_login where user_name = '".$_POST["username"]."' and user_password = '".$_POST["password"]."'"; $qusr = mysql_query($sql); $usr = mysql_fetch_array($qusr); if($usr["user_id"]) { $ip = getenv("REMOTE_ADDR"); $sql = "select max(counter_id) as id from counter"; $Qrs = mysql_query($sql); $id = mysql_fetch_array($Qrs); $counterId = $id["id"]+1; // $skr=date("Y-m-d"); // $wkt = date("H:i:s"); $dataTgl = explode("-",$skr); $sql = "insert into counter (counter_id,counter_tgl,counter_wkt,counter_ip) values (".$counterId.",'".$skr."','".$wkt."','".$ip."')"; $rs = mysql_query($sql); $_SESSION["hrd-id"]=$usr["user_id"]; // echo "<script>window.alert('Selamat Datang di SIM HRD KMC ".$usr["user_name"]."');</script>"; // echo "<script>window.location.href('pgw_v.php');</script>"; // header("Location:master/pgw_v.php"); // exit(); echo"<script>window.parent.document.location.href='utama.php';</script>"; }else{ $ket = "Username atau Password anda salah."; } } //config buat isi html $dir_def_img = "../img"; $defFont = "<font face=Verdana, Arial, Helvetica, sans-serif size=2>"; $tFont = "</font>"; //end ?> <html> <head> <title>SIMPEG</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" type="text/css" href="../lib/lib-style.css"> </head> <body background="bg.jpg"> <form name="form1" method="POST" action="index.php"> <table border="0" cellspacing="0" cellpadding="0" width="100%" height="95%" align="center"> <tr align="center" valign="middle"> <td width="30%"> </td> <td width="40%"> <fieldset> <legend> <?php echo $defFont;?><b>Silahkan Login Terlebih Dahulu </b><?php echo $tFont;?> </legend> <table border="0" cellspacing="0" cellpadding="0" width="100%" align="center"> <tr> <td background="<?php echo $dir_def_img;?>/login_header.png" width="600" height="50" align="right" valign="bottom"><?php echo $defFont;?><b>SISTEM INFORMASI MANAJEMEN <BR>HUMAN RESOURSE DEVELOPMENT </b></td> </tr> <tr> <td background="<?php echo $dir_def_img;?>/header_bg.png" height="18" align="right" valign="bottom"><?php echo $defFont;?> <?php echo $tFont;?></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" align="center" bgcolor="#F1F3F5"> <tr> <td> <br> <table border="0" cellspacing="0" cellpadding="0" width="400" align="center"> <tr> <td width="124" align="center"><img src="<?php echo $dir_def_img;?>/support.png" border="0"></td> <td align="left" valign="top"> <?php echo $defFont;?>Masukkan username dan password.<?php echo $tFont;?><br> <table border="0" cellspacing="0" cellpadding="0" width="100%" align="left"> <tr> <td width="30%">Username</td> <td width="70%"> <input type="text" name="username" value="<?php echo $_POST["username"];?>" size="17" maxlength="255" class="textField"> </td> </tr> <tr> <td>Password</td> <td> <input type="password" name="password" value="<?php echo $_POST["password"];?>" size="17" maxlength="255" class="textField"> </td> </tr> <tr> <td colspan="2" align="center"><input type="submit" name="btnLogin" value="Login" class="textField"></td> </tr> </table> </td> </tr> </table> <br> </td> </tr> <tr> <td background="<?php echo $dir_def_img;?>/header_bg.png" height="18" align="right" valign="bottom"><?php echo $defFont;?> <?php echo $tFont;?></td> </tr> </table> </fieldset> </td> <td width="30%"> </td> </tr> </table> </form> </body> </html>