Adjust to allow for other aliased localhosts.

This commit is contained in:
Andrew Tomaka 2011-10-14 05:04:21 -04:00
parent 1b0bda4a57
commit f64e4246f6

View file

@ -4,7 +4,7 @@
// * * * * * php cronjobs/index_data.php >/dev/null 2>&1 // * * * * * php cronjobs/index_data.php >/dev/null 2>&1
// Collect data from various services and store locally for later display. // 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'; $CACHE_FILE = '../data/cache.txt';
$DATA_FILE = '../data/index.txt'; $DATA_FILE = '../data/index.txt';
} else { } else {