'1.1.0',
'In-Link' => '3.1.0',
'In-News' => '1.1.0',
'In-Bulletin' => '1.1.0'
);
$conn =& GetADODBConnection();
$query = 'SELECT * FROM '.GetTablePrefix().'Modules';
$rs = $conn->Execute($query);
while($rs && !$rs->EOF)
{
if (isset($min_versions[$rs->fields['Name']])) {
if ( ConvertVersion($rs->fields['Version']) < ConvertVersion($min_versions[$rs->fields['Name']]) ) {
$PreRequisitErrors[] = 'Please upgrade '.$rs->fields['Name'].' to version '.$min_versions[$rs->fields['Name']].' or above';
$result = false;
}
}
$rs->MoveNext();
}
if (isset($show_errors) && $show_errors)
{
foreach($PreRequisitErrors as $error)
{
echo ''.$error.'
';
}
}
?>