Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @author Prodigy
- * @file Configuration
- * @copyright 2010
- */
- // General Configuration (System Variables)
- $websiteEnabled = "1";
- $websiteName = "RuneLazarus";
- $websiteVersion = "";
- $websiteAuthor = "Prodigy";
- // Database Configuration (Everything below is database related)
- $host = "127.0.0.1";
- $user = "root";
- $password = "";
- $dbname = "RLDB";
- $connect = mysql_connect($host, $user, $password) or die('Database information incorrect');
- mysql_select_db($dbname, $connect) or die('Error Selecting Database');
- $query="SELECT * FROM config";
- $result=mysql_query($query);
- $num=mysql_numrows($result);
- $i=0;
- while ($i < $num) {
- $f1=mysql_result($result,$i,"maintenance");
- $i++;
- }
- if($websiteEnabled = 1) {
- echo $f1;
- die();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement