From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- .../recaptcha/.github/ISSUE_TEMPLATE/bug_report.md | 28 --- .../phpmyadmin/vendor/google/recaptcha/.travis.yml | 33 --- .../vendor/google/recaptcha/ARCHITECTURE.md | 64 ----- .../vendor/google/recaptcha/CONTRIBUTING.md | 49 ---- srcs/phpmyadmin/vendor/google/recaptcha/LICENSE | 29 --- srcs/phpmyadmin/vendor/google/recaptcha/README.md | 140 ----------- srcs/phpmyadmin/vendor/google/recaptcha/app.yaml | 8 - .../vendor/google/recaptcha/composer.json | 39 --- .../vendor/google/recaptcha/phpunit.xml.dist | 20 -- .../google/recaptcha/src/ReCaptcha/ReCaptcha.php | 269 --------------------- .../recaptcha/src/ReCaptcha/RequestMethod.php | 50 ---- .../recaptcha/src/ReCaptcha/RequestMethod/Curl.php | 82 ------- .../src/ReCaptcha/RequestMethod/CurlPost.php | 104 -------- .../recaptcha/src/ReCaptcha/RequestMethod/Post.php | 88 ------- .../src/ReCaptcha/RequestMethod/Socket.php | 112 --------- .../src/ReCaptcha/RequestMethod/SocketPost.php | 108 --------- .../recaptcha/src/ReCaptcha/RequestParameters.php | 111 --------- .../google/recaptcha/src/ReCaptcha/Response.php | 218 ----------------- .../vendor/google/recaptcha/src/autoload.php | 69 ------ 19 files changed, 1621 deletions(-) delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/.github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/.travis.yml delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/ARCHITECTURE.md delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/CONTRIBUTING.md delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/LICENSE delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/README.md delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/app.yaml delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/composer.json delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/phpunit.xml.dist delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/ReCaptcha.php delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod.php delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/Curl.php delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/CurlPost.php delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/Post.php delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/Socket.php delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/SocketPost.php delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestParameters.php delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/Response.php delete mode 100644 srcs/phpmyadmin/vendor/google/recaptcha/src/autoload.php (limited to 'srcs/phpmyadmin/vendor/google/recaptcha') diff --git a/srcs/phpmyadmin/vendor/google/recaptcha/.github/ISSUE_TEMPLATE/bug_report.md b/srcs/phpmyadmin/vendor/google/recaptcha/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index a14dcfe..0000000 --- a/srcs/phpmyadmin/vendor/google/recaptcha/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -name: PHP client issue -about: Report an issue with the PHP client library - ---- - -**Issue description** - - -**Environment** - - - * OS name and version: - * PHP version: - * Web server name and version: - * `google/recaptcha` version: - * Browser name and version: - -**Reproducing the issue** - - - * URL (optional): - * Code (optional): - - ***User steps*** - - - 1. Visit page... diff --git a/srcs/phpmyadmin/vendor/google/recaptcha/.travis.yml b/srcs/phpmyadmin/vendor/google/recaptcha/.travis.yml deleted file mode 100644 index a625795..0000000 --- a/srcs/phpmyadmin/vendor/google/recaptcha/.travis.yml +++ /dev/null @@ -1,33 +0,0 @@ -dist: trusty - -language: php - -sudo: false - -php: - - '5.5' - - '5.6' - - '7.0' - - '7.1' - - '7.2' - - '7.3' - -before_script: - - composer install - - phpenv version-name | grep ^5.[34] && echo "extension=apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true - - phpenv version-name | grep ^5.[34] && echo "apc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true - -script: - - mkdir -p build/logs - - composer run-script lint - - composer run-script test - -after_success: - - travis_retry php vendor/bin/php-coveralls - -cache: - directories: - - "$HOME/.composer/cache/files" - -git: - depth: 5 diff --git a/srcs/phpmyadmin/vendor/google/recaptcha/ARCHITECTURE.md b/srcs/phpmyadmin/vendor/google/recaptcha/ARCHITECTURE.md deleted file mode 100644 index 13add26..0000000 --- a/srcs/phpmyadmin/vendor/google/recaptcha/ARCHITECTURE.md +++ /dev/null @@ -1,64 +0,0 @@ -# Architecture - -The general pattern of usage is to instantiate the `ReCaptcha` class with your -secret key, specify any additional validation rules, and then call `verify()` -with the reCAPTCHA response and user's IP address. For example: - -```php -setExpectedHostname('recaptcha-demo.appspot.com') - ->verify($gRecaptchaResponse, $remoteIp); -if ($resp->isSuccess()) { - // Verified! -} else { - $errors = $resp->getErrorCodes(); -} -``` - -By default, this will use the -[`stream_context_create()`](https://secure.php.net/stream_context_create) and -[`file_get_contents()`](https://secure.php.net/file_get_contents) to make a POST -request to the reCAPTCHA service. This is handled by the -[`RequestMethod\Post`](./src/ReCaptcha/RequestMethod/Post.php) class. - -## Alternate request methods - -You may need to use other methods for making requests in your environment. The -[`ReCaptcha`](./src/ReCaptcha/ReCaptcha.php) class allows an optional -[`RequestMethod`](./src/ReCaptcha/RequestMethod.php) instance to configure this. -For example, if you want to use [cURL](https://secure.php.net/curl) instead you -can do this: - -```php -setExpectedHostname('recaptcha-demo.appspot.com') - ->verify($gRecaptchaResponse, $remoteIp); -if ($resp->isSuccess()) { - // Verified! -} else { - $errors = $resp->getErrorCodes(); -} -``` - -The following methods are available: - -- `setExpectedHostname($hostname)`: ensures the hostname matches. You must do - this if you have disabled "Domain/Package Name Validation" for your - credentials. -- `setExpectedApkPackageName($apkPackageName)`: if you're verifying a response - from an Android app. Again, you must do this if you have disabled - "Domain/Package Name Validation" for your credentials. -- `setExpectedAction($action)`: ensures the action matches for the v3 API. -- `setScoreThreshold($threshold)`: set a score theshold for responses from the - v3 API -- `setChallengeTimeout($timeoutSeconds)`: set a timeout between the user passing - the reCAPTCHA and your server processing it. - -Each of the `set`\*`()` methods return the `ReCaptcha` instance so you can chain -them together. For example: - -```php -setExpectedHostname('recaptcha-demo.appspot.com') - ->setExpectedAction('homepage') - ->setScoreThreshold(0.5) - ->verify($gRecaptchaResponse, $remoteIp); - -if ($resp->isSuccess()) { - // Verified! -} else { - $errors = $resp->getErrorCodes(); -} -``` - -You can find the constants for the libraries error codes in the `ReCaptcha` -class constants, e.g. `ReCaptcha::E_HOSTNAME_MISMATCH` - -For more details on usage and structure, see [ARCHITECTURE](ARCHITECTURE.md). - -### Examples - -You can see examples of each reCAPTCHA type in [examples/](examples/). You can -run the examples locally by using the Composer script: - -```sh -composer run-script serve-examples -``` - -This makes use of the in-built PHP dev server to host the examples at -http://localhost:8080/ - -These are also hosted on Google AppEngine Flexible environment at -https://recaptcha-demo.appspot.com/. This is configured by -[`app.yaml`](./app.yaml) which you can also use to [deploy to your own AppEngine -project](https://cloud.google.com/appengine/docs/flexible/php/download). - -## Contributing - -No one ever has enough engineers, so we're very happy to accept contributions -via Pull Requests. For details, see [CONTRIBUTING](CONTRIBUTING.md) diff --git a/srcs/phpmyadmin/vendor/google/recaptcha/app.yaml b/srcs/phpmyadmin/vendor/google/recaptcha/app.yaml deleted file mode 100644 index b6ccaf1..0000000 --- a/srcs/phpmyadmin/vendor/google/recaptcha/app.yaml +++ /dev/null @@ -1,8 +0,0 @@ -runtime: php -env: flex - -skip_files: -- tests - -runtime_config: - document_root: examples diff --git a/srcs/phpmyadmin/vendor/google/recaptcha/composer.json b/srcs/phpmyadmin/vendor/google/recaptcha/composer.json deleted file mode 100644 index ab6b4f1..0000000 --- a/srcs/phpmyadmin/vendor/google/recaptcha/composer.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "google/recaptcha", - "description": "Client library for reCAPTCHA, a free service that protects websites from spam and abuse.", - "type": "library", - "keywords": ["recaptcha", "captcha", "spam", "abuse"], - "homepage": "https://www.google.com/recaptcha/", - "license": "BSD-3-Clause", - "support": { - "forum": "https://groups.google.com/forum/#!forum/recaptcha", - "source": "https://github.com/google/recaptcha" - }, - "require": { - "php": ">=5.5" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.36|^5.7.27|^6.59|^7.5.11", - "friendsofphp/php-cs-fixer": "^2.2.20|^2.15", - "php-coveralls/php-coveralls": "^2.1" - }, - "autoload": { - "psr-4": { - "ReCaptcha\\": "src/ReCaptcha" - } - }, - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, - "scripts": { - "lint": "vendor/bin/php-cs-fixer -vvv fix --using-cache=no --dry-run .", - "lint-fix": "vendor/bin/php-cs-fixer -vvv fix --using-cache=no .", - "test": "vendor/bin/phpunit --colors=always", - "serve-examples": "@php -S localhost:8080 -t examples" - }, - "config": { - "process-timeout": 0 - } -} diff --git a/srcs/phpmyadmin/vendor/google/recaptcha/phpunit.xml.dist b/srcs/phpmyadmin/vendor/google/recaptcha/phpunit.xml.dist deleted file mode 100644 index ae86610..0000000 --- a/srcs/phpmyadmin/vendor/google/recaptcha/phpunit.xml.dist +++ /dev/null @@ -1,20 +0,0 @@ - - - - - tests/ReCaptcha/ - - - - - src/ReCaptcha/ - - - - - - diff --git a/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/ReCaptcha.php b/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/ReCaptcha.php deleted file mode 100644 index 177fa44..0000000 --- a/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/ReCaptcha.php +++ /dev/null @@ -1,269 +0,0 @@ -secret = $secret; - $this->requestMethod = (is_null($requestMethod)) ? new RequestMethod\Post() : $requestMethod; - } - - /** - * Calls the reCAPTCHA siteverify API to verify whether the user passes - * CAPTCHA test and additionally runs any specified additional checks - * - * @param string $response The user response token provided by reCAPTCHA, verifying the user on your site. - * @param string $remoteIp The end user's IP address. - * @return Response Response from the service. - */ - public function verify($response, $remoteIp = null) - { - // Discard empty solution submissions - if (empty($response)) { - $recaptchaResponse = new Response(false, array(self::E_MISSING_INPUT_RESPONSE)); - return $recaptchaResponse; - } - - $params = new RequestParameters($this->secret, $response, $remoteIp, self::VERSION); - $rawResponse = $this->requestMethod->submit($params); - $initialResponse = Response::fromJson($rawResponse); - $validationErrors = array(); - - if (isset($this->hostname) && strcasecmp($this->hostname, $initialResponse->getHostname()) !== 0) { - $validationErrors[] = self::E_HOSTNAME_MISMATCH; - } - - if (isset($this->apkPackageName) && strcasecmp($this->apkPackageName, $initialResponse->getApkPackageName()) !== 0) { - $validationErrors[] = self::E_APK_PACKAGE_NAME_MISMATCH; - } - - if (isset($this->action) && strcasecmp($this->action, $initialResponse->getAction()) !== 0) { - $validationErrors[] = self::E_ACTION_MISMATCH; - } - - if (isset($this->threshold) && $this->threshold > $initialResponse->getScore()) { - $validationErrors[] = self::E_SCORE_THRESHOLD_NOT_MET; - } - - if (isset($this->timeoutSeconds)) { - $challengeTs = strtotime($initialResponse->getChallengeTs()); - - if ($challengeTs > 0 && time() - $challengeTs > $this->timeoutSeconds) { - $validationErrors[] = self::E_CHALLENGE_TIMEOUT; - } - } - - if (empty($validationErrors)) { - return $initialResponse; - } - - return new Response( - false, - array_merge($initialResponse->getErrorCodes(), $validationErrors), - $initialResponse->getHostname(), - $initialResponse->getChallengeTs(), - $initialResponse->getApkPackageName(), - $initialResponse->getScore(), - $initialResponse->getAction() - ); - } - - /** - * Provide a hostname to match against in verify() - * This should be without a protocol or trailing slash, e.g. www.google.com - * - * @param string $hostname Expected hostname - * @return ReCaptcha Current instance for fluent interface - */ - public function setExpectedHostname($hostname) - { - $this->hostname = $hostname; - return $this; - } - - /** - * Provide an APK package name to match against in verify() - * - * @param string $apkPackageName Expected APK package name - * @return ReCaptcha Current instance for fluent interface - */ - public function setExpectedApkPackageName($apkPackageName) - { - $this->apkPackageName = $apkPackageName; - return $this; - } - - /** - * Provide an action to match against in verify() - * This should be set per page. - * - * @param string $action Expected action - * @return ReCaptcha Current instance for fluent interface - */ - public function setExpectedAction($action) - { - $this->action = $action; - return $this; - } - - /** - * Provide a threshold to meet or exceed in verify() - * Threshold should be a float between 0 and 1 which will be tested as response >= threshold. - * - * @param float $threshold Expected threshold - * @return ReCaptcha Current instance for fluent interface - */ - public function setScoreThreshold($threshold) - { - $this->threshold = floatval($threshold); - return $this; - } - - /** - * Provide a timeout in seconds to test against the challenge timestamp in verify() - * - * @param int $timeoutSeconds Expected hostname - * @return ReCaptcha Current instance for fluent interface - */ - public function setChallengeTimeout($timeoutSeconds) - { - $this->timeoutSeconds = $timeoutSeconds; - return $this; - } -} diff --git a/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod.php b/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod.php deleted file mode 100644 index 0a2a671..0000000 --- a/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod.php +++ /dev/null @@ -1,50 +0,0 @@ -curl = (is_null($curl)) ? new Curl() : $curl; - $this->siteVerifyUrl = (is_null($siteVerifyUrl)) ? ReCaptcha::SITE_VERIFY_URL : $siteVerifyUrl; - } - - /** - * Submit the cURL request with the specified parameters. - * - * @param RequestParameters $params Request parameters - * @return string Body of the reCAPTCHA response - */ - public function submit(RequestParameters $params) - { - $handle = $this->curl->init($this->siteVerifyUrl); - - $options = array( - CURLOPT_POST => true, - CURLOPT_POSTFIELDS => $params->toQueryString(), - CURLOPT_HTTPHEADER => array( - 'Content-Type: application/x-www-form-urlencoded' - ), - CURLINFO_HEADER_OUT => false, - CURLOPT_HEADER => false, - CURLOPT_RETURNTRANSFER => true, - CURLOPT_SSL_VERIFYPEER => true - ); - $this->curl->setoptArray($handle, $options); - - $response = $this->curl->exec($handle); - $this->curl->close($handle); - - if ($response !== false) { - return $response; - } - - return '{"success": false, "error-codes": ["'.ReCaptcha::E_CONNECTION_FAILED.'"]}'; - } -} diff --git a/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/Post.php b/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/Post.php deleted file mode 100644 index a4ff716..0000000 --- a/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/Post.php +++ /dev/null @@ -1,88 +0,0 @@ -siteVerifyUrl = (is_null($siteVerifyUrl)) ? ReCaptcha::SITE_VERIFY_URL : $siteVerifyUrl; - } - - /** - * Submit the POST request with the specified parameters. - * - * @param RequestParameters $params Request parameters - * @return string Body of the reCAPTCHA response - */ - public function submit(RequestParameters $params) - { - $options = array( - 'http' => array( - 'header' => "Content-type: application/x-www-form-urlencoded\r\n", - 'method' => 'POST', - 'content' => $params->toQueryString(), - // Force the peer to validate (not needed in 5.6.0+, but still works) - 'verify_peer' => true, - ), - ); - $context = stream_context_create($options); - $response = file_get_contents($this->siteVerifyUrl, false, $context); - - if ($response !== false) { - return $response; - } - - return '{"success": false, "error-codes": ["'.ReCaptcha::E_CONNECTION_FAILED.'"]}'; - } -} diff --git a/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/Socket.php b/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/Socket.php deleted file mode 100644 index 236bd5f..0000000 --- a/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/Socket.php +++ /dev/null @@ -1,112 +0,0 @@ -handle = fsockopen($hostname, $port, $errno, $errstr, (is_null($timeout) ? ini_get("default_socket_timeout") : $timeout)); - - if ($this->handle != false && $errno === 0 && $errstr === '') { - return $this->handle; - } - return false; - } - - /** - * fwrite - * - * @see http://php.net/fwrite - * @param string $string - * @param int $length - * @return int | bool - */ - public function fwrite($string, $length = null) - { - return fwrite($this->handle, $string, (is_null($length) ? strlen($string) : $length)); - } - - /** - * fgets - * - * @see http://php.net/fgets - * @param int $length - * @return string - */ - public function fgets($length = null) - { - return fgets($this->handle, $length); - } - - /** - * feof - * - * @see http://php.net/feof - * @return bool - */ - public function feof() - { - return feof($this->handle); - } - - /** - * fclose - * - * @see http://php.net/fclose - * @return bool - */ - public function fclose() - { - return fclose($this->handle); - } -} diff --git a/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/SocketPost.php b/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/SocketPost.php deleted file mode 100644 index 7edffb8..0000000 --- a/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/SocketPost.php +++ /dev/null @@ -1,108 +0,0 @@ -socket = (is_null($socket)) ? new Socket() : $socket; - $this->siteVerifyUrl = (is_null($siteVerifyUrl)) ? ReCaptcha::SITE_VERIFY_URL : $siteVerifyUrl; - } - - /** - * Submit the POST request with the specified parameters. - * - * @param RequestParameters $params Request parameters - * @return string Body of the reCAPTCHA response - */ - public function submit(RequestParameters $params) - { - $errno = 0; - $errstr = ''; - $urlParsed = parse_url($this->siteVerifyUrl); - - if (false === $this->socket->fsockopen('ssl://' . $urlParsed['host'], 443, $errno, $errstr, 30)) { - return '{"success": false, "error-codes": ["'.ReCaptcha::E_CONNECTION_FAILED.'"]}'; - } - - $content = $params->toQueryString(); - - $request = "POST " . $urlParsed['path'] . " HTTP/1.1\r\n"; - $request .= "Host: " . $urlParsed['host'] . "\r\n"; - $request .= "Content-Type: application/x-www-form-urlencoded\r\n"; - $request .= "Content-length: " . strlen($content) . "\r\n"; - $request .= "Connection: close\r\n\r\n"; - $request .= $content . "\r\n\r\n"; - - $this->socket->fwrite($request); - $response = ''; - - while (!$this->socket->feof()) { - $response .= $this->socket->fgets(4096); - } - - $this->socket->fclose(); - - if (0 !== strpos($response, 'HTTP/1.1 200 OK')) { - return '{"success": false, "error-codes": ["'.ReCaptcha::E_BAD_RESPONSE.'"]}'; - } - - $parts = preg_split("#\n\s*\n#Uis", $response); - - return $parts[1]; - } -} diff --git a/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestParameters.php b/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestParameters.php deleted file mode 100644 index e9ba453..0000000 --- a/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/RequestParameters.php +++ /dev/null @@ -1,111 +0,0 @@ -secret = $secret; - $this->response = $response; - $this->remoteIp = $remoteIp; - $this->version = $version; - } - - /** - * Array representation. - * - * @return array Array formatted parameters. - */ - public function toArray() - { - $params = array('secret' => $this->secret, 'response' => $this->response); - - if (!is_null($this->remoteIp)) { - $params['remoteip'] = $this->remoteIp; - } - - if (!is_null($this->version)) { - $params['version'] = $this->version; - } - - return $params; - } - - /** - * Query string representation for HTTP request. - * - * @return string Query string formatted parameters. - */ - public function toQueryString() - { - return http_build_query($this->toArray(), '', '&'); - } -} diff --git a/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/Response.php b/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/Response.php deleted file mode 100644 index 55838c0..0000000 --- a/srcs/phpmyadmin/vendor/google/recaptcha/src/ReCaptcha/Response.php +++ /dev/null @@ -1,218 +0,0 @@ -success = $success; - $this->hostname = $hostname; - $this->challengeTs = $challengeTs; - $this->apkPackageName = $apkPackageName; - $this->score = $score; - $this->action = $action; - $this->errorCodes = $errorCodes; - } - - /** - * Is success? - * - * @return boolean - */ - public function isSuccess() - { - return $this->success; - } - - /** - * Get error codes. - * - * @return array - */ - public function getErrorCodes() - { - return $this->errorCodes; - } - - /** - * Get hostname. - * - * @return string - */ - public function getHostname() - { - return $this->hostname; - } - - /** - * Get challenge timestamp - * - * @return string - */ - public function getChallengeTs() - { - return $this->challengeTs; - } - - /** - * Get APK package name - * - * @return string - */ - public function getApkPackageName() - { - return $this->apkPackageName; - } - /** - * Get score - * - * @return float - */ - public function getScore() - { - return $this->score; - } - - /** - * Get action - * - * @return string - */ - public function getAction() - { - return $this->action; - } - - public function toArray() - { - return array( - 'success' => $this->isSuccess(), - 'hostname' => $this->getHostname(), - 'challenge_ts' => $this->getChallengeTs(), - 'apk_package_name' => $this->getApkPackageName(), - 'score' => $this->getScore(), - 'action' => $this->getAction(), - 'error-codes' => $this->getErrorCodes(), - ); - } -} diff --git a/srcs/phpmyadmin/vendor/google/recaptcha/src/autoload.php b/srcs/phpmyadmin/vendor/google/recaptcha/src/autoload.php deleted file mode 100644 index 7947a10..0000000 --- a/srcs/phpmyadmin/vendor/google/recaptcha/src/autoload.php +++ /dev/null @@ -1,69 +0,0 @@ -