X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=file_run.php;h=e17779774d51404e1aa2ab2d9e32c4946618970b;hb=73490300ca9dea6fc3c6d3a474ab49796fd58438;hp=fd1d20fe58ffe4470e902e548dcc6e91a1d420fc;hpb=6c27f346217f7b4b8b24064371f2461cf57c6167;p=wfpl.git diff --git a/file_run.php b/file_run.php index fd1d20f..e177797 100644 --- a/file_run.php +++ b/file_run.php @@ -37,10 +37,10 @@ # } function file_run($filename) { - require_once($filename); - ereg_replace('.*/', '', $filename); - $func = basename($filename, '.php') . '_main'; - return $func(); + require_once($filename); + $func = basename($filename, '.php') . '_main'; + + return $func(); } ?>