Guest User

Untitled

a guest
Nov 3rd, 2017
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <?php
  2. require '../users/init.php';
  3.  
  4. // Idk if you need this really. Just for testing its handy as you can make this page protected anyways
  5. if(!$user->isLoggedIn()){
  6. die("REDIRECT TO HOME PAGE OR SOMETHING");
  7. }
  8.  
  9. // Site tile
  10. $site_title = "Vault of Memes";
  11.  
  12. //Rank Permission ID that can remove messages see: (https://i.imgur.com/a2jufGb.png ) fill in the permission id here
  13. $permID = "1";
  14.  
  15. //CONNECTION TO DATABASE
  16. $DBname = "id1512651_userspice";
  17. $DBuser = "id1512651_userspice";
  18. $pass = "e1k3%5PVuN*v";
  19. try {
  20. $conn = new PDO('mysql:host=localhost', $DBname, $DBuser, $pass);
  21.  
  22. } catch (PDOException $e) {
  23. print "Database connection lost/denied. See error: " . $e->getMessage() . "<br/>";
  24. die();
  25. }
  26.  
  27.  
  28. // Replace your path file on those lines ( I placed the path on ../shoutbox2/shoutbox.php ):
  29. // Messages.php : line 60
  30. // Index.php : line 57 , 85
  31. ?>
Add Comment
Please, Sign In to add comment