Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <?php
  2.  
  3. include '../users/init.php';
  4.  
  5.  
  6. // Idk if you need this really. Just for testing its handy as you can make this page protected anyways
  7.  
  8. if (!$user->isLoggedIn()) {
  9.  
  10. die("You must be logged in");
  11.  
  12. }
  13.  
  14. // What message should it say when clearing the shoutbox, Recommend to have it between <b> tags
  15. $cleared = "<b>Just cleared the shoutbox</b>";
  16.  
  17.  
  18. // Site tile
  19.  
  20. $site_title = "Vault of Memes";
  21.  
  22.  
  23. //Rank Permission ID that can remove messages see: (https://i.imgur.com/a2jufGb.png ) fill in the permission id here
  24.  
  25. $permID = "2";
  26.  
  27.  
  28. //CONNECTION TO DATABASE
  29.  
  30. $DBuser = "root";
  31.  
  32. $pass = "";
  33.  
  34. try {
  35.  
  36. $conn = new PDO('mysql:host=localhost;dbname=tyla', $DBuser, $pass);
  37.  
  38.  
  39. } catch (PDOException $e) {
  40.  
  41. print "Database connection lost/denied. See error: " . $e->getMessage() . "<br/>";
  42.  
  43. die();
  44.  
  45. }
  46.  
  47. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement