Advertisement
Guest User

Untitled

a guest
Apr 11th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 3.02 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="ru" dir="ltr">
  3.  
  4. <head>
  5.   <meta charset="utf-8">
  6.   <title>Rainbow`s Dashboard</title>
  7.   <link rel="stylesheet" href="style.css">
  8.   <link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
  9. </head>
  10.  
  11. <style>
  12.  
  13.   body{
  14.   margin: 0;
  15.   padding: 0;
  16.   font-family: sans-serif;
  17.   background: #34495e;
  18. }
  19. .box{
  20.   width: 300px;
  21.   padding: 40px;
  22.   position: absolute;
  23.   top: 50%;
  24.   left: 50%;
  25.   transform: translate(-50%,-50%);
  26.   background: #191919;
  27.   text-align: center;
  28. }
  29. .box h1{
  30.   color: white;
  31.   text-transform: uppercase;
  32.   font-weight: 500;
  33. }
  34. .box input[type = "text"],.box input[type = "password"]{
  35.   border:0;
  36.   background: none;
  37.   display: block;
  38.   margin: 20px auto;
  39.   text-align: center;
  40.   border: 2px solid #3498db;
  41.   padding: 14px 10px;
  42.   width: 200px;
  43.   outline: none;
  44.   color: white;
  45.   border-radius: 24px;
  46.   transition: 0.25s;
  47. }
  48. .box input[type = "text"]:focus,.box input[type = "password"]:focus{
  49.   width: 280px;
  50.   border-color: #2ecc71;
  51. }
  52. .box input[type = "submit"]{
  53.   border:0;
  54.   background: none;
  55.   display: block;
  56.   margin: 20px auto;
  57.   text-align: center;
  58.   border: 2px solid #2ecc71;
  59.   padding: 14px 40px;
  60.   outline: none;
  61.   color: white;
  62.   border-radius: 24px;
  63.   transition: 0.25s;
  64.   cursor: pointer;
  65. }
  66. .box input[type = "submit"]:hover{
  67.   background: #2ecc71;
  68. }
  69.  
  70. </style>
  71.  
  72. <body>
  73.   <form class="box" action="profile.php" method="post">
  74.     <h2>Rainbow`s Dashboard</h2>
  75.     <input type="password" name="key" placeholder="Ваш ключ">
  76.     <input type="submit" name="" value="Вход">
  77.     <div id="howto">Для получения ключа введите команду <em>rb!key</em></div>
  78.   </form>
  79.   <?php
  80.  $servername = 'localhost'; // или же 'zonastro.com'
  81. $username = 'root';
  82. $password = 'rainbowdatabase2005';
  83. $dbname = 'rainbowsdatabase';
  84. $key = $_GET['privateKey'];
  85. $conn = new mysqli($servername, 'root', 'rainbowdatabase2005', 'rainbowsdatabase');
  86.  
  87.  if ($conn->connect_error) {
  88.     die("Connection failed: " . $conn->connect_error);
  89.   }
  90.   $sql = "SELECT * FROM users WHERE `privateKey` = '" . $key . "' LIMIT 1;";
  91.   $result = $conn->query($sql);
  92.  
  93.   if ($result->num_rows > 0) {
  94.     while ($row = $result->fetch_assoc()) {
  95.  
  96.       echo '<h1 class="money">Balance:</h1><h2>' . $row['money'] . '</h2> <h1 class="money" style="float:right; padding-right: 30px;">Logined as: ' . $row['tag'] . '</h1>';
  97.       echo '<h1 class="xp">XP:</h1><h2>' . $row['xp'] . '/' . $next . '</h2> <img style="float:right; height: 200px; width: 200px" src="' . $row['avatar'] . '">';
  98.       echo '<h1 class="level">Level:</h1><h2>' . $row['lvl'] . '</h2>';
  99.       echo '<h1 class="reputation">Rep:</h1><h2>' . $row['rep'] . '</h2>';
  100.       echo '<h1 class="booster">booster:</h1><h2>' . $row['booster'] . '</h2>'; // тут крч надо booster заменить на то значение которое выводит у вас множитель буста
  101.     }
  102.   } else {
  103.   }
  104.   $conn->close();
  105.   ?>
  106.  
  107. </body>
  108.  
  109. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement