Website 1.1 config.php

<?
	session_start();
	error_reporting(E_ALL);
	ini_set('display_errors',1);
	date_default_timezone_set('Europe/Riga');

	$_SESSION['REMOTE_ADDR'] = getenv("REMOTE_ADDR");

	define('DS', DIRECTORY_SEPARATOR);
	define( 'SEND_ERRORS_TO', '[email protected]' ); //set email notification email address
	define( 'DISPLAY_DEBUG', true ); //display db errors?

	include("system/class/main.class.php"); //This is default class
	///////////////////////////////////////////////////////////////

	main::$config['mysql'] = array(//host,user,pass,database,table
			"127.0.0.1","host","pass","database","mc_bansjocker"
		);
	main::$config['patch'] = "/mcbans";
	main::$config['minecraft_server'] = array("mc.jocker.lv","25565");
	main::$config['minecraft_server_monitor_refresh'] = 10; //Seconds, cache will reload after 10 seconds(Recommend 10-60)

	//Don't touch this you can broke the website
	//Config which beter not edit
	main::$config['class'] = array("page","db","bans");
	main::$config['def_page'] = 'bans'; //default page controller
	main::$config['search_bans'] = array(
		0 => array("Player","name"),
		1 => array("Admin","admin"),
		2 => array("Reasonn","reason"),
	); //default page controller
	//End config
	main::$config['version'] = "v1.1";
	main::IncludeSyestem(main::$config['class']);
	main::IncludeCurrentPageOption();

	if(isset($_GET['page']) && is_numeric($_GET['page'])){
		page::$page = $_GET['page'];
	}

	$db = new DB();

?>

What to edit?

Set mysql address

host,user,pass,database,table "127.0.0.1","host","pass","database","mc_bansjocker"

Website pach

main::$config['patch'] = "/mcbans";

ERROR REPORT

Change to your email, to see what error you have, if you saw at your mail error please report it to me. define( 'SEND_ERRORS_TO', '[email protected]' ); set email notification email address


Comments

Posts Quoted:
Reply
Clear All Quotes