403Webshell
Server IP : 68.178.247.200  /  Your IP : 216.73.216.14
Web Server : Apache
System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : x9dppmxs4rgd ( 8559391)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/thread-self/cwd/wp-content/plugins/wp-letsencrypt-ssl/lib/Exceptions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/cwd/wp-content/plugins/wp-letsencrypt-ssl/lib/Exceptions/LEConnectorException.php
<?php

namespace WPLEClient\Exceptions;

use WPLE_Trait;

require_once WPLE_DIR . 'classes/le-trait.php';

/**
 * LetsEncrypt Client Connector exception, extends LEException
 *
 * PHP version 5.2.0
 *
 * MIT License
 *
 * Copyright (c) 2020 Youri van Weegberg
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 * @author     Youri van Weegberg <youri@yourivw.nl>
 * @copyright  2020 Youri van Weegberg
 * @license    https://opensource.org/licenses/mit-license.php  MIT License
 * @link       https://github.com/yourivw/LEClient
 * @since      Class available since Release 1.2.0
 */
class LEConnectorException extends LEException
{
  const NONEWNONCEEXCEPTION       = 0x11;
  const ACCOUNTDEACTIVATEDEXCEPTION   = 0x12;
  const METHODNOTSUPPORTEDEXCEPTION   = 0x13;
  const CURLERROREXCEPTION       = 0x14;
  const INVALIDRESPONSEEXCEPTION     = 0x15;

  public static function NoNewNonceException()
  {
    return new static('No new nonce.', self::NONEWNONCEEXCEPTION);
  }

  public static function AccountDeactivatedException()
  {
    return new static('The account was deactivated. No further requests can be made.', self::ACCOUNTDEACTIVATEDEXCEPTION);
  }

  public static function MethodNotSupportedException(string $method)
  {
    return new static(sprintf('HTTP request %s not supported.', $method), self::METHODNOTSUPPORTEDEXCEPTION);
  }

  public static function CurlErrorException(string $error)
  {
    return new static(sprintf('Curl error: %s', $error), self::CURLERROREXCEPTION);
  }

  public static function InvalidResponseException(array $response)
  {
    $statusCode = array_key_exists('status', $response) ? $response['status'] : 'unknown';
    $detail = (isset($response['body']) && isset($response['body']['detail'])) ? $response['body']['detail'] : '';

    if ($statusCode == 400) {
      update_option('wple_error', 400);
      $detail .= '. Please try using RESET option once. If you notice same issue again, please try after 2-3 hours.';
      // if (wple_fs()->can_use_premium_code__premium_only()) {
      //   WPLE_Trait::wple_backup_n_clear_keys__premium_only();
      // }
    } else if ($statusCode == 429) {
      update_option('wple_error', 429);
    } else {
      update_option('wple_error', 1);
    }


    return new static(sprintf("Invalid response: %s <b>(%s)</b>", $statusCode, $detail), self::INVALIDRESPONSEEXCEPTION, null, $response);
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit