daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <?php
  3.     session_start();
  4.     error_reporting(E_ERROR | E_PARSE);
  5.     include 'tabs.html';
  6.    
  7.     echo "<h1>Admin</h1>";
  8.     $_SESSION['hidden_pass'] = $_POST['password'];
  9.    
  10.     $db = new mysqli("localhost", "wordsroot", $_SESSION['hidden_pass'], "words");
  11.     if ($db->connect_errno) {
  12.         echo "<h3>Incorrect Password<h3>";
  13.         echo '<p><a style="text-decoration:none" href="/iwords">
  14.               <input type="submit" value="Try Again" /></a></p>';
  15.     }
  16.     else {
  17.         include 'password.html';
  18.     }
  19.    
  20. ?>
RAW Paste Data
Top