<?php 
if (dirname($_SERVER['PHP_SELF'])=="/") {
	    $temp='http://'.$_SERVER['HTTP_HOST'];
	} else {
	    $temp='http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
	    $p=strpos(strtolower($temp),"index.php");
	    if ($p) $temp=substr($temp, 0,$p-1);
	}

define('DIR_LOADER',realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR);
define('DIR_FACTORY',DIR_LOADER.'factory'.DIRECTORY_SEPARATOR);
define('DIR_MAIN',DIR_LOADER.'bin'.DIRECTORY_SEPARATOR);
define('APP_PATH',DIR_MAIN.'apps'.DIRECTORY_SEPARATOR);
define('DIR_SKINS',DIR_LOADER.'public'.DIRECTORY_SEPARATOR); //skins
define('DIR_ASSETS',DIR_LOADER.'assets'.DIRECTORY_SEPARATOR);

define('URL_LOADER',$temp."/");
define('BASE_URL',URL_LOADER); //alamat hosting,relative ke root address
define('URL_BASE_SKIN',URL_LOADER."public/");
define('URL_FACTORY',URL_LOADER.'factory/');

define('INDEX_PAGE','index.php/'); //jika tidak memakai .htacess isi dengan index.php/

define('MINIMIZE_HTML',TRUE);
define('DEFAULT_UNIT',"front");
define('ACTIVE_SKIN','flaty'); //themes yang dipakai
define('SESS_PREFIX','SPD_'); //session prefix, default is JS5
define('AUTH_TYPE','FULL');//if full, always show login form
define('ENCRYPT_OUTPUT',true); //encrypt java script output
define('WIDGET_THEMES','bootstrap-segoe'); //jqwidgets themes
?>