Add variable NOALYSS_TEMPLATE

This commit is contained in:
Dany De Bontridder 2015-08-26 20:02:33 +02:00
parent 91b80006b9
commit dccf5cd337

View file

@ -32,13 +32,15 @@ $inc_path=get_include_path();
$dirname=dirname(__FILE__);
/* Global variable of the include dir */
global $g_include_dir,$g_ext_dir;
global $g_include_dir,$g_ext_dir,$g_template_dir;
$g_include_dir=$dirname;
$g_ext_dir = $dirname."/ext";
$g_template_dir = $dirname."/template";
if ( !defined("NOALYSS_HOME")) define ("NOALYSS_HOME",dirname($dirname)."/html");
if ( !defined("NOALYSS_PLUGIN")) define ("NOALYSS_PLUGIN",$g_ext_dir);
if ( !defined("NOALYSS_INCLUDE")) define ("NOALYSS_INCLUDE",$g_include_dir);
if ( !defined("NOALYSS_TEMPLATE")) define ("NOALYSS_TEMPLATE",$g_template_dir);
if (file_exists(NOALYSS_INCLUDE.'/config.inc.php')) require_once NOALYSS_INCLUDE.'/config.inc.php';
require_once NOALYSS_INCLUDE.'/constant.security.php';