Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require '../users/init.php';
- // Idk if you need this really. Just for testing its handy as you can make this page protected anyways
- if(!$user->isLoggedIn()){
- die("REDIRECT TO HOME PAGE OR SOMETHING");
- }
- // Site tile
- $site_title = "Vault of Memes";
- //Rank Permission ID that can remove messages see: (https://i.imgur.com/a2jufGb.png ) fill in the permission id here
- $permID = "1";
- //CONNECTION TO DATABASE
- $DBname = "id1512651_userspice";
- $DBuser = "id1512651_userspice";
- $pass = "e1k3%5PVuN*v";
- try {
- $conn = new PDO('mysql:host=localhost', $DBname, $DBuser, $pass);
- } catch (PDOException $e) {
- print "Database connection lost/denied. See error: " . $e->getMessage() . "<br/>";
- die();
- }
- // Replace your path file on those lines ( I placed the path on ../shoutbox2/shoutbox.php ):
- // Messages.php : line 60
- // Index.php : line 57 , 85
- ?>
Add Comment
Please, Sign In to add comment