aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.php b/index.php
index 38e5a0d..4deefcd 100644
--- a/index.php
+++ b/index.php
@@ -45,8 +45,13 @@ try {
}
else $route = '';
+
+ $pieces = parse_url($route);
+ $route = $pieces['path'];
$route = rtrim($route, '/');
+ $GLOBALS['forceopen'] = isset($_GET['forceopen']);
+
// generic template
$tpl = new PhpTemplate('template/page.phtml');
$tpl->set(array(