X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=file_run.php;h=fd1d20fe58ffe4470e902e548dcc6e91a1d420fc;hb=6c27f346217f7b4b8b24064371f2461cf57c6167;hp=409cb4b190ced6549a60e0d47b9cb4e6dee8394a;hpb=410481c790e47f6a8193a2f3eb67e09180be0339;p=wfpl.git diff --git a/file_run.php b/file_run.php index 409cb4b..fd1d20f 100644 --- a/file_run.php +++ b/file_run.php @@ -32,14 +32,14 @@ # # the file db_password.php would be like so: # -# function db_password() { +# function db_password_main() { # return array('me', 'secret'); # } function file_run($filename) { require_once($filename); ereg_replace('.*/', '', $filename); - $func = basename($filename, '.php'); + $func = basename($filename, '.php') . '_main'; return $func(); }