/** * Control panel */ public static function controlPanel() { global $mosConfig_absolute_path, $mainframe; ?> <table class="adminheading" border="0"> <tr> <th class="cpanel"> Control Panel </th> </tr> </table> <?php $path = $mosConfig_absolute_path . '/administrator/templates/' . $mainframe->getTemplate() . '/cpanel.php'; if (file_exists($path)) { require $path; } else { echo '<br />'; mosLoadAdminModules('cpanel', 1); } }
<div align="center"> <?php echo $_VERSION->URL; ?> </div> <div align="center" class="smallgrey"> <?php echo $version; ?> <br /> </div> <?php if ($mosConfig_debug) { echo '<div class="smallgrey">'; $tend = mosProfiler::getmicrotime(); $totaltime = $tend - $tstart; printf("Page was generated in %f seconds", $totaltime); echo '</div>'; } ?> </td> </tr> </table> </div> <?php mosLoadAdminModules('debug'); ?> </body> </html>
function mosLoadAdminModules($position = 'left', $style = 0) { return mosLoadAdminModules($position, $style); }
* to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ /** ensure this file is being included by a parent file */ defined('_VALID_MOS') or die('Restricted access'); ?> <table class="adminform"> <tr> <td width="55%" valign="top"> <?php mosLoadAdminModules('icon', 0); ?> </td> <td width="45%" valign="top"> <div style="width: 100%;"> <form action="index2.php" method="post" name="adminForm"> <?php mosLoadAdminModules('cpanel', 1); ?> <input type="hidden" name="<?php echo josSpoofValue(); ?> " value="1" /> </form> </div> </td> </tr> </table>
/** * Control panel */ function controlPanel() { global $mosConfig_absolute_path, $mainframe; ?> <table class="adminheading" border="0"> <tr> <th class="cpanel"> <?php echo T_('Home'); ?> </th> </tr> </table> <table width="100%" class="adminheading"> <tr> <?php if ($_SESSION['simple_editing'] == 'on') { $_SESSION['simple_editing'] = 'on'; ?> <td align="left" width="20%"> </td><td align="left" ><a class="selected" href="index2.php?option=simple_mode" title="<?php echo T_('Simple Mode'); ?> (<?php echo T_('selected'); ?> )"><?php echo T_('Simple Mode'); ?> </a> / <a class="unselected" href="index2.php?option=advanced_mode" title="<?php echo T_('Advanced Mode'); ?> (<?php echo T_('unselected'); ?> )"><?php echo T_('Advanced Mode'); ?> </a></td> <?php } else { $_SESSION['simple_editing'] = 'off'; ?> <td align="left" width="20%"> </td><td align="left" ><a class="unselected"href="index2.php?option=simple_mode" title="<?php echo T_('Simple Mode'); ?> (<?php echo T_('unselected'); ?> )" ><?php echo T_('Simple Mode'); ?> </a> / <a class="selected" href="index2.php?option=advanced_mode" title="<?php echo T_('Advanced Mode'); ?> (<?php echo T_('selected'); ?> )"><?php echo T_('Advanced Mode'); ?> </a></td> <?php } ?> </tr> </table> <?php $path = $mosConfig_absolute_path . '/administrator/templates/' . $mainframe->getTemplate() . '/cpanel.php'; if (file_exists($path)) { require $path; } else { echo '<br />'; mosLoadAdminModules('cpanel', 1); } }