private function checkUserStatus() { global $wgRequest; wfProfileIn(__METHOD__); $hideSearchBox = $wgRequest->getInt('hidesearchbox'); if ($hideSearchBox === 1) { self::$hideSearchBox = true; } $hideLogo = $wgRequest->getInt('hidelogo'); if ($hideLogo === 1) { self::$hideLogo = true; } if (!empty($_SERVER['HTTP_APPLICATION_VERSION']) && strpos($_SERVER['HTTP_APPLICATION_VERSION'], 'Wikipedia Mobile') !== false) { self::$hideSearchBox = true; if (strpos($_SERVER['HTTP_APPLICATION_VERSION'], 'Android') !== false) { self::$hideLogo = true; } } if (self::$hideLogo == true) { self::$hideFooter = true; } $optInCookie = $this->getOptInOutCookie(); if (!empty($optInCookie) && $optInCookie == 1) { self::$isBetaGroupMember = true; } wfProfileOut(__METHOD__); return true; }