Current Path: > home > transcarter > public_html > wp-content > plugins > leadin > > > public > utils >
Operation : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 Software : Apache Server IP : 198.54.126.42 | Your IP: 216.73.216.135 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
class-proxyutils.php | File | 2000 bytes | July 17 2025 21:06:25. | |
class-queryparameters.php | File | 2283 bytes | July 17 2025 21:06:25. | |
class-requestutils.php | File | 1113 bytes | July 17 2025 21:06:25. | |
class-shortcoderenderutils.php | File | 4883 bytes | July 17 2025 21:06:25. | |
class-versions.php | File | 1567 bytes | July 17 2025 21:06:25. |
<?php namespace Leadin\utils; /** * Static class containing methods used on ajax requests handling. */ class RequestUtils { /** * Send JSON response. * * @param Mixed $body response to send as JSON. * @param Number $code http code to return. */ private static function send( $body, $code ) { wp_send_json( $body, intval( $code ) ); } /** * Send JSON response with 200 code. * * @param Mixed $body response to send as JSON. */ public static function send_json( $body = array() ) { self::send( $body, 200 ); } /** * Send error response with message * * @param String $error Message to be sent on te JSON. * @param Number $code Error code to be sent in the error. Default 400. */ public static function send_error_message( $error, $code = 400 ) { self::send( array( 'error' => $error, ), intval( $code ) ); } /** * Send JSON response with a message key. * * @param String $message Message to be sent on te JSON. */ public static function send_message( $message ) { self::send( array( 'message' => $message, ), 200 ); } }
SILENT KILLER Tool