Changeset 419803
- Timestamp:
- 08/05/2011 03:35:14 PM (14 years ago)
- Location:
- wordpress-amazon-associate/trunk
- Files:
-
- 3 edited
-
WPAA.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
-
wordpress_amazon_associate.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-amazon-associate/trunk/WPAA.php
r412894 r419803 205 205 * @var String 206 206 */ 207 protected $version = ' 1.7.2';207 protected $version = ''; 208 208 209 209 /** … … 211 211 * @var String 212 212 */ 213 protected $last_updated = ' 07-20-2011';213 protected $last_updated = ''; 214 214 215 215 /** 216 216 * Constructor 217 217 */ 218 function __construct( ) {218 function __construct( $plugin_version, $plugin_update_date ) { 219 219 parent::__construct(); 220 $this->version = $plugin_version; 221 $this->last_updated = $plugin_update_date; 220 222 add_action('admin_head', array(&$this, 'doPageHead')); 221 223 add_action('admin_print_scripts', array(&$this, 'doPageScripts')); … … 908 910 // update Saved Version plugin 909 911 if( is_null( $this->options['Version'] ) || $this->options['Version'] != $this->version ) { 912 $old_version = $this->options['Version']; 910 913 $this->options['Version'] = $this->version; 911 914 update_option($this->config_options_name, $this->options); … … 913 916 // Information Sent: 914 917 // APP -> WPAA (WordPress-Amazon-Associate) 915 // Version -> (Plugin Version)916 // site -> WebSite URL918 // old -> Previous Plugin Version 919 // new -> Current Plugin Version 917 920 if( function_exists('curl_init') ) { 918 $handle = curl_init('http://mdbitz.com/installs.php? app=WPAA&version=' . $this->version . '&site=' . site_url());921 $handle = curl_init('http://mdbitz.com/installs.php?function=upgrade&app=WPAA&version=' . $this->version . '&old=' . $old_version ); 919 922 if (false === $handle) { 920 923 return; -
wordpress-amazon-associate/trunk/readme.txt
r412894 r419803 187 187 188 188 The full project changelogs can be found at [http://labs.mdbitz.com/wordpress/wordpress-amazon-associate-plugin/changelog](http://labs.mdbitz.com/wordpress/wordpress-amazon-associate-plugin/changelog/?utm_source=wordpress&utm_medium=plugin-readme&utm_campaign=plugin) 189 190 = 1.7.3 - 08/05/2011 = 191 * Updated Passive Tracking of versions in use 189 192 190 193 = 1.7.2 - 07/20/2011 = -
wordpress-amazon-associate/trunk/wordpress_amazon_associate.php
r412894 r419803 5 5 Description: Quickly and eaily monetize your webiste through the integration of Amazon products and widgets tagged with your associate id. 6 6 Author: MDBitz - Matthew John Denton 7 Version: 1.7. 27 Version: 1.7.3 8 8 Requires at least: 3.0.0 9 9 Author URI: http://labs.mdbitz.com … … 41 41 */ 42 42 43 // Plugin Version / Update Date 44 global $wpaa_version; 45 global $wpaa_update_date; 46 $wpaa_version = "1.7.3"; 47 $wpaa_update_date = "08-03-2011"; 48 43 49 // load Admin Class 44 50 require_once plugin_dir_path(__FILE__) . 'WPAA.php'; 45 51 spl_autoload_register(array('WPAA', 'autoload')); 46 $wpaa = new WPAA( );52 $wpaa = new WPAA( $wpaa_version, $wpaa_update_date ); 47 53 48 54 // deactivation … … 53 59 */ 54 60 function wpaa_deactivate() { 61 global $wpaa_version; 55 62 if( function_exists('curl_init') ) { 56 $handle = curl_init('http://mdbitz.com/installs.php? app=WPAA&uninstall=true&site=' . site_url());63 $handle = curl_init('http://mdbitz.com/installs.php?function=deactivate&app=WPAA&version=' . $wpaa_version ); 57 64 if (false !== $handle) { 58 65 curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE); … … 71 78 */ 72 79 function wpaa_activate() { 80 global $wpaa_version; 73 81 if( function_exists('curl_init') ) { 74 $handle = curl_init('http://mdbitz.com/installs.php? app=WPAA&activate=true&site=' . site_url());82 $handle = curl_init('http://mdbitz.com/installs.php?function=activate&app=WPAA&version=' . $wpaa_version ); 75 83 if (false !== $handle) { 76 84 curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE);
Note: See TracChangeset
for help on using the changeset viewer.