mirror of
https://github.com/BeitDina/AutoIndex.git
synced 2026-05-07 05:07:12 +02:00
Update MobileDeviceDetect.php to php8
This commit is contained in:
committed by
GitHub
parent
e476ea9ad8
commit
ed2939e191
@@ -36,6 +36,7 @@ class MobileDeviceDetect
|
||||
protected $cache;
|
||||
protected $words;
|
||||
protected $request;
|
||||
protected $language;
|
||||
|
||||
private $_user_agent;
|
||||
private $_name;
|
||||
@@ -46,15 +47,15 @@ class MobileDeviceDetect
|
||||
* Load sessions
|
||||
* @access public
|
||||
*
|
||||
*/
|
||||
*/
|
||||
function __construct($ua = '')
|
||||
{
|
||||
global $cache;
|
||||
global $request, $words;
|
||||
|
||||
$this->cache = $cache;
|
||||
$this->request = $request;
|
||||
$this->language = $words;
|
||||
$this->cache = $cache;
|
||||
$this->request = $request;
|
||||
$this->language = $words;
|
||||
|
||||
if(empty($ua))
|
||||
{
|
||||
@@ -607,9 +608,8 @@ class MobileDeviceDetect
|
||||
"<strong> - </strong> {$this->getVersion()}" .
|
||||
//"<strong>Browser User Agent String:</strong> {$this->getUserAgent()}<br/>\n" .
|
||||
" :: <strong>from OS:</strong> {$this->getPlatform()}" .
|
||||
"<strong>-</strong>{$mobile_device}, on a server with PHP ". PHP_VERSION ." & OS ". PHP_OS;
|
||||
"<strong>-</strong>{$mobile_device}, on a server with PHP ". PHP_VERSION ." & OS ". PHP_OS;
|
||||
}
|
||||
}
|
||||
|
||||
//end of class
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user