From d37dd3c9dca8dd026f8f5e45544194cfedcdfc34 Mon Sep 17 00:00:00 2001 From: Zack Katz Date: Fri, 21 Mar 2014 09:43:47 -0600 Subject: [PATCH] Removed plugin-upgrade.php --- trunk/plugin-upgrade.php | 114 ------------------------------------ trunk/readme.txt | 2 + trunk/web-to-lead.addon.php | 2 +- 3 files changed, 3 insertions(+), 115 deletions(-) delete mode 100644 trunk/plugin-upgrade.php diff --git a/trunk/plugin-upgrade.php b/trunk/plugin-upgrade.php deleted file mode 100644 index afa1fa5..0000000 --- a/trunk/plugin-upgrade.php +++ /dev/null @@ -1,114 +0,0 @@ -response[$plugin_path])) - $option->response[$plugin_path] = new stdClass(); - - //Empty response means that the key is invalid. Do not queue for upgrade - if(!$version_info["is_valid_key"] || version_compare($version, $version_info["version"], '>=')){ - unset($option->response[$plugin_path]); - } - else{ - $option->response[$plugin_path]->url = $plugin_url; - $option->response[$plugin_path]->slug = $plugin_slug; - $option->response[$plugin_path]->package = str_replace("{KEY}", $key, $version_info["url"]); - $option->response[$plugin_path]->new_version = $version_info["version"]; - $option->response[$plugin_path]->id = "0"; - } - - return $option; - - } - - public static function display_plugin_message($message, $is_error = false){ - $style = ''; - if($is_error) - $style = 'style="background-color: #ffebe8;"'; - - echo '
' . $message . '
'; - } - - public static function display_upgrade_message($plugin_name, $plugin_title, $version, $message, $localization_namespace){ - $upgrade_message = $message .' '. sprintf(__('View version %s Details', $localization_namespace), $version) . '. '; - self::display_plugin_message($upgrade_message); - } - - //Displays current version details on Plugin's page - public static function display_changelog($offering, $key, $version){ - - $body = "key=$key"; - $options = array('method' => 'POST', 'timeout' => 3, 'body' => $body); - $options['headers'] = array( - 'Content-Type' => 'application/x-www-form-urlencoded; charset=' . get_option('blog_charset'), - 'Content-Length' => strlen($body), - 'User-Agent' => 'WordPress/' . get_bloginfo("version"), - 'Referer' => get_bloginfo("url") - ); - - $raw_response = wp_remote_request(GRAVITY_MANAGER_URL . "/changelog.php?" . self::get_remote_request_params($offering, $key, $version), $options); - - if ( is_wp_error( $raw_response ) || 200 != $raw_response['response']['code']){ - $page_text = sprintf(__("Oops!! Something went wrong.%sPlease try again or %scontact us%s.", 'gravityformssalesforce'), "
", "", ""); - } - else{ - $page_text = $raw_response['body']; - if(substr($page_text, 0, 10) != "") - $page_text = ""; - } - echo stripslashes($page_text); - - exit; - } - - - public static function get_version_info($offering, $key, $version){ - - $body = "key=$key"; - $options = array('method' => 'POST', 'timeout' => 3, 'body' => $body); - $options['headers'] = array( - 'Content-Type' => 'application/x-www-form-urlencoded; charset=' . get_option('blog_charset'), - 'Content-Length' => strlen($body), - 'User-Agent' => 'WordPress/' . get_bloginfo("version"), - 'Referer' => get_bloginfo("url") - ); - $url = GRAVITY_MANAGER_URL . "/version.php?" . self::get_remote_request_params($offering, $key, $version); - $raw_response = wp_remote_request($url, $options); - - if ( is_wp_error( $raw_response ) || 200 != $raw_response['response']['code']) - return -1; - else - { - $ary = explode("||", $raw_response['body']); - return array("is_valid_key" => $ary[0], "version" => $ary[1], "url" => $ary[2]); - } - } - - public static function get_remote_request_params($offering, $key, $version){ - global $wpdb; - return sprintf("of=%s&key=%s&v=%s&wp=%s&php=%s&mysql=%s", urlencode($offering), urlencode($key), urlencode($version), urlencode(get_bloginfo("version")), urlencode(phpversion()), urlencode($wpdb->db_version())); - } - -} -?> \ No newline at end of file diff --git a/trunk/readme.txt b/trunk/readme.txt index 4fca2fd..92f94a4 100644 --- a/trunk/readme.txt +++ b/trunk/readme.txt @@ -241,6 +241,7 @@ This plugin is released under a GPL license. = 2.6.4.1 (March 19, 2014) = * Fixed (API Version): Entry update improvement when set to manually export to Salesforce +* Removed: Unused `plugin-upgrade.php` file = 2.6.4 (February 20, 2014) = * Fixed (API Version): Live Remote Field Mapping improvements @@ -395,6 +396,7 @@ This plugin is released under a GPL license. = 2.6.4.1 (March 19, 2014) = * Fixed (API Version): Entry update improvement when set to manually export to Salesforce +* Removed: Unused `plugin-upgrade.php` file = 2.6.4 (February 20, 2014) = * Fixed (API Version): Live Remote Field Mapping improvements diff --git a/trunk/web-to-lead.addon.php b/trunk/web-to-lead.addon.php index 5ade114..f9d173d 100644 --- a/trunk/web-to-lead.addon.php +++ b/trunk/web-to-lead.addon.php @@ -21,7 +21,7 @@ if (class_exists("GFForms")) { class KWSGFWebToLeadAddon extends KWSGFAddOn2_1 { - protected $_version = "2.6.4"; + protected $_version = "2.6.4.1"; protected $_min_gravityforms_version = "1.7"; protected $_slug = "sf-web-to-lead"; protected $_path = "gravity-forms-salesforce/web-to-lead.php";