ITS supports the following modules.
$row) {
$name[$key] = $row['name'];
$type[$key] = $row['type'];
}
array_multisort($name, SORT_ASC, $type, SORT_ASC, $dir_list);
$i = sizeof($dir_list);
$a = 0;
while ($a < $i) {
if ($dir_list[$a]['type'] == "Core")
$fullpath = $cpath . $dir_list[$a]['name'] . "/" . $dir_list[$a]['name'] . ".info";
else $fullpath = $ipath . $dir_list[$a]['name'] . "/" . $dir_list[$a]['name'] . ".info";
// open file
//print $fullpath;
//print " " . $dir_list[$a]['type'];
//print "
";
$fp = fopen($fullpath,"r");
$data = "";
// $i = 0;
$search1 = "version";
$search2 = "description = ";
while (!feof($fp))
{
$data = strip_tags(fgets($fp));
if ((strpos($data, $search1) !== false) && (strpos($data,"VERSION") === false))
{
$len = strlen($data);
$t = substr($data,11,$len-1);
$t = str_replace("\"","",$t);
$dir_list[$a]['version'] = $t;
//print $dir_list[$a]['version'];
//print "
";
}
else if (strpos($data, $search2) !==false)
{
$len = strlen($data);
$t = substr($data,14,$len-1);
$t = str_replace("\"","",$t);
$dir_list[$a]['description'] = $t;
}
} //end while
// close file
fclose($fp);
$a++;
}
$a = 0;
print "
Module Name | Status | URL | Description |
"; print ucfirst($dir_list[$a]['name']) . " " . $dir_list[$a]['version']; print " | "; print $dir_list[$a]['type']; print " | "; // print "Module Page"; if ($dir_list[$a]['type'] == "Core") print "Module Page"; print " | "; print $dir_list[$a]['description']; print " |