Plugin Directory

Changeset 419803


Ignore:
Timestamp:
08/05/2011 03:35:14 PM (14 years ago)
Author:
mdbitz
Message:

Version 1.7.3 - Passive Tracking of installs, activation/deactivation

Location:
wordpress-amazon-associate/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wordpress-amazon-associate/trunk/WPAA.php

    r412894 r419803  
    205205     * @var String
    206206     */
    207     protected $version = '1.7.2';
     207    protected $version = '';
    208208
    209209    /**
     
    211211     * @var String
    212212     */
    213     protected $last_updated = '07-20-2011';
     213    protected $last_updated = '';
    214214
    215215    /**
    216216     * Constructor
    217217     */
    218     function __construct() {
     218    function __construct( $plugin_version, $plugin_update_date ) {
    219219        parent::__construct();
     220        $this->version = $plugin_version;
     221        $this->last_updated = $plugin_update_date;
    220222        add_action('admin_head', array(&$this, 'doPageHead'));
    221223        add_action('admin_print_scripts', array(&$this, 'doPageScripts'));
     
    908910        // update Saved Version plugin
    909911        if( is_null( $this->options['Version'] ) || $this->options['Version'] != $this->version ) {
     912            $old_version = $this->options['Version'];
    910913            $this->options['Version'] = $this->version;
    911914            update_option($this->config_options_name, $this->options);
     
    913916            // Information Sent:
    914917            //    APP -> WPAA (WordPress-Amazon-Associate)
    915             //    Version -> (Plugin Version)
    916             //    site -> WebSite URL
     918            //    old -> Previous Plugin Version
     919            //    new -> Current Plugin Version
    917920            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 );
    919922                if (false === $handle) {
    920923                        return;
  • wordpress-amazon-associate/trunk/readme.txt

    r412894 r419803  
    187187
    188188The 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
    189192
    190193= 1.7.2 - 07/20/2011 =
  • wordpress-amazon-associate/trunk/wordpress_amazon_associate.php

    r412894 r419803  
    55  Description: Quickly and eaily monetize your webiste through the integration of Amazon products and widgets tagged with your associate id.
    66  Author: MDBitz - Matthew John Denton
    7   Version: 1.7.2
     7  Version: 1.7.3
    88  Requires at least: 3.0.0
    99  Author URI: http://labs.mdbitz.com
     
    4141 */
    4242
     43// Plugin Version / Update Date
     44global $wpaa_version;
     45global $wpaa_update_date;
     46$wpaa_version = "1.7.3";
     47$wpaa_update_date = "08-03-2011";
     48
    4349// load Admin Class
    4450require_once plugin_dir_path(__FILE__) . 'WPAA.php';
    4551spl_autoload_register(array('WPAA', 'autoload'));
    46 $wpaa = new WPAA( );
     52$wpaa = new WPAA( $wpaa_version, $wpaa_update_date );
    4753
    4854// deactivation
     
    5359 */
    5460function wpaa_deactivate() {
     61    global $wpaa_version;
    5562    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 );
    5764        if (false !== $handle) {
    5865            curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE);
     
    7178 */
    7279function wpaa_activate() {
     80    global $wpaa_version;
    7381    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 );
    7583        if (false !== $handle) {
    7684            curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE);
Note: See TracChangeset for help on using the changeset viewer.