- improved finding location/version for phpmyadmin
- changed all logging to use verbose - implemented verbosity level 2, which prints all versions found (recent ones too)
This commit is contained in:
@@ -66,7 +66,11 @@ function checkHost($host, $dr_current) {
|
||||
$location = substr($parts[0], 0, strlen($parts[0])-23);
|
||||
if(substr($parts[1], 0, 16) == "define('VERSION'") {
|
||||
$version = substr($parts[1], 19, strpos($parts[1], "'", 19)-19);
|
||||
if($version < $dr_current) echo "WARNING: Outdated Drupal $version at $host:$location\n";
|
||||
if($version < $dr_current) {
|
||||
verbose("WARNING: Outdated Drupal $version at $host:$location", 0);
|
||||
} else {
|
||||
verbose("Recent Drupal $version at $host:$location", 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
unset($results);
|
||||
|
||||
Reference in New Issue
Block a user