X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=run.php;h=b5b91a18a1d66893802619a98b82056567587e27;hb=5ee58fc7dd8f44e53075e6898f89409c980ad34d;hp=24072029821ecc46929272b9cf8a7dce902e9435;hpb=bdcec472dcd1e9fc6ff9df137f838f1f3124ec9c;p=wfpl.git
diff --git a/run.php b/run.php
index 2407202..b5b91a1 100644
--- a/run.php
+++ b/run.php
@@ -1,23 +1,9 @@
404404 File Not Found
';
}
@@ -108,14 +122,6 @@ function run_php($basename = false) {
# files can return a basename or URL of a page to be run/displayed
$other = file_run($php_file);
if($other) {
- if(strpos($other, ':')) {
- redirect($other);
- exit();
- }
- if(substr($other, 0, 2) == './') {
- redirect(ereg_replace('/[^/]*$', substr($other, 1), this_url()));
- exit();
- }
run_php($other);
return;
}
@@ -131,6 +137,7 @@ function run_php($basename = false) {
if(file_exists('template.html')) {
$tem = new tem();
$tem->load("template.html");
+ $tem->set('basename', $basename);
if($cms_content) foreach($cms_content as $name => $val) {
$tem->append($name, $val);
}