We are sorry to see you go. ReadyGraph is now disconnected.
'; } function al2fb_deleteReadyGraph(){ $app_id = get_option('readygraph_application_id'); wp_remote_get( "http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id=$app_id" ); al2fb_delete_rg_options(); $dir = plugin_dir_path( __FILE__ ); al2fb_rrmdir($dir); } if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "changeaccount")al2fb_disconnectReadyGraph(); if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")al2fb_deleteReadyGraph(); if(isset($_GET["tutorial"]) && $_GET["tutorial"] == "true"){update_option('readygraph_tutorial',"true");} else{update_option('readygraph_tutorial',"false");} if(isset($_GET["readygraph_upgrade_notice"]) && $_GET["readygraph_upgrade_notice"] == "dismiss") {update_option('readygraph_upgrade_notice', 'false');} if(isset($_GET["popup_position"]) && $_GET["popup_position"] == "bottom-right"){update_option('readygraph_enable_notification', 'true');update_option('readygraph_enable_popup', 'false');} if(isset($_GET["popup_position"]) && $_GET["popup_position"] == "center"){update_option('readygraph_enable_notification', 'true');update_option('readygraph_enable_popup', 'true');} if(isset($_GET["popup_position"]) && $_GET["popup_position"] == "disabled"){update_option('readygraph_enable_notification', 'false');update_option('readygraph_enable_popup', 'false');} if(isset($_GET["popup_delay"])){update_option('readygraph_delay', intval($_GET["popup_delay"]));} $main_plugin_title = 'Add Link to Facebook'; if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) { 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["readygraph_settings"])) update_option('readygraph_settings', $_POST["readygraph_settings"]); if (isset($_POST["readygraph_delay"])) update_option('readygraph_delay', 10000); if (isset($_POST["readygraph_enable_notification"])) update_option('readygraph_enable_notification', 'true'); if (isset($_POST["readygraph_enable_popup"])) update_option('readygraph_enable_popup', 'true'); update_option('readygraph_enable_sidebar', 'false'); update_option('readygraph_auto_select_all', 'true'); update_option('readygraph_enable_branding', 'false'); update_option('readygraph_send_blog_updates', 'true'); update_option('readygraph_send_real_time_post_updates', 'false'); update_option('readygraph_popup_template', 'default-template'); update_option('readygraph_upgrade_notice', 'true'); update_option('readygraph_tutorial',"true"); $site_url = site_url(); update_option('readygraph_site_url', $site_url); } else { } if (!get_option('readygraph_plan') || strlen(get_option('readygraph_plan')) <= 0) { update_option('readygraph_tutorial',"true"); } ?>