ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
wp-includes
2026-09-14 18:51:32
Editing: DeviceParser.php
Cancel
Save Changes
<?php /** * ua-parser * * Copyright (c) 2011-2013 Dave Olsen, http://dmolsen.com * Copyright (c) 2013-2014 Lars Strojny, http://usrportage.de * * Released under the MIT license */ namespace UAParser; use UAParser\Result\Device; class DeviceParser extends AbstractParser { /** * Attempts to see if the user agent matches a device regex from regexes.php * * @param string $userAgent a user agent string to test * @return Device */ public function parseDevice($userAgent) { $device = new Device(); list($regex, $matches) = $this->tryMatch($this->regexes['device_parsers'], $userAgent); if ($matches) { $device->family = $this->multiReplace($regex, 'device_replacement', $matches[1], $matches); $device->brand = $this->multiReplace($regex, 'brand_replacement' , null, $matches); $deviceModelDefault = $matches[1] != 'Other' ? $matches[1] : null; $device->model = $this->multiReplace($regex, 'model_replacement' , $deviceModelDefault, $matches); } return $device; } }
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete