static function init() { //@header("Content-Type: text/plain"); @header("Content-Type: application/json"); error_reporting(error_reporting() & ~E_NOTICE); self::define_SITE(); if (SITE == "live" or SITE == 'stage') { error_reporting(0); } $audience = self::detect_AUDIENCE(); global $dbs; include_once "config-{$audience}.php"; self::setUser(); $protocol = (isset($_SERVER['HTTPS']) and $_SERVER['HTTPS']) ? 'https' : 'http'; self::$ProtDomain = $protocol . "://" . $_SERVER['SERVER_NAME']; }