add scripts for CakePHP and PHPMyAdmin, courtesy of WvR.

Also include new logging options (verbosity)
This commit is contained in:
florian
2013-10-05 15:45:31 +00:00
parent 556fe14b86
commit e0da46edca
5 changed files with 87 additions and 16 deletions

View File

@@ -1,13 +1,6 @@
#!/usr/bin/php -q
<?
// Fetch the host list to check
//
if(getenv('CHK_HOSTS') == null) {
$hosts = null;
} else {
$hosts = explode(' ', getenv('CHK_HOSTS'));
if (implode($hosts)=='') die("No hosts to check.\n");
}
require_once("toolkit.php");
// Retrieve current Drupal version as documented at http://www.goldcoastmedia.co.uk/blog/drupal-versions-with-php
//
@@ -30,6 +23,8 @@ if($feed && $feed instanceof SimpleXMLElement) {
}
}
verbose("Current Drupal version: $dr_current", 1);
// Start checking hosts
//
checkHost(null, $dr_current);