Advertisement
Guest User

Untitled

a guest
Jun 18th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @author Prodigy
  4.  * @file Configuration
  5.  * @copyright 2010
  6.  */
  7.  
  8.  // General Configuration (System Variables)
  9.  $websiteEnabled = "1";
  10.  $websiteName = "RuneLazarus";
  11.  $websiteVersion = "";
  12.  $websiteAuthor = "Prodigy";
  13.  
  14.  
  15.  // Database Configuration (Everything below is database related)
  16.  $host = "127.0.0.1";
  17.  $user = "root";
  18.  $password = "";
  19.  $dbname = "RLDB";
  20.  
  21.  $connect = mysql_connect($host, $user, $password) or die('Database information incorrect');
  22.  mysql_select_db($dbname, $connect) or die('Error Selecting Database');
  23.  
  24.  $query="SELECT * FROM config";
  25.  $result=mysql_query($query);
  26.  $num=mysql_numrows($result);
  27.  
  28.  $i=0;
  29.  while ($i < $num) {
  30.  $f1=mysql_result($result,$i,"maintenance");
  31.  $i++;
  32.  }
  33.  
  34.  if($websiteEnabled = 1) {
  35.     echo $f1;
  36.     die();
  37.  }
  38.  
  39.  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement