: $http_host = explode(':', $_SERVER['HTTP_HOST'] ); if( (!empty( $_SERVER['HTTPS'] ) && strtolower( $_SERVER['HTTPS'] ) != 'off' || isset( $http_host[1] ) && $http_host[1] == 443) && substr( $mosConfig_live_site, 0, 8 ) != 'https://' ) { $mosConfig_live_site = 'https://'.substr( $mosConfig_live_site, 7 ); } require_once( $mosConfig_absolute_path . '/includes/joomla.php' ); include_once( $mosConfig_absolute_path . '/language/'. $mosConfig_lang .'.php' ); require_once( $mosConfig_absolute_path . '/administrator/includes/admin.php' ); // must start the session before we create the mainframe object session_name( md5( $mosConfig_live_site ) ); session_start(); $option = strval( strtolower( mosGetParam( $_REQUEST, 'option', '' ) ) ); $task = strval( mosGetParam( $_REQUEST, 'task', '' ) ); // mainframe is an API workhorse, lots of 'core' interaction routines $mainframe = new mosMainFrame( $database, $option, '..', true ); // admin session handling $my = $mainframe->initSessionAdmin( $option, $task ); // initialise some common request directives $act = strtolower( mosGetParam( $_REQUEST, 'act', '' ) ); $section = mosGetParam( $_REQUEST, 'section', '' ); $no_html = intval( mosGetParam( $_REQUEST, 'no_html', 0 ) ); $id = intval( mosGetParam( $_REQUEST, 'id', 0 ) ); $cur_template = $mainframe->getTemplate(); // default admin homepage if ($option == '') { $option = 'com_admin'; } // set for overlib check $mainframe->set( 'loadOverlib', false ); // precapture the output of the component require_once( $mosConfig_absolute_path . '/editor/editor.php' ); ob_start(); if ($path = $mainframe->getPath( 'admin' )) { require_once ( $path ); } else { ?> <?php echo 'Joomla! Logo'; ?>
_ticker . ' queries executed'; echo '
';
	foreach ($database->_log as $k=>$sql) {
		echo $k+1 . "\n" . $sql . '
'; } } // if task action is 'save' or 'apply' redo session check if ( $task == 'save' || $task == 'apply' ) { $mainframe->initSessionAdmin( $option, '' ); } doGzip(); ?>