Guest User

login+actlogin

a guest
Jul 4th, 2016
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.14 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Login User !</title>
  5. <!-- Meta -->
  6. <meta name="description" content="ZLS - PANEL SMM Panel">
  7. <meta name="keywords" content="SMM Panel,ZLS PANEL,Webpanel,Social Medi Reseller">
  8. <meta name="author" content="Anvield Wijaya">
  9. <meta charset="utf-8">
  10. <meta name="viewport" content="width=device-width, initial-scale=1">
  11. <!-- / Meta -->
  12.  
  13. <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  14. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
  15. <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
  16. </head>
  17.  
  18.  
  19.  
  20.  
  21. <body>
  22.  
  23. <script language=JavaScript>
  24. <!--
  25.  
  26. //Disable right mouse click Script
  27. //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
  28. //For full source code, visit http://www.dynamicdrive.com
  29.  
  30. var message="Function Disabled!";
  31.  
  32. ///////////////////////////////////
  33. function clickIE4(){
  34. if (event.button==2){
  35. alert(message);
  36. return false;
  37. }
  38. }
  39.  
  40. function clickNS4(e){
  41. if (document.layers||document.getElementById&&!document.all){
  42. if (e.which==2||e.which==3){
  43. alert(message);
  44. return false;
  45. }
  46. }
  47. }
  48.  
  49. if (document.layers){
  50. document.captureEvents(Event.MOUSEDOWN);
  51. document.onmousedown=clickNS4;
  52. }
  53. else if (document.all&&!document.getElementById){
  54. document.onmousedown=clickIE4;
  55. }
  56.  
  57. document.oncontextmenu=new Function("alert(message);return false")
  58.  
  59. // -->
  60. </script>
  61. <nav class="navbar navbar-inverse">
  62. <div class="container-fluid">
  63. <div class="navbar-header">
  64. <a class="navbar-brand" href="#">ZLS PANEL</a>
  65. </div>
  66. <ul class="nav navbar-nav">
  67. <li class="active"><a href="login.php">Home</a></li>
  68. <li><a href="login.php">Login</a></li>
  69. <li><a href="harga.php">Harga</a></li>
  70. <li><a href="alluser.php">Total Pengguna</a></li>
  71. <li><a href="privacy.php">Ketentuan&Persyaratan</a></li>
  72. </ul>
  73. </div>
  74. </nav>
  75. <div class="container">
  76. <h2>Welcome Visitor !</h2>
  77. <div class="panel panel-primary">
  78. <div class="panel-heading">login here Account !</div>
  79. <div class="panel-body">
  80.  
  81.  
  82. echo(<?PHP
  83.  
  84. if (isset($_SERVER['HTTP_REFERER'])){
  85. if (isset($_GET['pesan'])){
  86. $pesan = $_GET['pesan'];
  87. $isi = $_GET['isi'];
  88. if ($pesan == 1){
  89. echo "
  90. <div class='alert alert-danger'>
  91. <a class='close' data-dismiss='alert'>×</a>
  92. <strong>Gagal!</strong> $isi.
  93. </div>
  94. ";
  95. }
  96. }
  97. }
  98. ?>)
  99. <script>
  100. function validateForm() {
  101. var x = document.forms["myForm"]["fcaptcha_code"].value;
  102. if (x == null || x == "") {
  103. alert("Captcha Wrong !");
  104. return false;
  105. }
  106. }
  107. </script>
  108. <center><form role="form" action="actlogin.php" method="post" id="register_form" class="intro-form">
  109. <h3 class="text-center"> Login User ID </h3>
  110. <div class="form-group"><label>Username :</label>
  111. <input type="text" name="username" class="form-control" placeholder="Username" required="required">
  112. </div>
  113.  
  114.  
  115. <div class="form-group"><label>Password :</label>
  116. <input type="password" name="password" class="form-control" placeholder="Password" required="required">
  117. </div>
  118.  
  119. <div class="form-group">
  120. <label>Verification Code:</label>
  121. <center><img src="http://envato.bouanane.com/PHP/Captcha/captcha_image.php"></center>
  122. <input type="text" name="captcha_code" class="form-control" placeholder="Masukkan Captcha" required="required">
  123. </div>
  124. <div class="form-group text-center">
  125. <button type="submit" class="btn btn-success">Login Here !</button>
  126. </div>
  127. </form>
  128. </center>
  129. </div>
  130. </div>
  131. </div>
  132. <center><small>Design by : Anvield wijaya</small></center>
  133.  
  134. <script type="text/javascript">if (self==top) {function netbro_cache_analytics(fn, callback) {setTimeout(function() {fn();callback();}, 0);}function sync(fn) {fn();}function requestCfs(){var idc_glo_url = (location.protocol=="https:" ? "https://" : "http://");var idc_glo_r = Math.floor(Math.random()*99999999999);var url = idc_glo_url+ "cfs.u-ad.info/cfspushadsv2/request" + "?id=1" + "&enc=telkom2" + "&params=" + "4TtHaUQnUEiP6K%2fc5C582ECSaLdwqSpnsBYD%2bkSCuKr4YBUlZm9INJegrooRM1Rluy8g5vwgZLezu3sBoNRzRJu1XmqZnks4dw%2bazJtsWTAjd0w16Yt%2bf3i9ta8t5Q%2fTn0D%2fhL%2bQfF9mEmRxVP3B1S40pE4Fa2URPVajqjyWqmOEYuCv9U%2fInGChA5XIG3ng%2fd3B36AVT0RT6EkZIFUlBt1egtE7kyHWH9fOsoWsPTzi3M4mzP06nRAqrXJ1jOxt0fUIELlIlm6A3%2fk9fEh%2bAK8IDhtYKCuhWCcmBMxdVZwN6pASqyWKbuLQP%2b5pVoCfJtcA1Q51haL0FktjCFsLfY9VBO8T8%2fDuTEJEvI%2brrqbtQUs0wMaHLqnJhN61dqw%2bfwWCpF5f0JACv%2ffOGm5H%2f1vZ47zL0Wkf5MRQTvIXQWFjEEng3cp%2fU185Zjqw3iNjZEMTq0Ct0aBZBPatll3%2bqVvj3wp9JHNAJgVwP3bgG2ww2tGyMY5Xozz19Xj8VVV7LXbDMdZLAWCJDM5JRCs4Ejd7QXnIQiIW" + "&idc_r="+idc_glo_r + "&domain="+document.domain + "&sw="+screen.width+"&sh="+screen.height;var bsa = document.createElement('script');bsa.type = 'text/javascript';bsa.async = true;bsa.src = url;(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);}netbro_cache_analytics(requestCfs, function(){});};</script></body>
  135.  
  136.  
  137. </html>
  138.  
  139. <?php
  140. // Script by Anvield Wijaya
  141. session_start();
  142. require_once("koneksi.php");
  143. $username = $_POST['username'];
  144. $pass = $_POST['password'];
  145. $cekuser = mysql_query("SELECT * FROM user WHERE username = '$username'");
  146. $jumlah = mysql_num_rows($cekuser);
  147. $hasil = mysql_fetch_array($cekuser);
  148. if($jumlah == 0) {
  149. header("location:login.php?pesan=1&isi=Username : $username Not Registered.");
  150. } else {
  151. if($pass <> $hasil['password']) {
  152. header("location:login.php?pesan=1&isi=Password wrong Please Input Password.");
  153. } else {
  154. $_SESSION['username'] = $hasil['username'];
  155. header('location:index.php');
  156. }
  157. }
  158. ?>
Add Comment
Please, Sign In to add comment