uawdijnntqw1x1x1
IP : 104.23.243.222
Hostname : vps-ebe98236
Kernel : Linux vps-ebe98236 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
html
/
Joomla
/
b2748
/
..
/
plugins
/
content
/
joomla
/
..
/
sigplus
/
useragent.php
/
/
<?php /** * @file * @brief sigplus Image Gallery Plus user agent detection * @author Levente Hunyadi * @version 1.4.3 * @remarks Copyright (C) 2009-2012 Levente Hunyadi * @remarks Licensed under GNU/GPLv3, see http://www.gnu.org/licenses/gpl-3.0.html * @see http://hunyadi.info.hu/projects/sigplus */ /* * sigplus Image Gallery Plus plug-in for Joomla * Copyright 2009-2012 Levente Hunyadi * * sigplus is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * sigplus is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ // no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); /** * User agent detection and support. */ class SIGPlusUserAgent { /** * True if the user agent is a mobile device. */ public static function handheld() { $params = self::getParameters(); return $params->handheld; } /** * Returns the parameters of the user agent. */ public static function getParameters() { static $params = null; if (isset($params)) { return $params; } jimport('joomla.environment.browser'); $browser = JBrowser::getInstance(); $agent = $browser->getAgentString(); $params = new stdClass; if ($browser->isMobile() || stripos($agent, 'mobile') !== false || stripos($agent, 'android') !== false) { $params->handheld = true; $params->browser = $browser->getBrowser(); if (stripos($agent, 'ipad') !== false) { // iPad $params->name = 'ipad'; } elseif (stripos($agent, 'iphone') !== false) { // iPhone $params->name = 'iphone'; } elseif (stripos($agent, 'ipod') !== false) { // iPod $params->name = 'ipod'; } elseif (stripos($agent, 'android') !== false) { // Android device $params->name = 'android'; // find model and build, parse e.g. "Android 2.1-update1; en-us; Nexus One Build/FRF91" $regex = '#android\s+(\d+\.\d+(?:-update\d+)?)(?:;\s+([a-z]{2}-[a-z]{2}))?(?:;\s+(.*?)\s+build/(\w+))?#i'; $matches = array(); if (preg_match($regex, $agent, $matches)) { $params->version = $matches[1]; // e.g. "2.1-update1" if (isset($matches[2]) && strlen($matches[2]) > 0) { $params->language = $matches[2]; // e.g. "en-us" } if (isset($matches[3]) && strlen($matches[3]) > 0) { $params->model = $matches[3]; // e.g. "Nexus One" } if (isset($matches[4]) && strlen($matches[4]) > 0) { $params->build = $matches[4]; // e.g. "FRF91" } } } } else { $params->handheld = false; } return $params; } }
/var/www/html/Joomla/b2748/../plugins/content/joomla/../sigplus/useragent.php