403Webshell
Server IP : 104.26.2.156  /  Your IP : 216.73.216.185
Web Server : nginx/1.27.1
System : Linux us-1 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User : vinodai ( 3134)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /storage/v1396/wwwindicidolscom/public_html/wp-content/plugins/hostinger/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v1396/wwwindicidolscom/public_html/wp-content/plugins/hostinger/includes/Errors.php
<?php

namespace Hostinger;

defined( 'ABSPATH' ) || exit;

class Errors {
    /**
     * @var array[]
     */
    private array $error_messages = array();

    public function __construct() {
        $this->error_messages = array(
            'action_failed'    => array(
                'default' => __( 'Action Failed. Try again or contact support. Apologies.', 'hostinger' ),
            ),
            'unexpected_error' => array(
                'default' => __( 'An unexpected error occurred. Please try again or contact support.', 'hostinger' ),
            ),
            'server_error'     => array(
                'default' => __( 'We apologize for the inconvenience. The AI content generation process encountered a server error. Please try again later, and if the issue persists, kindly contact our support team for assistance.', 'hostinger' ),
            ),
        );
    }

    /**
     * @param string $error_code
     *
     * @return mixed
     */
    public function get_error_message( string $error_code ) {
        if ( array_key_exists( $error_code, $this->error_messages ) ) {
            $message_data = $this->error_messages[ $error_code ];

            return $message_data['default'];
        } else {
            return __( 'Unknown error code.', 'hostinger' );
        }
    }
}

new Errors();

Youez - 2016 - github.com/yon3zu
LinuXploit