Plugin Directory

Changeset 608978


Ignore:
Timestamp:
10/06/2012 10:35:17 PM (13 years ago)
Author:
jankarres
Message:

tagging version 1.0.3

Location:
wp-pocket
Files:
2 edited
4 copied

Legend:

Unmodified
Added
Removed
  • wp-pocket/tags/1.0.3/readme.txt

    r599294 r608978  
    55Requires at least: 3.4
    66Tested up to: 3.4
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5252== Changelog ==
    5353
     54= 1.0.3 =
     55Fix API-Key bug on install
     56
    5457= 1.0.2 =
    5558Fix encryption bug of the Pocket username, password and api key
  • wp-pocket/tags/1.0.3/wp-pocket.php

    r599294 r608978  
    66    Author: Jan Karres
    77    Author URI: http://www.jankarres.de/
    8     Version: 1.0.2
     8    Version: 1.0.3
    99*/
    1010
     
    2424           
    2525            // Set plugin version
    26             $this->version = '1.0.2';
     26            $this->version = '1.0.3';
    2727       
    2828            // Check WP version
     
    7070
    7171        function activate() {
    72             // Check if version under 1.0.2, if true, replace Pocket username, password and api-key
    73             $version = explode('.', get_option('wppocket_version'));
    74             if (
    75                 ($version[0] == 1 && $version[1] == 0 && $version[2] < 2) ||
    76                 ($version[0] == '' && $version[1] == '' && $version[2] == '')
    77             ) {
    78                 // Update Pocket username, password and api-key
    79                 update_option('wppocket_pocket_username', $this->xcrypt(0, $this->xcrypt(1, get_option('wppocket_pocket_username'), true)));
    80                 update_option('wppocket_pocket_password', $this->xcrypt(0, $this->xcrypt(1, get_option('wppocket_pocket_password'), true)));
    81                 update_option('wppocket_pocket_api_key', $this->xcrypt(0, $this->xcrypt(1, get_option('wppocket_pocket_api_key'), true)));
    82             }
    83            
    8472            // Create database table for links
    8573            $sql = '
     
    121109            ';
    122110            $this->wpdb->query($sql);
    123            
     111
     112            // Check if version under 1.0.2, if true, replace Pocket username, password and api-key
     113            $version = explode('.', get_option('wppocket_version'));
     114            if (
     115                ($version[0] == 1 && $version[1] == 0 && $version[2] < 2) ||
     116                ($version[0] == '' && $version[1] == '' && $version[2] == '')
     117            ) {
     118                // Update Pocket username, password and api-key
     119                update_option('wppocket_pocket_username', $this->xcrypt(0, $this->xcrypt(1, get_option('wppocket_pocket_username'), true)));
     120                update_option('wppocket_pocket_password', $this->xcrypt(0, $this->xcrypt(1, get_option('wppocket_pocket_password'), true)));
     121                update_option('wppocket_pocket_api_key', $this->xcrypt(0, $this->xcrypt(1, get_option('wppocket_pocket_api_key'), true)));
     122            }
     123           
     124            // Save API Key
    124125            $sql = '
    125126            INSERT IGNORE INTO `' . $this->wpdb->prefix . 'options` (
     
    809810                            $getLinks = $tmp;
    810811                        }
    811                        
     812                        echo '<pre>';
     813                        print_r($getLinks);
     814                        echo '</pre>';
    812815                        if (count((array)$getLinks->list) == 0) { // No elements
    813816                            ?>
  • wp-pocket/trunk/readme.txt

    r599294 r608978  
    55Requires at least: 3.4
    66Tested up to: 3.4
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5252== Changelog ==
    5353
     54= 1.0.3 =
     55Fix API-Key bug on install
     56
    5457= 1.0.2 =
    5558Fix encryption bug of the Pocket username, password and api key
  • wp-pocket/trunk/wp-pocket.php

    r599294 r608978  
    66    Author: Jan Karres
    77    Author URI: http://www.jankarres.de/
    8     Version: 1.0.2
     8    Version: 1.0.3
    99*/
    1010
     
    2424           
    2525            // Set plugin version
    26             $this->version = '1.0.2';
     26            $this->version = '1.0.3';
    2727       
    2828            // Check WP version
     
    7070
    7171        function activate() {
    72             // Check if version under 1.0.2, if true, replace Pocket username, password and api-key
    73             $version = explode('.', get_option('wppocket_version'));
    74             if (
    75                 ($version[0] == 1 && $version[1] == 0 && $version[2] < 2) ||
    76                 ($version[0] == '' && $version[1] == '' && $version[2] == '')
    77             ) {
    78                 // Update Pocket username, password and api-key
    79                 update_option('wppocket_pocket_username', $this->xcrypt(0, $this->xcrypt(1, get_option('wppocket_pocket_username'), true)));
    80                 update_option('wppocket_pocket_password', $this->xcrypt(0, $this->xcrypt(1, get_option('wppocket_pocket_password'), true)));
    81                 update_option('wppocket_pocket_api_key', $this->xcrypt(0, $this->xcrypt(1, get_option('wppocket_pocket_api_key'), true)));
    82             }
    83            
    8472            // Create database table for links
    8573            $sql = '
     
    121109            ';
    122110            $this->wpdb->query($sql);
    123            
     111
     112            // Check if version under 1.0.2, if true, replace Pocket username, password and api-key
     113            $version = explode('.', get_option('wppocket_version'));
     114            if (
     115                ($version[0] == 1 && $version[1] == 0 && $version[2] < 2) ||
     116                ($version[0] == '' && $version[1] == '' && $version[2] == '')
     117            ) {
     118                // Update Pocket username, password and api-key
     119                update_option('wppocket_pocket_username', $this->xcrypt(0, $this->xcrypt(1, get_option('wppocket_pocket_username'), true)));
     120                update_option('wppocket_pocket_password', $this->xcrypt(0, $this->xcrypt(1, get_option('wppocket_pocket_password'), true)));
     121                update_option('wppocket_pocket_api_key', $this->xcrypt(0, $this->xcrypt(1, get_option('wppocket_pocket_api_key'), true)));
     122            }
     123           
     124            // Save API Key
    124125            $sql = '
    125126            INSERT IGNORE INTO `' . $this->wpdb->prefix . 'options` (
     
    809810                            $getLinks = $tmp;
    810811                        }
    811                        
     812                        echo '<pre>';
     813                        print_r($getLinks);
     814                        echo '</pre>';
    812815                        if (count((array)$getLinks->list) == 0) { // No elements
    813816                            ?>
Note: See TracChangeset for help on using the changeset viewer.