Source for file index.php

Documentation is available at index.php

  1. <?php
  2. /**
  3. @package Mambo Open Source
  4. @copyright (C) 2005 - 2006 Mambo Foundation Inc.
  5. @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
  6. *
  7. *  Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure
  8. *  that Mambo remained free Open Source software owned and managed by the community.
  9. *  Mambo is Free Software
  10. */ 
  11.  
  12. /** ensure this file is being included by a parent file */
  13. defined'_VALID_MOS' or die'Direct Access to this location is not allowed.' );
  14.  
  15. $tstart mosProfiler::getmicrotime();
  16. // needed to seperate the ISO number from the language file constant _ISO
  17. $iso explode'='_ISO );
  18. // xml prolog
  19. echo '<?xml version="1.0" encoding="'$iso[1.'"?' .'>';
  20. ?>
  21. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  22. <html xmlns="http://www.w3.org/1999/xhtml">
  23. <head>
  24. <title><?php echo $mosConfig_sitename?> - <?php echo T_('Administration'?> [Mambo]</title>
  25. <link rel="stylesheet" href="templates/mambo_admin_blue/css/template_css.css" type="text/css" />
  26. <link rel="stylesheet" href="templates/mambo_admin_blue/css/theme.css" type="text/css" />
  27. <script language="JavaScript" src="<?php echo $mosConfig_live_site?>/includes/js/JSCookMenu.js" type="text/javascript"></script>
  28. <script language="JavaScript" src="<?php echo $mosConfig_live_site?>/includes/js/ThemeOffice/theme.js" type="text/javascript"></script>
  29. <script language="JavaScript" src="<?php echo $mosConfig_live_site?>/includes/js/mambojavascript.js" type="text/javascript"></script>
  30. <?php
  31. // if(@$_REQUEST["task"] == "edit" || @$_REQUEST["task"] == "new") {
  32. // MUST be included ALWAYS for custom components to work
  33.     include_once$mosConfig_absolute_path "/editor/editor.php" );
  34.     initEditor();
  35. //}
  36. ?>
  37. <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO?>" />
  38. <!--
  39. *    DO NOT REMOVE THE FOLLOWING - FAILURE TO COMPLY IS A DIRECT VIOLATION
  40. *    OF THE GNU GENERAL PUBLIC LICENSE - http://www.gnu.org/copyleft/gpl.html
  41. -->
  42. <?php
  43. echo "<meta name=\"Generator\" content=\"copyright (C) 2005 - 2006 Mambo Foundation Inc.  All rights reserved.\" />\r\n";
  44. ?>
  45. <!--
  46. *    END OF COPYRIGHT
  47. -->
  48. </head>
  49. <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')">
  50. <div id="mambover">
  51. <?php echo 'نسخه مامبو: '.$_VERSION->RELEASE.'.'$_VERSION->DEV_LEVEL.'p'?>
  52. </div>
  53. <div id="wrapper">
  54.     <div id="header">
  55.            <div id="mambo"><img src="templates/mambo_admin_blue/images/header_text.png" alt="<?php echo T_('Mambo Logo'?>" /></div>
  56.     </div>
  57. </div>
  58. <?php if (!mosGetParam$_REQUEST'hidemainmenu')) ?>
  59. <table width="100%" class="menubar" cellpadding="0" cellspacing="0" border="0">
  60.   <tr>
  61.     <td class="menubackgr"><?php mosLoadAdminModule'fullmenu' );?></td>
  62.     <td class="menubackgr" align="right">
  63.         <div id="wrapper1">
  64.             <?php mosLoadAdminModules'header');?>
  65.         </div>
  66.     </td>
  67.     <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>
  68.     </tr>
  69. </table>
  70. <?php ?>
  71. <table width="100%" class="menubar" cellpadding="0" cellspacing="0" border="0">
  72.   <tr>
  73.     <td class="menudottedline" width="40%" align="right">
  74.         <?php mosLoadAdminModule'pathway' );?>
  75.     </td>
  76.     <td class="menudottedline" align="left">
  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=\"".T_('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