2) { $dirName=$pluginPath.$files[$x]; $infoFileName=$dirName."/info.xml"; if(file_exists($infoFileName)){ $pluginInfo[$pluginCounter]['path']=$dirName; $xml = simplexml_load_file($infoFileName); $pluginInfo[$pluginCounter]['caption']=$xml->xpath("caption")[0]; $pluginInfo[$pluginCounter]['author']=$xml->xpath("author")[0]; $pluginInfo[$pluginCounter]['class']=$xml->xpath("class")[0]; $pluginCounter++; } } } } ?>