<?php
define('UrlRoot',dirname(__FILE__));
define('HttpRoot','http://'.$_SERVER['HTTP_HOST']);
define('FunctionsRoot',UrlRoot.'/includes');
define('CURRENT_PAGE',$_SERVER['SCRIPT_NAME']);
ini_set('display_errors',1);
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
date_default_timezone_set('Europe/Bucharest');
function url_encode($url){
return UrlRoot.$url;
}
function http_encode($url){
return HttpRoot.$url;
}
session_start();
require (FunctionsRoot.'/templateEngine.php');
require (FunctionsRoot.'/templateSetup.php');
?>
|