Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = "bas";
- $password = "admin";
- $nonsense = "supercalifragilisticexpialidocious";
- setcookie("PrivatePageLogin", "", time()-3600);
- if (isset($_COOKIE['PrivatePageLogin'])) {
- if ($_COOKIE['PrivatePageLogin'] == md5($password.$nonsense)) {
- ?>
- <!-- LOGGED IN CONTENT HERE -->
- <?php
- $con = mysqli_connect("localhost","id4660423_baswortman","csgobas","id4660423_users");
- // Check connection
- if (mysqli_connect_errno())
- {
- die("Failed to connect to MySQL: " . mysqli_connect_error());
- }
- if (!$result = mysqli_query($con,"SELECT * FROM csgo"))
- {
- die("Error: " . mysqli_error($con));
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement