# return array('me', 'secret');
# }
-function file_run($filename) {
+function file_run($filename /* args... */) {
+ $args = array_slice(func_get_args(), 1);
require_once($filename);
$func = basename($filename, '.php') . '_main';
if(function_exists($func)) {
- return $func();
+ return call_user_func_array($func, $args);
}
}