Advertisement
Guest User

Untitled

a guest
Feb 1st, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.14 KB | None | 0 0
  1. <?php
  2. include 'config.php';
  3. ?>
  4.  
  5. <?php
  6.  
  7. if(isset($_COOKIE['login']))
  8. {
  9. if($_COOKIE['login'] != $username)
  10. {
  11. setcookie(
  12. "login",
  13. '',
  14. time()
  15. );
  16. }
  17. ?>
  18. <!DOCTYPE html>
  19. <html lang="en">
  20. <head>
  21. <meta charset="utf-8">
  22. <meta name="robots" content="none">
  23. <title>HELLO</title>
  24. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
  25. <style>
  26. * {
  27.  
  28. }
  29. html, body {
  30. background-color: #000000;
  31. }
  32. div {
  33. width: 275px;
  34. height: 7000px;
  35. float: left;
  36. }
  37. iframe {
  38. width: 100%;
  39. height: 100%;
  40. formborder: 0;
  41. border: none;
  42. overflow-x:scroll;
  43. }
  44. </style>
  45. </head>
  46. <body>
  47. <div>
  48. <iframe src="Vultr/settings1.php" scrolling="auto"></iframe>
  49. </div>
  50. <div>
  51. <iframe src="DigitalOcean/settings_do1.php" scrolling="auto"></iframe>
  52. </div>
  53. <div>
  54. <iframe src="DigitalOcean/settings_do1.php" scrolling="auto"></iframe>
  55. </div>
  56. <div>
  57. <iframe src="DigitalOcean/settings_do1.php" scrolling="auto"></iframe>
  58. </div>
  59. <div>
  60. <iframe src="DigitalOcean/settings_do1.php" scrolling="auto"></iframe>
  61. </div>
  62. <div>
  63. <iframe src="DigitalOcean/settings_do1.php" scrolling="auto"></iframe>
  64. </div>
  65. <div>
  66. <iframe src="DigitalOcean/settings_do1.php" scrolling="auto"></iframe>
  67. </div>
  68. <div>
  69. <iframe src="DigitalOcean/settings_do1.php" scrolling="auto"></iframe>
  70. </div>
  71. <div>
  72. <iframe src="" scrolling="auto"></iframe>
  73. </div>
  74. <div>
  75. <iframe src="" scrolling="auto"></iframe>
  76. </div>
  77.  
  78. </body>
  79.  
  80. </html>
  81. <?php
  82. }
  83. else
  84. {
  85.  
  86. ?>
  87.  
  88. <!DOCTYPE html>
  89. <html lang="en">
  90. <head>
  91. <meta charset="utf-8">
  92. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  93. <meta name="viewport" content="width=device-width, initial-scale=1">
  94. <meta name="robots" content="none">
  95. <title>HELLO</title>
  96. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
  97. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.7/cyborg/bootstrap.min.css">
  98. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
  99. <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
  100. <!--[if lt IE 9]>
  101. <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
  102. <script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
  103. <![endif]-->
  104. <style>
  105. * {
  106.  
  107. }
  108. html {
  109.  
  110. }
  111. body {
  112. padding-top: 50px;
  113. overflow-x:scroll;
  114. }
  115. a, a:link, a:active, a:hover {
  116. text-decoration: none;
  117. }
  118. </style>
  119. </head>
  120. <body>
  121. <!-- -->
  122.  
  123. <div class="container-fluid" style="position: relative; left:40%; right:50%;">
  124.  
  125. <div class="row">
  126. <div class="col-lg-3 text-center">
  127.  
  128. <h6><a href=""></a></h6>
  129. <p style="text-align: center;"><img style="display: block; margin-left: auto; margin-right: auto;" src="https://i.imgur.com/1yTq3Ni.png" alt="" width="180" height="230" /></p>
  130. <h5 style="text-align: center;"><strong><span style="text-decoration: ;"><span style="color: #14b637; text-decoration: ;">HELLO</span></span></strong></h5>
  131. <h5 style="text-align: center;"><strong><span style="text-decoration: ;"><span style="color: #14b637; text-decoration: ;">PLEASE LOGIN</span></span></strong></h5>
  132. <hr>
  133.  
  134. <?php
  135. if(isset($_POST['loginBtn']))
  136. {
  137. include 'config.php';
  138. $username = $_POST['username'];
  139. $postedPassword = $_POST['password'];
  140. if($postedPassword == $password)
  141. {
  142. //Set the cookie
  143. setcookie(
  144. "login",
  145. $username,
  146. time() + (10 * 365 * 24 * 60 * 60)
  147. );
  148.  
  149. echo '<div class="alert alert-success"> Login Successful.</div> <meta http-equiv="refresh" content="3;URL=" /> ';
  150. }
  151. else
  152. {
  153. echo "<div class='alert alert-danger'> Invalid Username and password.</div>";
  154. }
  155. }
  156. ?>
  157. </div>
  158. </div>
  159. </div>
  160.  
  161.  
  162.  
  163. <div class="container-fluid" style="position: relative; left:40%; right:50%;">
  164. <div class="row">
  165. <div class="col-lg-3">
  166. <div class="panel panel-default">
  167. <div class="panel-heading">Login</div>
  168. <div class="panel-body">
  169. <form class="form" method="post">
  170.  
  171. <div class="form-group">
  172. <input class="form-control" id="prefix" type="text" name="username" placeholder="Username">
  173. </div>
  174.  
  175.  
  176. <div class="form-group">
  177. <input class="form-control" id="prefix" type="text" name="password" placeholder="Password">
  178. </div>
  179. <button class="btn btn-primary btn-lg btn-block" id="list" type="submit" name="loginBtn">Login </button>
  180. </form>
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186.  
  187. <div class="container-fluid" style="position: relative; left:40%; right:50%;">
  188. <div class="row">
  189. <div class="col-lg-3 text-center">
  190. <hr>
  191. <p><small>&copy; <?= date('Y') ?> <a href="" target="_blank"></a></small></p>
  192. </div>
  193. </div>
  194. </div>
  195. </body>
  196. </html>
  197.  
  198. <?php
  199. }
  200. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement