Location: PHPKode > projects > l2jweb > config.php
<?php
// This applocatoion is set in debuging mode. If you want to move it to production 
//it would be better to set erro_reporting to 0 and mandatory to set DEBUG as false. 
//With debug true only the web_develpers ip(look in sql) will be able to work with the site
//

session_start();
error_reporting(E_ALL);
if (@$db_inc =  fopen('db.inc.php', 'r'))
	{
		fclose($db_inc);
		require_once 'db.inc.php';
	}
else {echo '<META http-equiv="refresh" content="0;URL=install/install.php">';die();}

define('DEBUG', true);
/*define('DBHOST', 'vps.bumbacea.ro');
define('URL', 'http://' . $_SERVER['HTTP_HOST'] . '/');
define('DBNAME', 'l2jserver');
define('DBUSER', 'l2jserver');
define('DBPASS', 'DAwra9ra'); //new*/
define('ANNNO', 3); //number of announcements showed on main page
define('LEVEL3', 101);
define('LEVEL2', 101);
define('LEVEL1', 101);
define('skin', './skins/default/');
define('EMAIL', 'no-hide@address.com');
define('ZCOPY', '<span class="copy">For any problems please contact the system administrator at <a href="mailto:hide@address.com" class="copy">hide@address.com</a><br />Apollo CP v 1.2.1<br>Copyright &copy; 2008 <a href="http://www.l2apollo.com" target="_blank" class="copy">l2Apollo Team </a><br>Powered by <a href="http://www.phpab.com" target="_blank" class="copy">phpAB</a></span>');
//require_once('functions/mail.php');
//if (!isset($smarty))
//{
if (@!isset($_SESSION['admin']))
    $_SESSION['admin'] = 0;
require_once ('functions/mysql.php');
require_once ('smarty_libs/Smarty.class.php');
$smarty = new Smarty;
$path = $_SERVER['DOCUMENT_ROOT'];
$smarty->template_dir = $path . skin;
$smarty->compile_dir = $path . '/temp/template_c/';
$smarty->config_dir = $path . '/temp/configs/';
$smarty->assign('APPTITLE', 'Apollo\'s Control Panel');
$smarty->assign('COPYRIGHT', ZCOPY);
//}
if ($_SESSION['admin'])
    $smarty->assign('logat', 1);
else
    $smarty->assign('logat', 0);
$db = new Database(DBHOST, DBUSER, DBPASS, DBNAME);
$db->connect();
require_once ('get_level.php');

?>
Return current item: l2jweb