Advertisement
Guest User

Untitled

a guest
May 8th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. <?php
  2. session_start();
  3. //gives '/home/lol/hey/public_html/zixi/' for example,
  4. //WITH THE ENDING /
  5. $filepathcombine = $_SERVER["DOCUMENT_ROOT"] . $_SERVER["PHP_SELF"];
  6. $filepath = substr($filepathcombine, 0, -9);
  7.  
  8. $dbuser = '#';
  9. $dbpass = '#';
  10. $dbserver = '#';
  11. $dbdatabase = '#';
  12. $dbc = mysql_connect($dbserver, $dbuser, $dbpass);
  13. mysql_select_db($dbdatabase);
  14. //CONNECTED TO THE DATABASE.
  15. $myID = $_SESSION['zixiid'];
  16. $myUser = $_SESSION['zixiuser'];
  17. $myRank = $_SESSION['zixirank'];
  18.  
  19. require_once($filepath . 'includes/functions.inc.php');
  20.  
  21.  
  22. //can the site be disabled?
  23. $cansiteoff = 1;
  24.  
  25.  
  26.  
  27.  
  28. //check if site is on or off
  29. $sitefile = '/home/dkfminfo/public_html/zixi/includes/ss.php';
  30. if (get_tag($sitefile, 'status') == 'OFF'){
  31. $siteon = false;
  32. } else {
  33. $siteon = true;
  34. }
  35.  
  36. $personoffline = get_tag($sitefile, 'admin');
  37.  
  38. $messageoffline = get_tag($sitefile, 'message');
  39.  
  40. $timeonline = get_tag($sitefile, 'time');
  41.  
  42. $timesetoffline = get_tag($sitefile, 'timeoffd');
  43.  
  44.  
  45. if ($myRank == 0){
  46. if ($cansiteoff == 1){
  47. if (!$_GET['act'] == 'login' || !$_GET['act'] == 'sitestatus'){
  48. if (!$siteon){
  49. //site offline
  50. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement