test.php detect modules

mailling@bigfoot.com mailling@bigfoot.com
Thu, 19 Jul 2001 20:34:28 -0500


I propose a new way to show the list of modules and their releases
We based our search on registry.php and we use from their the directory

$this->applications=array();
@include_once './config/registry.php';
foreach ($this->applications as $module=>$details) {
     if (@is_readable($details['fileroot'] . '/lib/version.php')) {
         include_once $details['fileroot'] . '/lib/version.php';
         eval('$ver = ' . strtoupper($module) . '_VERSION;');
         $versions[$module] = $ver;
     }