better environment handling, options to support local check

This commit is contained in:
florian
2013-10-05 13:49:54 +00:00
parent 088be8447c
commit cc2248ce9d
2 changed files with 12 additions and 4 deletions

View File

@@ -2,8 +2,12 @@
<? <?
// Fetch the host list to check // Fetch the host list to check
// //
$hosts = explode(' ', getenv('CHK_HOSTS')); if( getenv('CHK_HOSTS') == null ) {
if (implode($hosts)=='') die("No hosts to check.\n"); $hosts = null;
}else {
$hosts = explode(' ', getenv('CHK_HOSTS'));
if (implode($hosts)=='') die("No hosts to check.\n");
}
// Retrieve current Drupal version as documented at http://www.goldcoastmedia.co.uk/blog/drupal-versions-with-php // Retrieve current Drupal version as documented at http://www.goldcoastmedia.co.uk/blog/drupal-versions-with-php
// //

View File

@@ -2,8 +2,12 @@
<? <?
// Fetch the host list to check // Fetch the host list to check
// //
$hosts = explode(' ', getenv('CHK_HOSTS')); if( getenv('CHK_HOSTS') == null ) {
if (implode($hosts)=='') die("No hosts to check.\n"); $hosts = null;
}else {
$hosts = explode(' ', getenv('CHK_HOSTS'));
if (implode($hosts)=='') die("No hosts to check.\n");
}
// Retrieve current Wordpress version from http://api.wordpress.org/core/version-check/1.6/ // Retrieve current Wordpress version from http://api.wordpress.org/core/version-check/1.6/
// //