forked from exponentcms/exponent-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.php
52 lines (42 loc) · 1.36 KB
/
popup.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
##################################################
#
# Copyright (c) 2004-2011 OIC Group, Inc.
# Written and Designed by James Hunt
#
# This file is part of Exponent
#
# Exponent is free software; you can redistribute
# it and/or modify it under the terms of the GNU
# General Public License as published by the Free
# Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "." */
define('SCRIPT_EXP_RELATIVE','');
define('SCRIPT_FILENAME','popup.php');
ob_start();
// Initialize the Exponent Framework
require_once('exponent.php');
$loc = expCore::makeLocation(
(isset($_GET['module'])?$_GET['module']:''),
(isset($_GET['src'])?$_GET['src']:''),
(isset($_GET['int'])?$_GET['int']:'')
);
if (expTheme::inAction()) {
expTheme::runAction();
} else if (isset($_GET['module']) && isset($_GET['view'])) {
// expHistory::flowSet(SYS_FLOW_PUBLIC,SYS_FLOW_SECTIONAL);
expHistory::set('viewable', $router->params);
$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();
?>