DirHandle) {
$this->Error = "Could not open directory: $dir";
throw new Exception($this->Error);
}
*/
$found = array();
$found['required'] = array();
$found['optional'] = array();
$not_found = array();
$not_found['required'] = array();
$not_found['optional'] = array();
while (($filename = readdir($dir_handle)) !== false) {
$tmpfname = INSTMOD_BASE . '/' . $filename;
if (!is_dir($tmpfname)) {
include($tmpfname);
$installed = true;
if (isset($functions) && is_array($functions))
foreach ($functions as $function)
if (!function_exists($function)) {
$installed = false;
continue;
}
if (isset($classes) && is_array($classes))
foreach ($classes as $class)
if (!class_exists($class)) {
$installed = false;
continue;
}
if ($installed == true)
$found[$importance][$module] = $comment;
else
$not_found[$importance][$module] = $comment;
}
}
print 'Required module failure list:
';
foreach ($not_found['required'] as $key => $value)
print '' . $key . ' - ' . $value . '
';
print '
Optional module failure list:
';
foreach ($not_found['optional'] as $key => $value)
print '' . $key . ' - ' . $value . '
';
print '
Required module success list:
';
foreach ($found['required'] as $key => $value)
print '' . $key . ' - ' . $value . '
';
print '
Optional module success list:
';
foreach ($found['optional'] as $key => $value)
print '' . $key . ' - ' . $value . '
';
exit();
?>