Advertisement
Guest User

yuy

a guest
May 16th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.41 KB | None | 0 0
  1. <?php
  2. session_start();
  3. ?>
  4. <html>
  5. <head>
  6. <title> SM Coin </title>
  7.   <script src="script.js"></script>
  8.       <link href="style.css" rel="stylesheet">
  9. </head>
  10. <body>
  11. <center> <h1 class="pink">SM Coin</h1>
  12.  
  13.   <div class="Aut">
  14.  <form action="" method="POST">
  15.      <h2>Авторизация</h2>
  16.  
  17.      
  18. <p>Логин: <input type="label"  name="username" maxlength="25" class="login" placeholder="  Ваш логин"  required></p>
  19.      
  20. <p>Пароль:<input type="password" name="password" maxlength="20" placeholder="   Ваш пароль" required></p>
  21.  
  22. <input type="submit" class="buttond" name="submitLogin" value=" Авторизация ">
  23. </form>
  24. </div>
  25. <?php
  26.  
  27. require('connect.php');
  28.  
  29. if(isset($_POST['username']) and isset($_POST['password'])){
  30. $username = $_POST['username'];
  31. $vkid = $_POST['vkid'];
  32. $password = $_POST['password'];    
  33.  
  34. $query= "SELECT * FROM users WHERE username='$username' and password='$password' ";
  35. $result= mysqli_query($mysqli,$query) or die (msqli_error($msqli));
  36. $count = mysqli_num_rows($result);
  37.  
  38.  
  39.  
  40. if ($count ==1){
  41.     $_SESSION['username'] = $username;
  42.     $_SESSION['id'] = $id;
  43.    
  44.    
  45. $querys = mysqli_query($mysqli, "SELECT moneysm FROM users WHERE id='$_SESSION[id]'");
  46. $results = mysqli_fetch_array($querys);
  47. $money = $results['moneysm'];
  48.  
  49. } else {
  50. $fmsg = "ERROR";
  51.  }
  52. }
  53. if (isset($_SESSION['username'])) {
  54. $username= $_SESSION['username'];
  55.  
  56.  echo '<style> .Aut {color:black; display:none;} </style>';
  57. echo "<center><div class='hello'><p>Здраствуйте сэр ".$username."  Добро пожаловать! <a href='logout.php' class='logout'> Выход</a></p></div></center>";
  58.  
  59.  
  60. echo "<style>.farm {color:white; display:block; width: 100%;} </style>";
  61. echo "<p>Внимание! Рекламный блок может быть скрыт от яндекс браузера и яндекса!</p>";
  62. echo "<p>Пожалуйста, отключите AdBlock!</p>";
  63. Echo "<p> BABLO".$money."</p>";
  64. }
  65.  
  66.  
  67. ?>
  68. <div class="coin"><p>Ваш баланс:  </p><?php $money  ?> sm coin </div>
  69.  
  70.  
  71.  
  72.  
  73. <p class="buttond"  style="text-align:center;"><a  target="_self" style="cursor: pointer; font-size:23px;  text-decoration: none; padding:10px 35px; color:#fcfcfc; background-color:#7032c7; border-radius:36px; border: 3px solid #71048c;" href="/DownVK.php" >Задания</a></p>
  74.  
  75. <p class="buttond"  style="text-align:center;"><a  target="_self" style="cursor: pointer; font-size:23px;  text-decoration: none; padding:10px 35px; color:#fcfcfc; background-color:#7032c7; border-radius:36px; border: 3px solid #71048c;" href="moution.php" >Смотреть рекламу</a></p>
  76.  
  77. <a class="back" href="index.php"> Назад </a>
  78.  
  79.  
  80.  
  81. <div class="farm">
  82.    
  83.  
  84.  
  85.  
  86.  
  87. </div>
  88.  
  89.  
  90.  
  91. <!-- Yandex.Metrika counter -->
  92. <script type="text/javascript" >
  93.    (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
  94.    m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
  95.    (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
  96.  
  97.    ym(53590669, "init", {
  98.         clickmap:true,
  99.         trackLinks:true,
  100.         accurateTrackBounce:true,
  101.         webvisor:true
  102.    });
  103. </script>
  104. <noscript><div><img src="https://mc.yandex.ru/watch/53590669" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
  105. <!-- /Yandex.Metrika counter -->
  106. </body>
  107. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement