includes/common.php
changeset 800 9cdfe82c56cd
parent 719 f82da241eaf8
child 801 eb8b23f11744
equal deleted inserted replaced
799:4629ad98ee88 800:9cdfe82c56cd
   134 require_once(ENANO_ROOT.'/includes/functions.php');
   134 require_once(ENANO_ROOT.'/includes/functions.php');
   135 require_once(ENANO_ROOT.'/includes/dbal.php');
   135 require_once(ENANO_ROOT.'/includes/dbal.php');
   136 require_once(ENANO_ROOT.'/includes/paths.php');
   136 require_once(ENANO_ROOT.'/includes/paths.php');
   137 require_once(ENANO_ROOT.'/includes/sessions.php');
   137 require_once(ENANO_ROOT.'/includes/sessions.php');
   138 require_once(ENANO_ROOT.'/includes/template.php');
   138 require_once(ENANO_ROOT.'/includes/template.php');
       
   139 require_once(ENANO_ROOT.'/includes/output.php');
   139 require_once(ENANO_ROOT.'/includes/plugins.php');
   140 require_once(ENANO_ROOT.'/includes/plugins.php');
   140 require_once(ENANO_ROOT.'/includes/cache.php');
   141 require_once(ENANO_ROOT.'/includes/cache.php');
   141 require_once(ENANO_ROOT.'/includes/lang.php');
   142 require_once(ENANO_ROOT.'/includes/lang.php');
   142 require_once(ENANO_ROOT.'/includes/render.php');
   143 require_once(ENANO_ROOT.'/includes/render.php');
   143 require_once(ENANO_ROOT.'/includes/rijndael.php');
   144 require_once(ENANO_ROOT.'/includes/rijndael.php');
   144 require_once(ENANO_ROOT.'/includes/email.php');
   145 require_once(ENANO_ROOT.'/includes/email.php');
   145 require_once(ENANO_ROOT.'/includes/json2.php');
   146 require_once(ENANO_ROOT.'/includes/json2.php');
   146 require_once(ENANO_ROOT.'/includes/pageprocess.php');
   147 require_once(ENANO_ROOT.'/includes/pageprocess.php');
       
   148 require_once(ENANO_ROOT.'/includes/namespaces/default.php');
   147 require_once(ENANO_ROOT.'/includes/tagcloud.php');
   149 require_once(ENANO_ROOT.'/includes/tagcloud.php');
   148 
   150 
   149 strip_magic_quotes_gpc();
   151 strip_magic_quotes_gpc();
   150 
   152 
   151 profiler_log('Files included and magic_quotes_gpc reversed if applicable');
   153 profiler_log('Files included and magic_quotes_gpc reversed if applicable');
   439   }
   441   }
   440   
   442   
   441   profiler_log('Ran session_started hook');
   443   profiler_log('Ran session_started hook');
   442   
   444   
   443   $paths->init();
   445   $paths->init();
       
   446   
       
   447   // setup output format
       
   448   if ( defined('ENANO_OUTPUT_FORMAT') )
       
   449     $class = 'Output_' . ENANO_OUTPUT_FORMAT;
       
   450   else
       
   451     $class = ( isset($_GET['noheaders']) ) ? 'Output_Naked' : 'Output_HTML';
       
   452     
       
   453   $output = new $class();
   444   
   454   
   445   // We're ready for whatever life throws us now, at least from an API point of view.
   455   // We're ready for whatever life throws us now, at least from an API point of view.
   446   define('ENANO_MAINSTREAM', '');
   456   define('ENANO_MAINSTREAM', '');
   447   
   457   
   448   // If the site is disabled, bail out, unless we're trying to log in or administer the site
   458   // If the site is disabled, bail out, unless we're trying to log in or administer the site