Server IP : 192.64.118.117 / Your IP : 13.58.76.154 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/thecgapy/mobilecreationz.com/wp-content/plugins/leads/shared/classes/ |
Upload File : |
<?php if ( ! class_exists( 'Inbound_Options_API' ) ) { class Inbound_Options_API { /** * Gets option value in name space object */ public static function get_option( $namespace, $key, $default = null ) { $option = get_option( $namespace ); $option = (is_array($option)) ? $option : json_decode( stripslashes( $option ), true ) ; if (!isset( $option[ $key ] )) { add_option( $namespace, '', '', 'no' ); return $default; } else { return $option[ $key ]; } } /** * Updates option value in name space object */ public static function update_option( $namespace, $key, $value ) { $options = json_decode( stripslashes( get_option( $namespace , '' ) ), true ) ; if (!$options) { add_option( $namespace, '', '', 'no' ); $options = array(); } $options[$key] = $value; update_option( $namespace, json_encode( $options ) ); } } }