Login   Register  
PHP Classes
elePHPant
Icontem

File: common.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of solomongaby  >  LiteTplEngine  >  common.php  >  Download  
File: common.php
Role: Auxiliary script
Content type: text/plain
Description: example file
Class: LiteTplEngine
Template engine based on PHP scripts
Author: By
Last change:
Date: 2008-04-02 09:43
Size: 561 bytes
 

Contents

Class file image Download
<?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');

?>