Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include '../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("You must be logged in");
- }
- // What message should it say when clearing the shoutbox, Recommend to have it between <b> tags
- $cleared = "<b>Just cleared the shoutbox</b>";
- // 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 = "2";
- //CONNECTION TO DATABASE
- $DBuser = "root";
- $pass = "";
- try {
- $conn = new PDO('mysql:host=localhost;dbname=tyla', $DBuser, $pass);
- } catch (PDOException $e) {
- print "Database connection lost/denied. See error: " . $e->getMessage() . "<br/>";
- die();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement