JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fixed file_run to use _main postfix, added enc_url_path(), enc_ddmmyyyhhmm(), allowed...
[wfpl.git] / file_run.php
index 409cb4b..fd1d20f 100644 (file)
 #
 # 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();
 }