Don't show status pages on Airtime Pro

This commit is contained in:
Duncan Sommerville 2015-06-30 15:19:05 -04:00
parent b4599317e9
commit 771aeaacb6

View file

@ -63,6 +63,11 @@ if (file_exists($filename)) {
} }
// Otherwise, we'll need to run our configuration setup // Otherwise, we'll need to run our configuration setup
else { else {
// Sometimes we can get into a weird NFS state where a station's airtime.conf has
// been neg-cached - redirect to a 404 instead until the NFS cache is updated
if (strpos($_SERVER['SERVER_NAME'], "airtime.pro") !== false) {
header($_SERVER['SERVER_PROTOCOL'] . ' 404 Page Not Found', true, 404);
}
$airtimeSetup = true; $airtimeSetup = true;
require_once(SETUP_PATH . 'setup-config.php'); require_once(SETUP_PATH . 'setup-config.php');
} }