<?php
/*
//||||||||||||||||||||||||||||||||||||||||||||||||\\
\\*             SUPER HERO MOD WEB STATS          //
//                                                \\
\\     Written By ShadowLeader (Tim Hansen)       //
//                                                \\
\\              http://SH-MOD.TK                  //
//          Email: shadowleader@jubii.dk          \\
\\          MSN: shadowleader11@hotmail.com       //
//                                                \\
\\   You are allowed to edit anything in these    //
//     files, as long as these lines remain.      \\
\\                                                //
//   If you have any trouble with the system,     \\
\\       go to www.SH-MOD.TK to get help.         //
//                                                \\
\\   Thanks to:                                   //
//   AlleyKat - Help with Template system         \\
\\   MajesticM00se - A little code                //
//   Vittu - Finding bugs                         \\
\\||||||||||||||||||||||||||||||||||||||||||||||||//
*/

////////////////////////////////////////////////////////////////////////////////
// The following settings work the same way cvars works in the SuperHero Mod. //
// 0: No , Disable                                                            //
// 1: Yes , Enable                                                            //
////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////
// Set $root_path to the directory your stats are located, starting from the  //
// server root. - Default is set to www.yourdomain.com/stats/                 //
//                                                                            //
// If you use $sql_config = "1" then you do NOT have to change the rest       //
// of the settings                                                            //
////////////////////////////////////////////////////////////////////////////////

$sql_config = "1";

////////////////////////////////////////////////////////////////////////////////
// Do NOT change this line!                                                   //
if($sql_config == "0"){                                                       //
////////////////////////////////////////////////////////////////////////////////

$maxxp = "151200";                  // Set the max amount of xp on your server
$levels = "20";                     // Set the amount of levels you have on your server
$allow_dl = "1";                    // Allow users to download the heroes - 1 = Yes | 0 = No
$servername = "SuperHero Server";   // Set the server name
$serverip = "localhost";            // Set server IP
$max = "20";                        // How many players to show per page
$template = "blue";                 // What template to use (Default: Blue, Red, Green)
$root_path = "stats";

////////////////////////////////////////////////////////////////////////////////
// Do NOT change anything else in this file !!!                               //
////////////////////////////////////////////////////////////////////////////////
}elseif($sql_config = "1"){ 
$result = mysql_query("SELECT * FROM sh_config WHERE id = '1'") or die(mysql_error());
while($row = mysql_fetch_array($result)){
$maxxp = "$row[maxxp]";
$levels = "$row[levels]";
$allow_dl = "$row[allow_dl]";
$servername = "$row[servername]";
$serverip = "$row[serverip]";
$max = "$row[max]";
$template = "$row[template]";
$root_path = "$row[root_path]";
}}

?>