Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- error_reporting(E_ERROR | E_PARSE);
- include 'tabs.html';
- echo "<h1>Admin</h1>";
- $_SESSION['hidden_pass'] = $_POST['password'];
- $db = new mysqli("localhost", "wordsroot", $_SESSION['hidden_pass'], "words");
- if ($db->connect_errno) {
- echo "<h3>Incorrect Password<h3>";
- echo '<p><a style="text-decoration:none" href="/iwords">
- <input type="submit" value="Try Again" /></a></p>';
- }
- else {
- include 'password.html';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement