# Software Foundation; either version 2 of the # License, or (at your option) any later version. # # GPL: http://www.gnu.org/licenses/gpl.txt # ################################################## define('SCRIPT_EXP_RELATIVE', ''); define('SCRIPT_FILENAME', 'popup.php'); ob_start(); // Initialize the Exponent Framework require_once 'exponent.php'; // Initialize the Theme Subsystem if (!defined('SYS_THEME')) { require_once BASE . 'subsystems/theme.php'; } $loc = exponent_core_makeLocation(isset($_GET['module']) ? $_GET['module'] : '', isset($_GET['src']) ? $_GET['src'] : '', isset($_GET['int']) ? $_GET['int'] : ''); $SYS_FLOW_REDIRECTIONPATH = 'popup'; if (exponent_theme_inAction()) { exponent_theme_runAction(); } else { if (isset($_GET['module']) && isset($_GET['view'])) { exponent_flow_set(SYS_FLOW_PUBLIC, SYS_FLOW_SECTIONAL); $mod = new $_GET['module'](); $mod->show($_GET['view'], $loc, isset($_GET['title']) ? $_GET['title'] : ''); } } $str = ob_get_contents(); ob_end_clean(); $template = new standalonetemplate('popup_' . (isset($_GET['template']) ? $_GET['template'] : 'general')); $template->assign('output', $str); $template->output();
function exponent_theme_runAction() { if (exponent_theme_inAction()) { if (!AUTHORIZED_SECTION) { echo SITE_403_HTML; // return; } if (exponent_sessions_isset("themeopt_override")) { $config = exponent_sessions_get("themeopt_override"); echo "<a class='mngmntlink sitetemplate_mngmntlink' href='" . $config['mainpage'] . "'>" . $config['backlinktext'] . "</a><br /><br />"; } global $db, $user; $loc = null; $loc->mod = $_REQUEST['module']; $loc->src = isset($_REQUEST['src']) ? $_REQUEST['src'] : ""; $loc->int = isset($_REQUEST['int']) ? $_REQUEST['int'] : ""; $actfile = exponent_core_resolveFilePaths("modules", $_REQUEST['module'], "action", $_REQUEST['action']); if ($actfile != false) { include_once array_pop($actfile); } else { $i18n = exponent_lang_loadFile('subsystems/theme.php'); echo SITE_404_HTML . '<br /><br /><hr size="1" />'; echo sprintf($i18n['no_action'], strip_tags($_REQUEST['module']), strip_tags($_REQUEST['action'])); echo '<br />'; } } }