- 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:
florian
2013-10-08 08:15:47 +00:00
parent 00252a4bab
commit 0ea8595cd3
4 changed files with 19 additions and 8 deletions

View File

@@ -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);