Changeset 608978
- Timestamp:
- 10/06/2012 10:35:17 PM (13 years ago)
- Location:
- wp-pocket
- Files:
-
- 2 edited
- 4 copied
-
tags/1.0.3 (copied) (copied from wp-pocket/trunk)
-
tags/1.0.3/readme.txt (copied) (copied from wp-pocket/trunk/readme.txt) (2 diffs)
-
tags/1.0.3/screenshot-1.png (copied) (copied from wp-pocket/trunk/screenshot-1.png)
-
tags/1.0.3/wp-pocket.php (copied) (copied from wp-pocket/trunk/wp-pocket.php) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-pocket.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-pocket/tags/1.0.3/readme.txt
r599294 r608978 5 5 Requires at least: 3.4 6 6 Tested up to: 3.4 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 52 52 == Changelog == 53 53 54 = 1.0.3 = 55 Fix API-Key bug on install 56 54 57 = 1.0.2 = 55 58 Fix encryption bug of the Pocket username, password and api key -
wp-pocket/tags/1.0.3/wp-pocket.php
r599294 r608978 6 6 Author: Jan Karres 7 7 Author URI: http://www.jankarres.de/ 8 Version: 1.0. 28 Version: 1.0.3 9 9 */ 10 10 … … 24 24 25 25 // Set plugin version 26 $this->version = '1.0. 2';26 $this->version = '1.0.3'; 27 27 28 28 // Check WP version … … 70 70 71 71 function activate() { 72 // Check if version under 1.0.2, if true, replace Pocket username, password and api-key73 $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-key79 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 84 72 // Create database table for links 85 73 $sql = ' … … 121 109 '; 122 110 $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 124 125 $sql = ' 125 126 INSERT IGNORE INTO `' . $this->wpdb->prefix . 'options` ( … … 809 810 $getLinks = $tmp; 810 811 } 811 812 echo '<pre>'; 813 print_r($getLinks); 814 echo '</pre>'; 812 815 if (count((array)$getLinks->list) == 0) { // No elements 813 816 ?> -
wp-pocket/trunk/readme.txt
r599294 r608978 5 5 Requires at least: 3.4 6 6 Tested up to: 3.4 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 52 52 == Changelog == 53 53 54 = 1.0.3 = 55 Fix API-Key bug on install 56 54 57 = 1.0.2 = 55 58 Fix encryption bug of the Pocket username, password and api key -
wp-pocket/trunk/wp-pocket.php
r599294 r608978 6 6 Author: Jan Karres 7 7 Author URI: http://www.jankarres.de/ 8 Version: 1.0. 28 Version: 1.0.3 9 9 */ 10 10 … … 24 24 25 25 // Set plugin version 26 $this->version = '1.0. 2';26 $this->version = '1.0.3'; 27 27 28 28 // Check WP version … … 70 70 71 71 function activate() { 72 // Check if version under 1.0.2, if true, replace Pocket username, password and api-key73 $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-key79 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 84 72 // Create database table for links 85 73 $sql = ' … … 121 109 '; 122 110 $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 124 125 $sql = ' 125 126 INSERT IGNORE INTO `' . $this->wpdb->prefix . 'options` ( … … 809 810 $getLinks = $tmp; 810 811 } 811 812 echo '<pre>'; 813 print_r($getLinks); 814 echo '</pre>'; 812 815 if (count((array)$getLinks->list) == 0) { // No elements 813 816 ?>
Note: See TracChangeset
for help on using the changeset viewer.