Location: PHPKode > projects > l2jweb > config.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

if (@$db_inc =  fopen('db.inc.php', 'r'))
		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>');
//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;
$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);
    $smarty->assign('logat', 0);
$db = new Database(DBHOST, DBUSER, DBPASS, DBNAME);
require_once ('get_level.php');

Return current item: l2jweb