$v) { $_POST[$k] = stripslashes($v); } unset($_POST['Submit']); $sanitize = array( 'newgoogle_update_options', 'google_client_id', 'google_client_secret', 'google_api_key', 'google_redirect', 'google_redirect_reg', 'google_load_style' ); foreach ($sanitize AS $k) { $_POST[$k] = sanitize_text_field($_POST[$k]); } $_POST['google_user_prefix'] = preg_replace("/[^A-Za-z0-9\-_ ]/", '', $_POST['google_user_prefix']); update_option("nextend_google_connect", maybe_serialize($_POST)); $newgoogle_status = 'update_success'; } } } } static function NextendGoogle_Options_Page() { $domain = get_option('siteurl'); $domain = str_replace(array( 'http://', 'https://' ), array( '', '' ), $domain); $domain = str_replace('www.', '', $domain); $a = explode("/", $domain); $domain = $a[0]; ?>