Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* --------------------------------------------------------
- * Uber Panel :: A prive licenced Content Management Panel
- * --------------------------------------------------------
- *
- * Copyright (C) Finley Siebert. All rights reserved
- * 2013 - 2014
- *
- * --------------------------------------------------------
- */
- $sitename = "uber-panel";
- $url = "http://finleyhd.nl/uber-panel";
- error_reporting(E_ALL);
- session_start();
- $conn = new MySQLi("localhost", "", "", "finley_uber-panel");
- if($conn->connect_errno){
- echo"<div class='announcement fail'>Uber Panel -> ". $conn->connect_error ."</div>";
- }
- class User {
- public function __construct($session) {
- $this->session = $session;
- }
- public function grabData($k) {
- global $conn;
- $q = $conn->query("SELECT * FROM users WHERE email='$this->session'") or die(mysqli_error());
- $r = mysqli_fetch_assoc($q);
- return $r[$k];
- }
- }
- $user = new User($_SESSION['email']);
- $username = $user->grabData('username');
- $user_query = $conn->query("SELECT * FROM `private_messages` WHERE `touser` = '$username' AND `mark` = 0") or die($conn->error);
- $unread_messages = $user_query->num_rows;
- $secret_hash = "cbf28fe95080b7ab82135d105a5026be";
- $main_story = '
- Welcome to <font color="#89c9cd">Uber-Panel</font>!<br />
- My name is <b>Finley</b> and I am the system administrator. You can ask me anything you want, just PM!<br />
- Before you continue you must now a few things!<br /><br />
- - Your ip is logged, so dont try anything suspisius.<br />
- - Be aware that this is an BETA version of the system and not fully developed yet<br />
- - Have fun <br />
- - Please report any bugs <br />
- - If you think there is something wrong, please send a pm to finley<br /><br />
- If you act normal, and use the site were it is ment for, nothing is wrong. I asure you that there will be more!<br /><br />
- Enjoy<br />
- Finley
- ';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment