Advertisement
Guest User

Untitled

a guest
Mar 8th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. <?php
  2.  
  3. ob_start();
  4. session_start();
  5.  
  6. if(isset($_SESSION['account'])) {
  7. header('location:/');
  8. }
  9.  
  10. require_once("mainconfig.php");
  11.  
  12. ?>
  13. <html>
  14. <title>Login User</title>
  15. <link rel="shortcut icon" href="assets/images/favicon.ico">
  16. <link href="login-css/style.css" rel="stylesheet" type="text/css">
  17. <form role="form" method="POST" class="login-form" >
  18. <center><font color="yellow" size="5px"><b>TNG - CHECKER</b></font></center>
  19. <br>
  20. <center><b><font face="arial" color="yellow" size="4px">LOGIN</font></b></center>
  21. <p class="login-text">
  22.  
  23. </p>
  24. <?php if(isset($_POST['login'])) {
  25.  
  26. $username = $_POST['username'];
  27. $pass = $_POST['password'];
  28.  
  29. $cekuser = mysql_query("SELECT * FROM members WHERE username = '$username'");
  30. $jumlah = mysql_num_rows($cekuser);
  31. $get = mysql_fetch_array($cekuser);
  32. $hasil = mysql_fetch_assoc($cekuser);
  33. date_default_timezone_set('Asia/Jakarta');
  34. $tanggalnya = date('Y-m-d H:i:s');
  35. if($jumlah == 0) { // user tdk terdaftar ?>
  36. <div class="alert bg-danger">
  37. <i class="fa fa-info-circle"></i><font color="green"><b> GAGAL</b>: Username Enggak Ada , Daftar Dulu Atuh Boy</font>
  38. </div>
  39. <? } else {
  40. if(trim($_POST['password'])<>$get['password']) { // pass salah ?>
  41. <div class="alert bg-danger">
  42. <i class="fa fa-info-circle"></i><font color="red"><b> GAGAL</b>: Passwordnya Salah boy !</font>
  43. </div>
  44. <? } else {
  45. if($get['expdate'] < $tanggalnya) { // pass salah ?>
  46. <div class="alert bg-danger">
  47. <i class="fa fa-info-circle"></i><font color="red"><b> GAGAL</b>: Akun Anda Sudah Expired Silahkan Perpanjang Akun Anda Ke Team Kami <br></font>
  48. </div>
  49. <? } else {
  50. $_SESSION['account'] = $get;
  51. header('location:/');
  52. } } } } ?>
  53. <input class="login-username" type="text" name="username" placeholder="Username">
  54. <input class="login-password" type="password" name="password" placeholder="Password">
  55. <input name="login" type="submit" class="login-submit">
  56. <center><a href="register.php"><font class="daftar-user">DAFTAR</font></a></center>
  57. </form>
  58. <a href="https://www.facebook.com/people/Caesar-ID/100017957855323" class="login-forgot-pass"><b><font size="3px"><font color="red"><u>Lupa Password?</b></u></a></font>
  59. <div class="underlay-photo"></div>
  60. <div class="underlay-black"></div>
  61. <red
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement