Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- //gives '/home/lol/hey/public_html/zixi/' for example,
- //WITH THE ENDING /
- $filepathcombine = $_SERVER["DOCUMENT_ROOT"] . $_SERVER["PHP_SELF"];
- $filepath = substr($filepathcombine, 0, -9);
- $dbuser = '#';
- $dbpass = '#';
- $dbserver = '#';
- $dbdatabase = '#';
- $dbc = mysql_connect($dbserver, $dbuser, $dbpass);
- mysql_select_db($dbdatabase);
- //CONNECTED TO THE DATABASE.
- $myID = $_SESSION['zixiid'];
- $myUser = $_SESSION['zixiuser'];
- $myRank = $_SESSION['zixirank'];
- require_once($filepath . 'includes/functions.inc.php');
- //can the site be disabled?
- $cansiteoff = 1;
- //check if site is on or off
- $sitefile = '/home/dkfminfo/public_html/zixi/includes/ss.php';
- if (get_tag($sitefile, 'status') == 'OFF'){
- $siteon = false;
- } else {
- $siteon = true;
- }
- $personoffline = get_tag($sitefile, 'admin');
- $messageoffline = get_tag($sitefile, 'message');
- $timeonline = get_tag($sitefile, 'time');
- $timesetoffline = get_tag($sitefile, 'timeoffd');
- if ($myRank == 0){
- if ($cansiteoff == 1){
- if (!$_GET['act'] == 'login' || !$_GET['act'] == 'sitestatus'){
- if (!$siteon){
- //site offline
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement