Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @session_save_path("");
- @session_start();
- /******************************************************
- ------------------Required Configuration---------------
- Please edit the following variables so the members area
- can work correctly.
- ******************************************************/
- if (!isset($_SESSION['admin']) || $_SESSION['admin'] != 1) {
- //die('We are updating PokemonSoulless RPG Please Stand By.');
- }
- $connection = mysql_connect("localhost", "username", "password") or die(mysql_error());
- $dbSelected = mysql_select_db('database', $connection) or die (mysql_error());
- $mail_webmaster = 'email@email.com';
- $url_root = 'http://site.com/';
- $admin='admin';
- /******************************************************
- -----------------Optional Configuration----------------
- ******************************************************/
- //Home page file name
- $url_home = 'membersarea.php';
- //Design Name
- $design = 'default';
- // asdd stuffz
- $filename = end( explode('/', $_SERVER["SCRIPT_NAME"]) );
- if ($filename != 'battle.php' && $filename != 'battle2.php') {
- unset($_SESSION['battle']);
- }
- if (isset($_SESSION['userid'])) {
- $uid = (int) $_SESSION['userid'];
- $time = time();
- mysql_query("UPDATE `users` SET `lastseen`='{$time}' WHERE `id`='{$uid}' LIMIT 1");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement