-1, 'type' => ADMIN, 'username' => '?', 'boards' => Array('*') ); function get_httpd_privileges() { global $config, $shell_path, $argv; if(php_sapi_name() != 'cli') die("get_httpd_privileges(): invoked from HTTP client.\n"); echo "Dropping priviledges...\n"; if(!is_writable('.')) die("get_httpd_privileges(): web directory is not writable\n"); $filename = '.' . md5(rand()) . '.php'; $inc_filename = '.' . md5(rand()) . '.php'; echo "Copying rebuilder to web directory...\n"; // replace "/inc/cli.php" with its new filename passthru("cat " . escapeshellarg($shell_path . '/' . $_SERVER['PHP_SELF']) . " | sed \"s/'\/inc\/cli\.php'/'\/{$inc_filename}'/\" > {$filename}"); $inc_header = "