Changeset 2549 for trunk/phpgwapi/inc/functions.inc.php
- Timestamp:
- 04/15/10 15:26:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/functions.inc.php
r2419 r2549 30 30 error_reporting(error_reporting() & ~E_NOTICE); 31 31 32 include (PHPGW_API_INC.'/common_functions.inc.php');32 include_once(PHPGW_API_INC.'/common_functions.inc.php'); 33 33 34 34 /*! … … 234 234 $GLOBALS['phpgw']->preferences = CreateObject('phpgwapi.preferences'); 235 235 $GLOBALS['phpgw']->applications = CreateObject('phpgwapi.applications'); 236 $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); 236 237 print_debug('main class loaded', 'messageonly','api'); 237 238 if (! isset($GLOBALS['phpgw_info']['flags']['included_classes']['error']) || … … 403 404 ! $GLOBALS['phpgw_info']['user']['apps']['admin'])) 404 405 { 405 $GLOBALS['phpgw']->common->phpgw_header();406 //$GLOBALS['phpgw']->common->phpgw_header(); 406 407 407 408 $GLOBALS['phpgw']->log->write(array('text'=>'W-Permissions, Attempted to access %1','p1'=>$GLOBALS['phpgw_info']['flags']['currentapp'])); … … 416 417 $GLOBALS['phpgw']->datetime = CreateObject('phpgwapi.date_time'); 417 418 } 419 418 420 $GLOBALS['phpgw']->applications->read_installed_apps(); // to get translated app-titles 419 420 /*************************************************************************\ 421 * Load the header unless the developer turns it off * 422 \*************************************************************************/ 423 if ( array_key_exists( 'HTTP_BACKGROUNDREQUEST', $_SERVER ) || array_key_exists( 'BackgroundRequest', $_GET ) ) 424 { 425 $GLOBALS['phpgw_info']['flags'] = array( 426 'noheader' => true, 427 'nonavbar' => true 428 ); 429 } 430 if (!@$GLOBALS['phpgw_info']['flags']['noheader']) 431 { 432 $GLOBALS['phpgw']->common->phpgw_header(); 433 } 434 } 421 }
Note: See TracChangeset
for help on using the changeset viewer.