includes/common.php
changeset 956 25b1bdce985b
parent 945 c19242d13a49
child 1081 745200a9cc2a
equal deleted inserted replaced
955:de4f81abc5e3 956:25b1bdce985b
   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)