array('app_id' => $app_id, 'email' => $email, 'site_profile_name' => $site_name, 'site_profile_url' => $site_url, 'site_description' => $site_description, 'site_category' => $site_category, 'site_language' => $site_language))); } if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "changeaccount")al2fb_disconnectReadyGraph(); if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")al2fb_deleteReadyGraph(); global $main_plugin_title; if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) { //redirect to main page $current_url = explode("&", $_SERVER['REQUEST_URI']); echo ''; } 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"]); if ($_SERVER['REQUEST_METHOD'] === 'POST') { siteprofile_sync(); } } if(isset($_GET["readygraph_plan"]) && $_GET["readygraph_plan"] != ""){update_option('readygraph_plan',$_GET["readygraph_plan"]);} ?>