���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/st2/logs/v2/src/CloudflareBypass/ |
<?php namespace CloudflareBypass; class CFCore extends CFBypass { /** * Maximum retries allowed. * @var integer */ protected $max_retries = 5; /** * Use caching mechanism. * @var bool */ protected $cache = false; /** * Configuration properties: * * Key Sets * ------------------------------------------- * "cache" $this->cache (to Storage class) * "max_retries" $this->max_retries (to value given) * * @access public * @param array $config Config containing any of the properties above. * @throws \ErrorException if "max_retries" IS NOT an integer */ public function __construct($config = array()) { $cache = isset($config['cache']) ? $config['cache'] : true; $cache_path = isset($config['cache_path']) ? $config['cache_path'] : sys_get_temp_dir()."/cf-bypass"; if ($cache === true) { $this->cache = new Storage($cache_path); } // Set $this->max_retries if (isset($config['max_retries'])) { if (!is_numeric($config['max_retries'])) { throw new \ErrorException('"max_retries" should be an integer!'); } $this->max_retries = $config['max_retries']; } } }