Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
renamed tem_sub() to tem_show()
[wfpl.git]
/
file_run.php
diff --git
a/file_run.php
b/file_run.php
index
409cb4b
..
e177797
100644
(file)
--- a/
file_run.php
+++ b/
file_run.php
@@
-32,15
+32,15
@@
#
# the file db_password.php would be like so:
#
#
# the file db_password.php would be like so:
#
-# function db_password() {
+# function db_password_main() {
# return array('me', 'secret');
# }
function file_run($filename) {
# return array('me', 'secret');
# }
function file_run($filename) {
- require_once($filename);
- ereg_replace('.*/', '', $filename);
- $func = basename($filename, '.php');
- return $func();
+ require_once($filename);
+ $func = basename($filename, '.php') . '_main';
+
+ return $func();
}
?>
}
?>