- 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

@@ -29,7 +29,9 @@ function checkHost($host, $wp_current) {
preg_match("/wp_version = '([0-9]+\.[0-9]+(\.[0-9]+)?)';/", $parts[1], $matches);
$version = $matches[1];
if($version < $wp_current) {
echo "WARNING: Outdated Wordpress $version at $hostidentifier$location\n";
verbose("WARNING: Outdated Wordpress $version at $hostidentifier$location", 0);
} else {
verbose("Recent Wordpress $version at $hostidentifier$location", 2);
}
}
unset($results);