: $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', '' ); $mosmsg = strval( strip_tags( mosGetParam( $_REQUEST, 'mosmsg', '' ) ) ); $no_html = mosGetParam( $_REQUEST, 'no_html', '' ); $id = intval( mosGetParam( $_REQUEST, 'id', 0 ) ); // start the html output if ($no_html) { if ($path = $mainframe->getPath( 'admin' )) { require $path; } exit; } initGzip(); ?> "; ?> <?php echo $mosConfig_sitename; ?> - Administration [Joomla!] set( 'loadEditor', true ); include_once( $mosConfig_absolute_path . '/editor/editor.php' ); initEditor(); ?> alert('$mosmsg');"; } // Show list of items to edit or delete or create new if ($path = $mainframe->getPath( 'admin' )) { require $path; } else { ?> Joomla! Logo