<?php /* Version: 1.5.4 */ global $wh_global, $cart_domain_array; $wh_global = array(); $testing_array = array(); $option_exists = (get_option("wh_global", null) !== null); if ($option_exists) { $wh_global = get_option("wh_global",true); } else { add_option("wh_global",$wh_global); } $option_exists = (get_option("wh_domain_data", null) !== null); if ($option_exists) { $wh_domain_data = get_option("wh_domain_data",true); } else { $wh_domain_data = array( 'domain_name' => array( 'post_id' => '', 'post_title' => '', 'post_content' => '', 'post_status' => '', 'post_date' => '', 'post_author' => '', 'post_type' => 'product', 'wh_nameserver01' =>'', 'wh_nameserver02' =>'', 'wh_nameserver03' =>'', 'wh_nameserver04' =>'', 'domaintype' =>'', 'customer-id' =>'', 'domain-registered' =>'', 'domain-registered-date' =>'', 'domainyears' =>'', 'package'=> 'domain', 'new-or-transfer'=> '', 'auth-code' =>'', 'domainexpiry' =>'', 'regular_price' =>'', 'domaintld' =>'', 'invoice_type' =>'', 'domain-registered' =>'', )); add_option("wh_domain_data",$wh_domain_data); } $option_exists = (get_option("testing_array", null) !== null); if ($option_exists) { $testing_array = get_option("testing_array",true); } else { add_option("testing_array",$testing_array); } $option_exists = (get_option("view_data", null) !== null); if ($option_exists) { $view_data = get_option("view_data",true); } else { $view_data = array(); add_option("view_data",$view_data); } ?>