PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/islandpc.ca/wp-content/plugins/obox-mobile/admin/includes/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/islandpc.ca/wp-content/plugins/obox-mobile/admin/includes/functions.php

<?php
global $ocmx_version;

// The OCMX custom options form
function mobile_update_options(){
	global $wpdb, $changes_done;
	
	//Clear our preset options, because we're gonna add news ones.
	wp_cache_flush(); 

	parse_str($_POST["data"], $data);
	
	$update_options = explode(",", $data["update_ocmx"]);
	
	foreach($data as $key => $value) :
		echo "$key => $value \n";
		wp_cache_flush(); 			
		$clear_options = $wpdb->query("DELETE FROM $wpdb->options WHERE `option_name` = '".$key."'");
		if(!get_option($key)):					
			add_option($key, stripslashes($value));						
		else :						
			update_option($key, stripslashes($value));
		endif;
	endforeach;
	
	$changes_done = 1;
	die("");
}
function mobile_reset_options(){
	global $wpdb, $changes_done;
	
	//Clear our preset options, because we're gonna add news ones.
	wp_cache_flush(); 

	parse_str($_POST["data"], $data);
	
	$update_options = explode(",", $data["update_ocmx"]);
	
	foreach($update_options as $option) :
		ocmx_reset_option($option);
	endforeach;
	die("");
}
function mobile_reset_option($option){
	global $mobile_theme_options;
	if(is_array($mobile_theme_options[$option])):
	
		foreach($mobile_theme_options[$option] as $themeoption) :	
			update_option($themeoption["name"], $themeoption["default"]);
		endforeach;
	endif;
}

add_action("mobile_update_options", "mobile_update_options");
add_action("mobile_reset_option", "mobile_reset_option"); ?>