# 59 Temple Place, # Suite 330, # Boston, MA 02111-1307 USA # # $Id: popup.php,v 1.8 2005/04/18 15:52:48 filetreefrog Exp $ ################################################## define('SCRIPT_EXP_RELATIVE', ''); define('SCRIPT_FILENAME', 'popup.php'); ob_start(); // Initialize the Pathos Framework require_once 'pathos.php'; // Initialize the Theme Subsystem if (!defined('SYS_THEME')) { require_once BASE . 'subsystems/theme.php'; } $loc = pathos_core_makeLocation(isset($_GET['module']) ? $_GET['module'] : '', isset($_GET['src']) ? $_GET['src'] : '', isset($_GET['int']) ? $_GET['int'] : ''); $SYS_FLOW_REDIRECTIONPATH = 'popup'; if (pathos_theme_inAction()) { pathos_theme_runAction(); } else { if (isset($_GET['module']) && isset($_GET['view'])) { pathos_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 pathos_theme_runAction() { if (pathos_theme_inAction()) { if (!AUTHORIZED_SECTION) { echo SITE_403_HTML; // return; } if (pathos_sessions_isset("themeopt_override")) { $config = pathos_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 = "/" . $_REQUEST['module'] . "/actions/" . $_REQUEST['action'] . ".php"; if (isset($_REQUEST['_common'])) { $actfile = "/common/actions/" . $_REQUEST['action'] . ".php"; } if (is_readable(BASE . 'modules/' . $actfile)) { include_once BASE . 'modules/' . $actfile; } else { pathos_lang_loadDictionary('subsystems', 'theme'); echo SITE_404_HTML . '<br /><br /><hr size="1" />'; echo sprintf(TR_THEMESUBSYSTEM_NOSUCHACTION, strip_tags($_REQUEST['module']), strip_tags($_REQUEST['action'])); echo '<br />'; } } }