window.location.replace("'.$current_url[0].'");'; } else { if(isset($_GET["source"]) && $_GET["source"] == "basic-settings"){ } else{ if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]); if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]); if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]); if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]); if (isset($_POST["sitedesceditor"])) update_option('readygraph_site_description', $_POST["sitedesceditor"]); if (isset($_POST["site_profile_name"])) update_option('readygraph_site_name', $_POST["site_profile_name"]); if (isset($_POST["site_profile_url"])) update_option('readygraph_site_url', $_POST["site_profile_url"]); if (isset($_POST["site_category"])) update_option('readygraph_site_category', $_POST["site_category"]); if (isset($_POST["site_language"])) {update_option('readygraph_site_language', $_POST["site_language"]);al2fb_siteprofile_sync();} if (isset($_POST["readygraph_settings"])) update_option('readygraph_settings', $_POST["readygraph_settings"]); if (isset($_POST["readygraph_delay"])) { update_option('readygraph_delay', $_POST["delay"]); $app_id = get_option('readygraph_application_id'); if ($_POST["delay"] >= 20000) wp_remote_get( "http://readygraph.com/api/v1/tracking?event=popup_delay&app_id=$app_id" ); } if (isset($_POST["readygraph_enable_notification"])) update_option('readygraph_enable_notification', $_POST["notification"]); if (isset($_POST["readygraph_auto_select_all"])) update_option('readygraph_auto_select_all', $_POST["selectAll"]); if (isset($_POST["readygraph_enable_branding"])) update_option('readygraph_enable_branding', $_POST["branding"]); if (isset($_POST["readygraph_send_blog_updates"])) update_option('readygraph_send_blog_updates', $_POST["blog_updates"]); if (isset($_POST["readygraph_send_real_time_post_updates"])) update_option('readygraph_send_real_time_post_updates', $_POST["real_time_post_update"]); if (isset($_POST["readygraph_popup_template"])) update_option('readygraph_popup_template', $_POST["popup_template"]); } } if (get_option('readygraph_enable_branding', '') == 'false') { ?>