X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=run2.php;h=abe0dfaefa9c2092d95f70cfac8cc78bda38253f;hb=23dfbcc20fc6d20fb5be211e5af50cdcb8565c8e;hp=333ba755a24e3287602dc7650e6955dcc7a903d9;hpb=aed28998bb6d6be4f35ccc300de8a004507849c9;p=wfpl.git diff --git a/run2.php b/run2.php index 333ba75..abe0dfa 100644 --- a/run2.php +++ b/run2.php @@ -41,9 +41,9 @@ # RewriteRule ^$ /foo/run.php # RewriteRule ^foo/[^/]*\.html$ /foo/run.php -require_once('code/wfpl/file_run.php'); -require_once('code/wfpl/http.php'); -require_once('code/wfpl/template.php'); +require_once(__DIR__.'/'.'code/wfpl/file_run.php'); +require_once(__DIR__.'/'.'code/wfpl/http.php'); +require_once(__DIR__.'/'.'code/wfpl/template.php'); if(file_exists('code/config.php')) { file_run('code/config.php'); @@ -116,7 +116,7 @@ function run_php($dest = false) { run_php('404'); return; } else { - echo '404

404 File Not Found

'; + echo '404

404 File Not Found

'; exit(); } }