includes/common.php
changeset 961 e5abd87bccef
parent 956 25b1bdce985b
child 1081 745200a9cc2a
equal deleted inserted replaced
960:e74741b8360b 961:e5abd87bccef
   447   else
   447   else
   448     $class = ( isset($_GET['noheaders']) ) ? 'Output_Naked' : 'Output_HTML';
   448     $class = ( isset($_GET['noheaders']) ) ? 'Output_Naked' : 'Output_HTML';
   449     
   449     
   450   $output = new $class();
   450   $output = new $class();
   451   
   451   
       
   452   // Are we running from the API? If so, did the page set a title?
       
   453   if ( !defined('ENANO_INTERFACE_INDEX') && !defined('ENANO_INTERFACE_AJAX') && isset($title) )
       
   454   {
       
   455     $output->set_title($title);
       
   456   }
       
   457   
   452   // We're ready for whatever life throws us now, at least from an API point of view.
   458   // We're ready for whatever life throws us now, at least from an API point of view.
   453   define('ENANO_MAINSTREAM', '');
   459   define('ENANO_MAINSTREAM', '');
   454   
   460   
   455   // If the site is disabled, bail out, unless we're trying to log in or administer the site
   461   // If the site is disabled, bail out, unless we're trying to log in or administer the site
   456   if(getConfig('site_disabled') == '1' && $session->user_level < USER_LEVEL_ADMIN)
   462   if(getConfig('site_disabled') == '1' && $session->user_level < USER_LEVEL_ADMIN)