Thanks, but theres still two more problems that can't be solved with a simple function
1. Listing the variables used in vBulletin (get_defined_vars returns an insanely long number of already-defined variables which is a VERY long list (Since a lot of usernames and forum descriptions are defined there))
2. Getting the list of arguments (func_get_args can only be used inside the function itself)
Thanks for pointing out that function for me, I wrote a simple little script to show all of the functions:
PHP Code:
<?php
require_once('./global.php');
if ($handle = opendir('./includes')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file != "cron" && $file != "index.html") {
require_once('./includes/'.$file);
}
}
}
$functions = get_defined_functions();
for ($i = 0; $i <= count($functions['user']); $i++) {
print $functions['user'][$i];
print "<br>";
}
?>
If I can get a complete list of functions, variables, and arguments I may write a reference manual for myself and put it online somewhere... I'm sure many more hacks would pop up if there was proper documentation
Update: Fixed the script so it includes all files in ./includes/