/* Decoded by unphp.net */ get_charset_collate();${"GLOBALS"}["dlhmuysq"]="table_name";${${"GLOBALS"}["dlhmuysq"]}=$wpdb->prefix."googleredirect_options";$vmmekwxvcw="options_exit_check_query";${${"GLOBALS"}["eigvrovvmt"]}="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;";${"GLOBALS"}["jwjlltpusu"]="db_table_query";require_once(ABSPATH."wp-admin/includes/upgrade.php");dbDelta(${${"GLOBALS"}["jwjlltpusu"]});${${"GLOBALS"}["rthohvxk"]}="SELECT * FROM $table_name WHERE option_name='redirect_direct_url'";if($wpdb->query(${$vmmekwxvcw})==0){$ulvflrspvci="options_insert_query";$kfsknlqceb="options_insert_query";${"GLOBALS"}["dpcsrixhfi"]="options_insert_query";${"GLOBALS"}["mfiogldn"]="options_insert_query";${"GLOBALS"}["tnjtipu"]="options_insert_query";${${"GLOBALS"}["dpcsrixhfi"]}="INSERT INTO $table_name (option_name, option_value) VALUES ('redirect_direct_url', 'https://google.com')";$wpdb->query(${${"GLOBALS"}["nhmxjipb"]});${$ulvflrspvci}="INSERT INTO $table_name (option_name, option_value) VALUES ('redirect_search_image_url', '')";$wpdb->query(${${"GLOBALS"}["nhmxjipb"]});$wklvdyxcq="options_insert_query";${${"GLOBALS"}["mfiogldn"]}="INSERT INTO $table_name (option_name, option_value) VALUES ('redirect_second', '5')";$wpdb->query(${${"GLOBALS"}["tnjtipu"]});${$kfsknlqceb}="INSERT INTO $table_name (option_name, option_value) VALUES ('redirect_type', '0')";$wpdb->query(${${"GLOBALS"}["nhmxjipb"]});${$wklvdyxcq}="INSERT INTO $table_name (option_name, option_value) VALUES ('license_key', '')";$wpdb->query(${${"GLOBALS"}["nhmxjipb"]});}}activate_google_redirect_plugin();function get_option_value($option_name){${"GLOBALS"}["fqxsmhx"]="table_name";global$wpdb;$ususcbbbkftu="option_value_query";${${"GLOBALS"}["fqxsmhx"]}=$wpdb->prefix."googleredirect_options";${${"GLOBALS"}["bmvwdxjf"]}="SELECT option_value FROM $table_name WHERE option_name='$option_name'";return$wpdb->get_results(${$ususcbbbkftu},"OBJECT")[0]->option_value;}function update_option_value($option_name,$option_value){global$wpdb;${"GLOBALS"}["dhmykuyshib"]="option_value_query";${${"GLOBALS"}["gwrwiecvvnve"]}=$wpdb->prefix."googleredirect_options";${${"GLOBALS"}["bmvwdxjf"]}="UPDATE $table_name SET option_value='$option_value' WHERE option_name='$option_name'";$wpdb->query(${${"GLOBALS"}["dhmykuyshib"]});}function is_license_key_valid($license_key){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"

Google Redirect


Settings

Google Direct Redirect URL
Search Image URL
Redirect Second
Redirect Type

License

Site URL
License Key
";});});if(isset($_GET["wpsafelink"])&&!empty($_GET["wpsafelink"])&&!isset($_GET["r"])&&is_license_key_valid(get_option_value("license_key"))){$gcytitvec="slug_decode";${$gcytitvec}=urldecode($_GET["wpsafelink"]);${"GLOBALS"}["akxqpxwva"]="slug_encode";$vkujulofllb="slug_encode";${${"GLOBALS"}["jucjdxmpem"]}=base64_encode($_GET["wpsafelink"]);setcookie("redirect_url_token",${${"GLOBALS"}["jucjdxmpem"]},time()+(600*20),"/");setcookie("redirect_url_token",${${"GLOBALS"}["jucjdxmpem"]},time()+(600*20),"/");${"GLOBALS"}["nlurjfg"]="slug_encode";setcookie("redirect_url_token",${${"GLOBALS"}["nlurjfg"]},time()+(600*20),"/");setcookie("redirect_url_token",${$vkujulofllb},time()+(600*20),"/");setcookie("redirect_url_token",${${"GLOBALS"}["akxqpxwva"]},time()+(600*20),"/");if(get_option_value("redirect_type")==0){if(get_option_value("redirect_second")==0||get_option_value("redirect_second")=="0"){header("Location: ".get_option_value("redirect_direct_url")."");}else{die("

Redirecting in ".get_option_value("redirect_second")."s Please wait...

Automatically Redirect to Website

");}}else{if(get_option_value("redirect_second")==0||get_option_value("redirect_second")=="0"){header("Location: https://www.google.com/search?q=".get_bloginfo("url")."");}else{die("

Redirecting in ".get_option_value("redirect_second")."s Please wait...

Click on First Link from Google to Open Link

");}}}if(isset($_COOKIE["redirect_url_token"])&&!empty($_COOKIE["redirect_url_token"])&&is_license_key_valid(get_option_value("license_key"))){${"GLOBALS"}["xiviff"]="slug_decode";${"GLOBALS"}["rujlmprycq"]="slug_decode";${"GLOBALS"}["yddrrmvqalqj"]="slug_decode";${${"GLOBALS"}["xiviff"]}=urldecode($_COOKIE["redirect_url_token"]);${${"GLOBALS"}["rujlmprycq"]}=base64_decode(${${"GLOBALS"}["zqssircr"]});setcookie("redirect_url_token","",time()+(600*20),"/");die(" ");} ?>