[ Index ] |
|
Code source de Joomla 1.0.13 |
1 <?php 2 /** 3 * @version $Id: index3.php 6024 2006-12-18 22:30:07Z friesengeist $ 4 * @package Joomla 5 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. 6 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 7 * Joomla! is free software. This version may have been modified pursuant 8 * to the GNU General Public License, and as distributed it includes or 9 * is derivative of works licensed under the GNU General Public License or 10 * other free or open source software licenses. 11 * See COPYRIGHT.php for copyright notices and details. 12 */ 13 14 // Set flag that this is a parent file 15 define( '_VALID_MOS', 1 ); 16 17 if (!file_exists( '../configuration.php' )) { 18 header( 'Location: ../installation/index.php' ); 19 exit(); 20 } 21 22 require ( '../globals.php' ); 23 require_once( '../configuration.php' ); 24 25 // SSL check - $http_host returns <live site url>:<port number if it is 443> 26 $http_host = explode(':', $_SERVER['HTTP_HOST'] ); 27 if( (!empty( $_SERVER['HTTPS'] ) && strtolower( $_SERVER['HTTPS'] ) != 'off' || isset( $http_host[1] ) && $http_host[1] == 443) && substr( $mosConfig_live_site, 0, 8 ) != 'https://' ) { 28 $mosConfig_live_site = 'https://'.substr( $mosConfig_live_site, 7 ); 29 } 30 31 require_once ( $mosConfig_absolute_path . '/includes/joomla.php' ); 32 include_once( $mosConfig_absolute_path . '/language/'. $mosConfig_lang. '.php' ); 33 require_once ( $mosConfig_absolute_path . '/administrator/includes/admin.php' ); 34 35 // must start the session before we create the mainframe object 36 session_name( md5( $mosConfig_live_site ) ); 37 session_start(); 38 39 $option = strval( strtolower( mosGetParam( $_REQUEST, 'option', '' ) ) ); 40 $task = strval( mosGetParam( $_REQUEST, 'task', '' ) ); 41 42 // mainframe is an API workhorse, lots of 'core' interaction routines 43 $mainframe = new mosMainFrame( $database, $option, '..', true ); 44 45 // admin session handling 46 $my = $mainframe->initSessionAdmin( $option, $task ); 47 48 // initialise some common request directives 49 $act = strtolower( mosGetParam( $_REQUEST, 'act', '' ) ); 50 $section = mosGetParam( $_REQUEST, 'section', '' ); 51 $mosmsg = strval( strip_tags( mosGetParam( $_REQUEST, 'mosmsg', '' ) ) ); 52 $no_html = mosGetParam( $_REQUEST, 'no_html', '' ); 53 $id = intval( mosGetParam( $_REQUEST, 'id', 0 ) ); 54 55 // start the html output 56 if ($no_html) { 57 if ($path = $mainframe->getPath( 'admin' )) { 58 require $path; 59 } 60 exit; 61 } 62 63 initGzip(); 64 65 ?> 66 <?php echo "<?xml version=\"1.0\"?>"; ?> 67 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 68 <html xmlns="http://www.w3.org/1999/xhtml"> 69 <head> 70 <title><?php echo $mosConfig_sitename; ?> - Administration [Joomla!]</title> 71 <link rel="stylesheet" href="templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" type="text/css" /> 72 <link rel="stylesheet" href="templates/<?php echo $mainframe->getTemplate(); ?>/css/theme.css" type="text/css" /> 73 <script language="JavaScript" src="../includes/js/JSCookMenu_mini.js" type="text/javascript"></script> 74 <script language="JavaScript" src="includes/js/ThemeOffice/theme.js" type="text/javascript"></script> 75 <script language="JavaScript" src="../includes/js/joomla.javascript.js" type="text/javascript"></script> 76 <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" /> 77 <?php 78 $mainframe->set( 'loadEditor', true ); 79 include_once ( $mosConfig_absolute_path . '/editor/editor.php' ); 80 initEditor(); 81 ?> 82 </head> 83 <body> 84 <?php 85 if ($mosmsg) { 86 if (!get_magic_quotes_gpc()) { 87 $mosmsg = addslashes( $mosmsg ); 88 } 89 echo "\n<script language=\"javascript\" type=\"text/javascript\">alert('$mosmsg');</script>"; 90 } 91 92 // Show list of items to edit or delete or create new 93 if ($path = $mainframe->getPath( 'admin' )) { 94 require $path; 95 } else { 96 ?> 97 <img src="images/joomla_logo_black.jpg" border="0" alt="Joomla! Logo" /> 98 <br /> 99 <?php 100 } 101 ?> 102 </body> 103 </html> 104 <?php 105 doGzip(); 106 107 108 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 14:43:32 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |