function pathos_theme_main() { global $db, $user; if ((!defined("SOURCE_SELECTOR") || SOURCE_SELECTOR == 1) && (!defined("CONTENT_SELECTOR") || CONTENT_SELECTOR == 1)) { $last_section = pathos_sessions_get("last_section"); $section = $db->selectObject("section", "id=" . $last_section); // View authorization will be taken care of by the runAction and mainContainer functions if (pathos_theme_inAction()) { pathos_theme_runAction(); } else { if ($section == null) { pathos_theme_goDefaultSection(); } else { pathos_theme_mainContainer(); } } } else { if (isset($_REQUEST['module'])) { include_once BASE . "modules/containermodule/actions/orphans_content.php"; } else { pathos_lang_loadDictionary('subsystems', 'theme'); echo TR_THEMESUBSYSTEM_SELECTMODULE; } } }
if (pathos_theme_inAction()) { ?> <td width="554" height="239" colspan="2" valign="top" style="padding: 10px"><?php pathos_theme_runAction(); } else { ?> <td width="180" height="239" align="left" valign="top"> <table width="180" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3"> </td> </tr> <tr> <td height="221"> </td> <td width="160" align="left" valign="top" class="footer"> <?php pathos_theme_showModule("loginmodule", "Default"); ?> <?php pathos_theme_showModule("previewmodule", "Default"); ?> <br /><hr size="1"/><br /><?php pathos_theme_showModule("navigationmodule", "Children Only"); ?> <br /><hr size="1"/><br /><?php pathos_theme_showSectionalModule("containermodule", "Default", "", "@left"); ?> <br /><hr size="1"/><br /><?php pathos_theme_showSectionalModule("containermodule", "Default", "", "@right"); ?> </td> <td> </td>