diff --git a/configs/config.php b/configs/config.php index f5eb532c5..e712c07b4 100755 --- a/configs/config.php +++ b/configs/config.php @@ -43,6 +43,7 @@ define('QUERY_INFO', 2); define('ERROR_INFO', 4); date_default_timezone_set('America/Los_Angeles'); + if(file_exists(BASE_DIR."/configs/local_config.php")) { /** Include any locally specified defines (could use as an alternative way to set work directory) */ @@ -78,7 +79,8 @@ if(file_exists(WORK_DIRECTORY."/profile.php")) { define('NAME_SERVER', QUEUE_SERVER); //for backward compatibility } } else { - if($_SERVER['SERVER_NAME'] !== 'localhost') { + if($_SERVER['SERVER_NAME'] !== 'localhost' && !(defined(NO_LOCAL_CHECK) + && NO_LOCAL_CHECK)) { echo "SERVICE AVAILABLE ONLY VIA LOCALHOST UNTIL CONFIGURED"; exit(); } diff --git a/controllers/statistics_controller.php b/controllers/statistics_controller.php index 7241ba3b4..b74e5bbd7 100644 --- a/controllers/statistics_controller.php +++ b/controllers/statistics_controller.php @@ -197,7 +197,7 @@ class StatisticsController extends Controller implements CrawlConstants "SERVER" => array("aolserver", "apache", "bigip", "boa", "caudium", "cherokee", "gws", "goahead-webs", "httpd", "iis", "ibm_http_server", "jetty", "lighttpd", "litespeed", - "microsoft-iis", "nginx", "resin", "sun-java-system", + "microsoft-iis", "nginx", "resin", "server", "sun-java-system", "thttpd", "tux", "virtuoso", "webrick", "yaws", "yts", "zeus", "zope"), "SITE" => array(".aero", ".asia", ".biz", ".cat", ".com", ".coop",