Source for file index.php

Documentation is available at index.php

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

Documentation generated on Mon, 05 May 2008 16:20:28 +0400 by phpDocumentor 1.4.0