3 function gwvp_PluginLoader($path="")
7 error_log("attempting to load plugins from $path");
8 $dh = opendir("$path");
10 while(($file = readdir($dh))!==false) {
11 $mt = preg_match("/.*.php$/", $file);
13 error_log("loading plugin $file");
14 require_once("$path/$file");
15 //echo "required $basedir/$file\n";
22 // we assume the config is loaded, but this is where it works:
23 error_log("begin plugin load");
24 if(isset($plugin_path)) {
25 error_log("path set");
26 if(is_dir($plugin_path)) {
27 error_log("is dir, beginning load");
28 gwvp_PluginLoader($plugin_path);