[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/administrator/templates/mambo_admin_blue/ -> index.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @author Mambo Foundation Inc see README.php
   5  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   6  * See COPYRIGHT.php for copyright notices and details.
   7  * @license GNU/GPL Version 2, see LICENSE.php
   8  *
   9  * Redistributions of files must retain the above copyright notice.
  10  *
  11  * Mambo is free software; you can redistribute it and/or
  12  * modify it under the terms of the GNU General Public License
  13  * as published by the Free Software Foundation; version 2 of the License.
  14  */
  15  
  16  /** ensure this file is being included by a parent file */
  17  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
  18  
  19  $tstart = mosProfiler::getmicrotime();
  20  // needed to seperate the ISO number from the language file constant _ISO
  21  $iso = explode( '=', _ISO );
  22  // xml prolog
  23  //echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
  24  ?>
  25  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  26  <html xmlns="http://www.w3.org/1999/xhtml">
  27  <head>
  28  <title><?php echo $mosConfig_sitename; ?> - <?php echo T_('Administration') ?> [Mambo]</title>
  29  <link rel="stylesheet" href="templates/mambo_admin_blue/css/template_css.css" type="text/css" />
  30  <link rel="stylesheet" href="templates/mambo_admin_blue/css/theme.css" type="text/css" />
  31  <script src="<?php echo $mosConfig_live_site; ?>/includes/js/JSCookMenu.js" type="text/javascript"></script>
  32  <script src="<?php echo $mosConfig_live_site; ?>/includes/js/ThemeOffice/theme.js" type="text/javascript"></script>
  33  <script src="<?php echo $mosConfig_live_site; ?>/includes/js/mambojavascript.js" type="text/javascript"></script>
  34  <?php
  35  // if(@$_REQUEST["task"] == "edit" || @$_REQUEST["task"] == "new") {
  36  // MUST be included ALWAYS for custom components to work
  37      include_once ( $mosConfig_absolute_path . "/editor/editor.php" );
  38      initEditor();
  39  //}
  40  ?>
  41  <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
  42  <!--
  43  *    DO NOT REMOVE THE FOLLOWING - FAILURE TO COMPLY IS A DIRECT VIOLATION
  44  *    OF THE GNU GENERAL PUBLIC LICENSE - http://www.opensource.org/licenses/gpl-2.0.php
  45  -->
  46  <?php
  47  echo "<meta name=\"Generator\" content=\"copyright Mambo Foundation Inc.  Refer to copyright.php  All rights reserved.\" />\r\n";
  48  ?>
  49  <!--
  50  *    END OF COPYRIGHT
  51  -->
  52  </head>
  53  <body onload="MM_preloadImages('images/help_f2.png','images/archive_f2.png','images/back_f2.png','images/cancel_f2.png','images/delete_f2.png','images/edit_f2.png','images/new_f2.png','images/preview_f2.png','images/publish_f2.png','images/save_f2.png','images/unarchive_f2.png','images/unpublish_f2.png','images/upload_f2.png')">
  54  <div id="mambover">
  55  <?php echo 'Mambo version: '.$_VERSION->RELEASE.'.'. $_VERSION->DEV_LEVEL; ?>
  56  </div>
  57  <div id="wrapper">
  58      <div id="header">
  59             <div id="mambo"><img src="templates/mambo_admin_blue/images/header_text.png" alt="<?php echo T_('Mambo Logo') ?>" /></div>
  60      </div>
  61  </div>
  62  <?php if (!mosGetParam( $_REQUEST, 'hidemainmenu', 0 )) { ?>
  63  <table width="100%" class="menubar" cellpadding="0" cellspacing="0" border="0">
  64    <tr>
  65      <td class="menubackgr"><?php mosLoadAdminModule( 'fullmenu' );?></td>
  66      <td class="menubackgr" align="right">
  67          <div id="wrapper1">
  68              <?php mosLoadAdminModules( 'header', 3 );?>
  69          </div>
  70      </td>
  71      <td class="menubackgr" align="right"><strong><?php echo $my->username;?>: </strong><a href="index2.php?option=logout" style="color: #333333; font-weight: bold"><?php echo T_('Logout') ?></a> &nbsp;</td>
  72      </tr>
  73  </table>
  74  <?php } ?>
  75  <table width="100%" class="menubar" cellpadding="0" cellspacing="0" border="0">
  76    <tr>
  77      <td class="menudottedline" width="40%">
  78          <?php mosLoadAdminModule( 'pathway' );?>
  79      </td>
  80      <td class="menudottedline" align="right">
  81            <?php mosLoadAdminModule( 'toolbar' );?>
  82      </td>
  83    </tr>
  84  </table>
  85  <br />
  86  <?php mosLoadAdminModule( 'mosmsg' );?>
  87  <div align="center">
  88  <div class="main">
  89  <table width="100%" border="0">
  90    <tr>
  91      <td valign="middle" align="center">
  92      <?php
  93      // Show list of items to edit or delete or create new
  94      if ($path = $mainframe->getPath( 'admin' )) {
  95          require $path;
  96      } else {
  97          echo "<img src=\"images/logo.png\" border=\"0\" alt=\"".T_('Mambo Logo')."\" />\r\n<br />\r\n";
  98      }
  99      ?>
 100     </td>
 101    </tr>
 102  </table>
 103  </div>
 104  </div>
 105  <table width="99%" border="0">
 106  <tr>
 107  <td align="center"><?php
 108  include  ($mosConfig_absolute_path . "/includes/footer.php");
 109  echo ("<div class=\"smallgrey\">");
 110  $tend = mosProfiler::getmicrotime();
 111  $totaltime = ($tend - $tstart);
 112  printf ("Page was generated in %f seconds", $totaltime);
 113  echo ("</div>");
 114  ?>
 115  </td></tr></table>
 116  <?php mosLoadAdminModules( 'debug' );?>
 117  </body>
 118  </html>