<?
session_start();
//define paths
defined('DS') ? null : define('DS', "/");
defined('SITE_ROOT') ? null : define('SITE_ROOT', $_SERVER['DOCUMENT_ROOT'].DS.'report');
defined('INC_PATH') ? null : define('INC_PATH', SITE_ROOT.DS.'includes');
defined('MOD_PATH') ? null : define('MOD_PATH', SITE_ROOT.DS.'model');
defined('JS_PATH') ? null : define('JS_PATH', SITE_ROOT.DS.'jquery');
defined('TEM_PATH') ? null : define('TEM_PATH', SITE_ROOT.DS.'templates');
defined('PLUGIN_PATH') ? null : define('PLUGIN_PATH', SITE_ROOT.DS.'plugins');
$root="http://localhost/report/";
$css=$root."css/";
$inc=$root."includes/";
$images=$root."http://www.sitepoint.com/forums/images/";
$mod=$root."model/";
$js=$root."jquery/";
$temp=$root."templates/";
$spry=$root."SpryAssets/";
$plugin_path=$root."plugins/";
//ms paths
defined('MS_PATH') ? null : define('MS_PATH', SITE_ROOT.DS.'ms');
defined('MS_TEM_PATH') ? null : define('MS_TEM_PATH', MS_PATH.DS.'templates');
$ms_root=$root."ms/";
$ms_temp=$ms_root."templates/";
$css_table=$ms_root."css/";
//include files for all
require_once(INC_PATH.DS.'config.php');
require_once(INC_PATH.DS.'db_connect.php');
require_once(INC_PATH.DS.'session.php');
require_once(INC_PATH.DS.'class.function.php');
require_once(MOD_PATH.DS.'db.class.php');
include_once(PLUGIN_PATH.DS."fckeditor/fckeditor.php") ;
//initialize ojects
$db= new db();
//$session = new session();
$functions= new functions();
?>
Bookmarks