avatar
Untitled

Guest 99 19th Feb, 2021

                                           
                         public function detectWebView(){
        if(isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'Mobile/') !== false) && (strpos($_SERVER['HTTP_USER_AGENT'], 'Safari/') == false)){
            header('Location: https://www.allsmo.com/detect-webview');
            exit();
        }elseif(isset($_SERVER['HTTP_X_REQUESTED_WITH'])){
            header('Location: https://www.allsmo.com/detect-webview');
            exit();
        }else{
            return true;
        }
    }
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes