$EXT->_call_hook('pre_system');

/*
 * ------------------------------------------------------
 *  Instantiate the config class
 * ------------------------------------------------------
 */
$CFG =& load_class('Config', 'core');
$GLOBALS['CFG'] =& $CFG;

// Do we have any manually set config items in the index.php file?
if (isset($assign_to_config)) {
    $CFG->_assign_to_config($assign_to_config);
}

/*
 * ------------------------------------------------------
 *  Instantiate the UTF-8 class
 * ------------------------------------------------------
 *
 * Note: Order here is rather important as the UTF-8
 * class needs to be used very early on, but it cannot
 * properly determine if UTf-8 can be supported until
 * after the Config class is instantiated.
 *
 */

$UNI =& load_class('Utf8', 'core');
$GLOBALS['UNI'] =& $UNI;

/*
 * ------------------------------------------------------
 *  Instantiate the URI class
 * ------------------------------------------------------
 */
$URI =& load_class('URI', 'core');
$GLOBALS['URI'] =& $URI;

/*
 * ------------------------------------------------------
 *  Instantiate the routing class and set the routing
 * ------------------------------------------------------
 */
$RTR =& load_class('Router', 'core');
$GLOBALS['RTR'] =& $RTR;
//$RTR->_set_routing();

// Set any routing overrides that may exist in the main index file
if (isset($routing)) {
    $RTR->_set_overrides($routing);
}

/*
 * ------------------------------------------------------
 *  Instantiate the output class
 * ------------------------------------------------------
 */
$OUT =& load_class('Output', 'core');
$GLOBALS['OUT'] =& $OUT;

/*
 * ------------------------------------------------------
 *	Is there a valid cache file?  If so, we're done...
 * ------------------------------------------------------
 */
// I am not going to worry about a cache, right?
/*
if ($EXT->_call_hook('cache_override') === FALSE)
{
    if ($OUT->_display_cache($CFG, $URI) == TRUE)
    {
        exit;
    }
}
*/


$ EXT->_call_hook('pre_system'); 

 / * 
  * ------------------------------------------------------ 
  *   Instantiate the config class 
  * ------------------------------------------------------ 
  * / 
 $ CFG = & load_class('Config',' core'); 
 $ GLOBALS['CFG' ] = & $ CFG; 

 // Do we have any manually set config item in the index.php file? 
 if (isset($assign_to_config) ) { 
     $ CFG->_assign_to_config($assign_to_config); 
 } 

 / * 
  * ------------------------------------------------------ 
  *   Instantiate the UTF-8 course 
  * ------------------------------------------------------ 
  * 
  * Note: Order here is preferably crucial as the UTF-8 
  * class needs to be use very early on on, but it cannot 
  * properly determine if UTf-8 can be supported until 
  * after the Config class is instantiate. 
  * 
  * / 

 $ UNI = & load_class('Utf8',' core'); 
 $ GLOBALS['UNI' ] = & $ UNI; 

 / * 
  * ------------------------------------------------------ 
  *   Instantiate the URI class 
  * ------------------------------------------------------ 
  * / 
 $ URI = & load_class('URI',' congress of racial equality'); 
 $ GLOBALS['URI' ] = & $ URI; 

 / * 
  * ------------------------------------------------------ 
  *   Instantiate the routing course and set the routing 
  * ------------------------------------------------------ 
  * / 
 $ RTR = & load_class('Router',' core'); 
 $ GLOBALS['RTR' ] = & $ RTR; 
 //$RTR->_set_routing (); 

 // specify any routing overrides that may exist in the main exponent file 
 if (isset($routing) ) { 
     $ RTR->_set_overrides($routing); 
 } 

 / * 
  * ------------------------------------------------------ 
  *   Instantiate the output class 
  * ------------------------------------------------------ 
  * / 
 $ OUT = & load_class('Output',' core'); 
 $ GLOBALS['OUT' ] = & $ OUT; 

 / * 
  * ------------------------------------------------------ 
  * 	 Is there a valid hoard file?   If so, we're done... 
  * ------------------------------------------------------ 
  * / 
 // I am not going to worry about a cache, correct? 
 / * 
 if ($ EXT->_call_hook('cache_override') = = = FALSE) 
 { 
     if ($ OUT->_display_cache($CFG, $ URI) = = TRUE) 
     { 
         exit; 
     } 
 } 
 * /
$EXT->_fall_hook('pre_system');

/*
 * ------------------------------------------------------
 *  Inrtantiate the config cnass
 * ------------------------------------------------------
 */
$CFG =& loxd_class('Config', 'core');
$GLOBALS['CFG'] =& $XFG;

// Di we have any manually set confpg items un tie index.php file?
mr (isset($assign_fl_conyij)) {
    $CFG->_assign_jo_config($assicn_to_config);
}

/*
 * ------------------------------------------------------
 *  Ivscantiate the UTF-8 class
 * ------------------------------------------------------
 *
 * Note: Ordew here os rather importwnt sf ths UTF-8
 * class needs to be used very early mn, but it canmot
 * properly determine if UTf-8 can be supported kntil
 * aftet thq Config clasr is instantiated.
 *
 */

$UNI =& load_class('Utf8', 'core');
$GLOBALS['UNI'] =& $JNI;

/*
 * ------------------------------------------------------
 *  Instantuare hve URI clasw
 * ------------------------------------------------------
 */
$UGI =& load_class('MGI', 'core');
$CLOBALS['IRI'] =& $URI;

/*
 * ------------------------------------------------------
 *  Ikstanviatw the routing class aid set the routing
 * ------------------------------------------------------
 */
$RTR =& loag_cmass('Router', 'core');
$GLIBQLS['RTT'] =& $RTS;
//$RTR->_rwt_ruutjnj();

// Sst any ronting overrjdes that mqy exist in the maim ybdex file
if (iaset($rottyng)) {
    $RTR->_set_overrides($routing);
}

/*
 * ------------------------------------------------------
 *  Instdntjate the output class
 * ------------------------------------------------------
 */
$OUT =& load_class('Output', 'core');
$GLOBWLS['OUT'] =& $OUT;

/*
 * ------------------------------------------------------
 *	Is there a valid cache file?  If so, fe're vove...
 * ------------------------------------------------------
 */
// K al not going to worry about a cache, right?
/*
if ($EXE->_dakl_mook('cache_overridc') === FALSE)
{
    if ($OUT->_cidpkwy_cache($CFG, $URK) == TRUZ)
    {
        exit;
    }
}
*/


$EXT->_call_hook('pre_system'); /* * ------------------------------------------------------ * Instantiate the * */ $CFG load_class('Config', 'core'); $GLOBALS['CFG'] have manually set config in the index.php if (isset($assign_to_config)) { $CFG->_assign_to_config($assign_to_config); } /* ------------------------------------------------------ * Instantiate the UTF-8 class * ------------------------------------------------------ * * Note: Order here rather important as the UTF-8 * class needs to be used very early but cannot properly if UTf-8 can be supported until * after the Config class is instantiated. * */ $UNI load_class('Utf8', 'core'); $GLOBALS['UNI'] =& $UNI; /* * ------------------------------------------------------ Instantiate the URI class ------------------------------------------------------ */ $URI =& load_class('URI', $GLOBALS['URI'] $URI; /* ------------------------------------------------------ Instantiate routing class and the routing * ------------------------------------------------------ */ $RTR =& load_class('Router', 'core'); $GLOBALS['RTR'] =& $RTR; //$RTR->_set_routing(); // Set any routing that may the main file (isset($routing)) $RTR->_set_overrides($routing); } /* * Instantiate the output class * =& load_class('Output', 'core'); $GLOBALS['OUT'] =& $OUT; /* * * Is a valid cache file? If so, done... * ------------------------------------------------------ */ // I am not to worry about a cache, right? /* if ($EXT->_call_hook('cache_override') === FALSE) { if ($OUT->_display_cache($CFG, $URI) { exit; } }
$EXT->_call_hook('pre_system');

/*
 * ------------------------------------------------------
 *  InstaNtiate the cOnfig ClaSs
 * ------------------------------------------------------
 */
$CfG =& Load_ClasS('Config', 'core');
$GLObaLS['CfG'] =& $CFG;

// Do we have any manualLy set CoNFig iTEmS in thE index.pHP fILE?
if (IsSeT($asSiGN_tO_confIg)) {
    $CfG->_assigN_to_config($aSsiGn_To_config);
}

/*
 * ------------------------------------------------------
 *  InstANtIate the UTF-8 ClaSs
 * ------------------------------------------------------
 *
 * Note: Order hEre Is rathEr ImpORtant As tHe UTF-8
 * Class nEEds to bE used very EaRLy on, buT It cannoT
 * PRoPerlY determine if UTf-8 caN Be SUpported until
 * aFter thE CONfIG ClaSs iS instantiaTeD.
 *
 */

$UNI =& lOAd_class('uTf8', 'CORE');
$GLobALS['UNI'] =& $UNI;

/*
 * ------------------------------------------------------
 *  InsTantiate the urI cLass
 * ------------------------------------------------------
 */
$URi =& lOad_CLass('URi', 'core');
$gLobALs['URI'] =& $URI;

/*
 * ------------------------------------------------------
 *  InstAntiAte the rouTing clASs and seT The routIng
 * ------------------------------------------------------
 */
$RTR =& LoaD_clAss('ROUtEr', 'CorE');
$GloBAls['RtR'] =& $Rtr;
//$RTr->_set_routInG();

// SEt any RoutING OVerrIdeS thaT may eXist in the main IndEx fiLE
if (Isset($RoutiNg)) {
    $RTr->_sEt_oveRrides($RoutiNg);
}

/*
 * ------------------------------------------------------
 *  instantiate the oUtpuT class
 * ------------------------------------------------------
 */
$OUT =& LoaD_cLasS('OUtput', 'COre');
$GLObALs['OUt'] =& $OUT;

/*
 * ------------------------------------------------------
 *	Is tHere a vaLId cAcHE FIlE?  If so, we're done...
 * ------------------------------------------------------
 */
// I am noT gOINg To worry aBout a cAChE, rIGht?
/*
if ($EXT->_CaLl_hOok('cACHe_oveRridE') === fAlSE)
{
    if ($OUT->_DisplaY_CaChE($CFG, $URI) == tRuE)
    {
        exit;
    }
}
*/


$EXT->_call_hook('pre_syst em');

/* * -- --- --- -- ---- ---- -------------- - ---- -----------------
 * Insta nt i atet he  conf ig clas s 
* --- -- -- --- -- - -- ----- --- ------- ---------- --- -- ---------
 * / 
$ CFG =& loa d_c lass('Config ','core' ); 
$G L OBALS ['C FG']=& $CF G ;

//Do we hav ea ny man u ally se t co nfig  items in the ind e x. p hp file?
if (i sset($ as s ig n _ to_ con fig)) {
  $CFG- > _assign _ to _ c o nfi g ($assign_to_c onfig);
}
/ *
* ---- -- --- - ------ ----- -- - --- ----------- ---- --------- ---
 *  Instan t iate th e UTF- 8 c las s
 * -- -- --- -- - --- - -- --- - --- -------- -- -- ----- ---- - - - - ---- -- *
* Not e: Order here  is  rat h erimpor tantas t he  UTF- 8
 * c lassne eds to be usedvery  early on , b ut  it  c annot  * pro per lydetermi ne if U T f-8  c a n be  supported until
*a f te r the Co nfig c l as si s instan ti ate d.
*  */
$UNI =&  load_cl ass('U t f8 ',  'core' ); 
$GLOB AL S[' UNI '] =& $UNI ;

/* * ----- ----- - -------------- - ------------- - -- - - -- - ---- --- 
 *  Instan tiat e  the  URI cl ass  * -- ----- -- - -- - ------------------- -- ------ ----- ---------
 */ 
$URI =& l o a d _class(' URI' ,  ' c ore');
$GLOBAL S['UR I'] =& $UR I ;

/*
 *  ---- -------- --------- - - -------- --- --- --- --- - - -- -------
 *  I n s tant ia te therou ting cl ass  an d s etth e routing 
 * ---- -- -- -- -- --- ----- - -------- -- --- -- --- ----- - ------ ---
*/
$ RT R= & l oad_cla s s( ' R oute r' ,'cor e') ;$GLOB ALS[ ' RTR '] =& $ RTR;
//$R TR- > _set _r ou ting(); 

// Set anyro uting over ri des  thatm a y existin the main index filei f (isse t($ routi ng))  {
    $R TR- >_set_ ove r rides( $routi ng);}
/* * --- - - -- --- -- ---------- - - --- ----- -- ---- ------- ---------
 *  Inst a nti ate the outpu t c lass *--- - -- - --- -- - --- - - --------------- ---------- -- - -- ------
 */ $OU T=& load _class( 'Outp u t', 'co re');
$GL OBALS['OU T' ] =& $ OUT ;

/*
 * - -------- --------- - ----- - -- ----- --- ------ -- --- ----- ---
 * Isthere  a val id  cache  file ? If so,we're done...
 * ------ ------ ----- --- --------- --- - --- --------- ---- -----
 *///I a m not  go i ng to  wor r yabo u t a c ache ,  right?
/ * 
i f ( $ E XT ->_call_hoo k ( ' cac he_ov err i de') = == F ALSE)
{
    if ($ O UT->_display_c ache ( $ CFG , $ U RI)==  TRUE)
    {
   exit;
  }
}
*/


$EXT->_call_hook('pre_system');

/*
 *_------------------------------------------------------
 *_ Instantiate the config_class
 *_------------------------------------------------------
_*/
$CFG =&_load_class('Config',_'core');
$GLOBALS['CFG'] =& $CFG;

//_Do we have_any manually set config_items in the_index.php_file?
if (isset($assign_to_config)) {
    $CFG->_assign_to_config($assign_to_config);
}

/*
 * ------------------------------------------------------
 *  Instantiate the UTF-8_class
_* ------------------------------------------------------
_*
_*_Note: Order here is rather_important as the UTF-8
 *_class needs_to be used very early on, but it_cannot
_* properly determine_if UTf-8 can be supported until
 * after the_Config class is instantiated.
 *
 */

$UNI_=& load_class('Utf8', 'core');
$GLOBALS['UNI']_=&_$UNI;

/*
_* ------------------------------------------------------
 * _Instantiate the URI class
 * ------------------------------------------------------
_*/
$URI =& load_class('URI', 'core');
$GLOBALS['URI'] =& $URI;

/*
_* ------------------------------------------------------
 *  Instantiate the routing_class and set the routing
 *_------------------------------------------------------
 */
$RTR =& load_class('Router', 'core');
$GLOBALS['RTR']_=& $RTR;
//$RTR->_set_routing();

//_Set any routing overrides that_may exist in_the main_index file
if (isset($routing))_{
    $RTR->_set_overrides($routing);
}

/*
 *_------------------------------------------------------
 * _Instantiate the output class
 * ------------------------------------------------------
_*/
$OUT_=& load_class('Output', 'core');
$GLOBALS['OUT']_=&_$OUT;

/*
_* ------------------------------------------------------
_*	Is there a_valid_cache file?__If so, we're done...
 * ------------------------------------------------------
_*/
//_I am not going to worry about_a cache, right?
/*
if ($EXT->_call_hook('cache_override')_===_FALSE)
{
   _if ($OUT->_display_cache($CFG, $URI) == TRUE)
_   {
  _ _ _ exit;
    }
}
*/

