Beispiel #1
0
 public function performChecks()
 {
     if (AJXP_Utils::userAgentIsIOS() && !isset($_GET["skipIOS"]) && !isset($_COOKIE["SKIP_IOS"])) {
         return;
     }
     if (AJXP_Utils::userAgentIsAndroid() && !isset($_GET["skipANDROID"]) && !isset($_COOKIE["SKIP_ANDROID"])) {
         return;
     }
     throw new Exception("Active only when mobile user agent detected.");
 }
 public function performChecks()
 {
     if (isset($_SESSION["CURRENT_MINISITE"])) {
         throw new Exception("Disabled for minisites");
     }
     if (AJXP_Utils::userAgentIsIOS() && !isset($_GET["skipIOS"]) && !isset($_COOKIE["SKIP_IOS"])) {
         return;
     }
     if (AJXP_Utils::userAgentIsAndroid() && !isset($_GET["skipANDROID"]) && !isset($_COOKIE["SKIP_ANDROID"])) {
         return;
     }
     throw new Exception("Active only when mobile user agent detected.");
 }