[ PHPXref.com ] [ Generated: Sun Jul 20 18:22:43 2008 ] [ Joomla! 1.0.8 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/administrator/ -> index3.php (source)

   1  <?php
   2  /**
   3  * @version $Id: index3.php 2509 2006-02-21 04:37:29Z stingrey $
   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_once ( '../globals.php' );
  23  require_once( '../configuration.php' );
  24  require_once ( $mosConfig_absolute_path . '/includes/joomla.php' );
  25  include_once( $mosConfig_absolute_path . '/language/'. $mosConfig_lang. '.php' );
  26  require_once ( $mosConfig_absolute_path . '/administrator/includes/admin.php' );
  27  
  28  // must start the session before we create the mainframe object
  29  session_name( md5( $mosConfig_live_site ) );
  30  session_start();
  31  
  32  $option     = trim( strtolower( mosGetParam( $_REQUEST, 'option', '' ) ) );
  33  
  34  // mainframe is an API workhorse, lots of 'core' interaction routines
  35  $mainframe     = new mosMainFrame( $database, $option, '..', true );
  36  
  37  // admin session handling
  38  $my         = $mainframe->initSessionAdmin( $option );
  39  
  40  // initialise some common request directives
  41  $task        = mosGetParam( $_REQUEST, 'task', '' );
  42  $act        = strtolower( mosGetParam( $_REQUEST, 'act', '' ) );
  43  $section    = mosGetParam( $_REQUEST, 'section', '' );
  44  $mosmsg        = strip_tags( mosGetParam( $_REQUEST, 'mosmsg', '' ) );
  45  $no_html    = strtolower( mosGetParam( $_REQUEST, 'no_html', '' ) );
  46  
  47  // start the html output
  48  if ($no_html) {
  49      if ($path = $mainframe->getPath( 'admin' )) {
  50          require $path;
  51      }
  52      exit;
  53  }
  54  
  55  initGzip();
  56  
  57  ?>
  58  <?php echo "<?xml version=\"1.0\"?>"; ?>
  59  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  60  <html xmlns="http://www.w3.org/1999/xhtml">
  61  <head>
  62  <title><?php echo $mosConfig_sitename; ?> - Administration [Joomla]</title>
  63  <link rel="stylesheet" href="templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" type="text/css">
  64  <link rel="stylesheet" href="templates/<?php echo $mainframe->getTemplate(); ?>/css/theme.css" type="text/css">
  65  <script language="JavaScript" src="../includes/js/JSCookMenu_mini.js" type="text/javascript"></script>
  66  <script language="JavaScript" src="includes/js/ThemeOffice/theme.js" type="text/javascript"></script>
  67  <script language="JavaScript" src="../includes/js/joomla.javascript.js" type="text/javascript"></script>
  68  <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
  69  <?php
  70  $mainframe->set( 'loadEditor', true );
  71  include_once ( $mosConfig_absolute_path . '/editor/editor.php' );
  72  initEditor();
  73  ?>
  74  </head>
  75  <body>
  76  <?php
  77  if ($mosmsg) {
  78      if (!get_magic_quotes_gpc()) {
  79          $mosmsg = addslashes( $mosmsg );
  80      }
  81      echo "\n<script language=\"javascript\" type=\"text/javascript\">alert('$mosmsg');</script>";
  82  }
  83  
  84  // Show list of items to edit or delete or create new
  85  if ($path = $mainframe->getPath( 'admin' )) {
  86      require $path;
  87  } else {
  88      ?>
  89      <img src="images/joomla_logo_black.jpg" border="0" alt="Joomla! Logo" />
  90      <br />
  91      <?php
  92  }
  93  ?>
  94  </body>
  95  </html>
  96  <?php
  97  doGzip();
  98  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]