From f64e4246f651fd726881af64004934fdddcd14c0 Mon Sep 17 00:00:00 2001 From: atomaka Date: Fri, 14 Oct 2011 05:04:21 -0400 Subject: [PATCH] Adjust to allow for other aliased localhosts. --- cronjobs/index_data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cronjobs/index_data.php b/cronjobs/index_data.php index 7863804..ab64a96 100644 --- a/cronjobs/index_data.php +++ b/cronjobs/index_data.php @@ -4,7 +4,7 @@ // * * * * * php cronjobs/index_data.php >/dev/null 2>&1 // Collect data from various services and store locally for later display. //***************************************************************************// -if($_SERVER['SERVER_NAME'] == 'localhost') { +if(in_array($_SERVER['SERVER_NAME'],array('localhost','a.io'))) { $CACHE_FILE = '../data/cache.txt'; $DATA_FILE = '../data/index.txt'; } else {