[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
simpeg
/
mobile
/
[
Home
]
File: index.php
<?php require_once("configure_first.php"); $ket = ""; 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; $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.parent.document.location.href='".$msp["dsb"]."';</script>"; }else{ $ket = "Username atau Password anda salah."; } } ?> <!doctype html> <html lang="en"> <!-- --> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, shrink-to-fit=no, viewport-fit=cover"> <link rel="apple-touch-icon" href="img/f7-icon-square.html"> <link rel="icon" href="img/f7-icon.html"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="vendor/bootstrap-4.1.3/css/bootstrap.min.css"> <!-- Material design icons CSS --> <link rel="stylesheet" href="vendor/materializeicon/material-icons.css"> <!-- swiper carousel CSS --> <link rel="stylesheet" href="vendor/swiper/css/swiper.min.css"> <!-- app CSS --> <link id="theme" rel="stylesheet" href="css/style.css" type="text/css"> <title><?php echo $msp["title"];?></title> </head> <body class="color-theme-blue"> <form name="loginf" method="POST" action="<?php echo $msp["lgn"];?>"> <div class="loader justify-content-center "> <div class="maxui-roller align-self-center"> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> </div> </div> <div class="wrapper"> <!-- page main start --> <div class="page"> <div class="page-content h-100"> <div class="background theme-header"><img src="img/city2.jpg" alt=""></div> <div class="row mx-0 h-100 justify-content-center"> <div class="col-10 col-md-6 col-lg-4 my-3 mx-auto text-center align-self-center"> <img src="<?php echo $msp["logo"];?>" alt="" class="login-logo"> <h2 class="login-title"><small>Welcome to,</small><br><?php echo $msp["client"];?></h2> <br> <div class="login-input-content "> <?php if($ket <> "") {?> <div class="alert alert-dark" role="alert"> <?php echo $ket;?> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <?php } ?> <div class="form-group"> <input class="form-control rounded text-center" name="username" type="text" required="" id="username" placeholder="Enter Username/Email"> </div> <div class="form-group"> <input class="form-control rounded text-center" name="password" type="password" required="" id="password" placeholder="Password"> </div> <button type="submit" class="btn btn-block btn-success rounded border-0 z-3">Sign in</button> </div> <br> <br> <div class="row no-gutters"> <div class="col-6 text-left"><a href="#" class="text-white mt-3">Lupa Password?</a></div> <div class="col-6 text-right"><a href="#" class="text-white text-center mt-3">Daftar Baru</a></div> </div> </div> </div> </div> </div> <!-- page main ends --> </div> <!-- Optional JavaScript --> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="js/jquery-3.2.1.min.js"></script> <script src="js/popper.min.js"></script> <script src="vendor/bootstrap-4.1.3/js/bootstrap.min.js"></script> <!-- Cookie jquery file --> <script src="vendor/cookie/jquery.cookie.js"></script> <!-- sparklines chart jquery file --> <script src="vendor/sparklines/jquery.sparkline.min.js"></script> <!-- Circular progress gauge jquery file --> <script src="vendor/circle-progress/circle-progress.min.js"></script> <!-- Swiper carousel jquery file --> <script src="vendor/swiper/js/swiper.min.js"></script> <!-- Application main common jquery file --> <script src="js/main.js"></script> <!-- page specific script --> </form> </body> <!-- --> </html>