Changeset 655730
- Timestamp:
- 01/20/2013 01:23:52 PM (13 years ago)
- Location:
- aeiou
- Files:
-
- 3 edited
- 5 copied
-
tags/0.4 (copied) (copied from aeiou/trunk)
-
tags/0.4/index.php (copied) (copied from aeiou/trunk/index.php) (9 diffs)
-
tags/0.4/languages (copied) (copied from aeiou/trunk/languages)
-
tags/0.4/parsers.php (copied) (copied from aeiou/trunk/parsers.php) (1 diff)
-
tags/0.4/readme.txt (copied) (copied from aeiou/trunk/readme.txt) (2 diffs)
-
trunk/index.php (modified) (9 diffs)
-
trunk/parsers.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aeiou/tags/0.4/index.php
r655267 r655730 5 5 Description: AEIOU is a powerfull plugin that export all wordpress users info into an XML file including user metadatas and allow to import the same xml file into a new wordpress keeping the metadata of each user. The plugin is able to export buddypress xprofile data too. 6 6 Author: toSend.it di Luisa Marra 7 Version: 0. 37 Version: 0.4 8 8 Author URI: http://tosend.it 9 9 */ … … 11 11 if(!class_exists('AEIOU')){ 12 12 class AEIOU{ 13 const VERSION = '0. 3';13 const VERSION = '0.4'; 14 14 const LANG_DOMAIN = 'AEIOU'; 15 15 … … 456 456 $user['ID'] = $usr['ID']; 457 457 /* 458 * TODO: If password is defined in the XML file we should to import it458 * If password is defined in the XML file the script uses it (as is)! 459 459 */ 460 460 wp_update_user($user); … … 470 470 * New User must be created 471 471 */ 472 if(!isset($user['user_pass'])) $user['user_pass'] = ''; 472 473 $userID = wp_insert_user($user); 473 474 $user['ID'] = $userID; 474 475 /* 475 * TODO:If password is defined in the XML file we should to import it476 * If password is defined in the XML file we should to import it 476 477 */ 477 478 wp_update_user($user); … … 499 500 } 500 501 do_action('aeiou_after_import_user', $user); 501 502 flush(); 502 503 } 503 504 … … 522 523 523 524 if(empty($metaKey[0])) $metaKey = false; 524 if(is_serialized($value)) $value =unserialize($value);525 $value = maybe_unserialize($value); 525 526 if(!$metaKey || $this->exists=='replace'){ 526 527 delete_user_meta($userID, $key); … … 556 557 557 558 $optExists = !empty($option); 558 if(is_serialized($option)) $option = unserialize($option); 559 $option = maybe_unserialize($option); 560 559 561 if(!$optExists || $this->exists=='replace'){ 560 562 delete_user_option($userID, $key); … … 602 604 */ 603 605 $fieldId = $this->getXProfileFieldIDByName($name, $groupId); 604 $fieldData = is_serialized($value)? unserialize($value): $value;606 $fieldData = maybe_unserialize($value); 605 607 $oldValue = BP_XProfile_ProfileData::get_value_byid($fieldId, $userID); 606 608 if(is_null($oldValue) || ($oldValue == '' && $this->exists == 'update') || ($this->exists == 'replace') ){ … … 611 613 $data->field_id = $fieldId; 612 614 $data->user_id = $userID; 613 $data->value = is_serialized($value)? unserialize($value): $value;615 $data->value = maybe_unserialize($value); 614 616 $data->save(); 615 617 -
aeiou/tags/0.4/parsers.php
r655267 r655730 83 83 84 84 'user_login' => (string) $user->user_login, 85 'user_pass word' => (string) isset($user->user_password)?$usr->user_password:'',85 'user_pass' => (string) isset($user->user_pass)?$usr->user_pass:'', 86 86 'user_nicename' => (string) $user->user_nicename, 87 87 'user_email' => (string) $user->user_email, -
aeiou/tags/0.4/readme.txt
r655267 r655730 2 2 Contributors: tosend.it 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CRB85JPKCSNZ6 4 Tags: user, users, import, export, metadata, settings, options, BuddyPress, xprofile, Extended Profile, fields 4 Tags: user, users, import, export, metadata, settings, options, BuddyPress, xprofile, Extended Profile, fields, backup, migration 5 5 Requires at least: 3.4 6 6 Tested up to: 3.5 7 Stable tag: 0. 37 Stable tag: 0.4 8 8 License: GPLv2 9 9 10 Advanced Export/Import (Wordpress) Object Users 10 Advanced Export/Import (Wordpress) Object Users. 11 11 12 12 == Description == 13 13 14 AEIOU is a powerfull plugin that export all wordpress users info into an XML file including user metadatas and allow to import the same xml file into a new wordpress keeping the metadata and Buddypress XProfile data of each user. 14 AEIOU is a powerfull plugin that export all WordPress users info into an XML file including user settings and options 15 and allow you to import the same data file into a new WordPress keeping all user informations about the users including 16 the Buddypress XProfile data of each user. 15 17 16 18 **Note:** AEIOU requires SimpleXML PHP library to import data. Nothing more than wordpress is required for the export. … … 42 44 == Changelog == 43 45 46 = 0.4 (2013-01-21) = 47 * **Update:** All checks ''if is_serialized then unserialize'' were changed with method ''maybe_unserialize'' 48 * **Bugfix:** Password was never read from the xml file due to the wrong naming 49 44 50 = 0.3 (2013-01-19) = 45 51 * **New:** Added action aeiou_export_extra_data 46 52 * **New:** Now the export filename has the website name and the current date time. 47 53 * **Update:** Update software version 48 49 54 50 55 = 0.2 (2013-01-18) = -
aeiou/trunk/index.php
r655267 r655730 5 5 Description: AEIOU is a powerfull plugin that export all wordpress users info into an XML file including user metadatas and allow to import the same xml file into a new wordpress keeping the metadata of each user. The plugin is able to export buddypress xprofile data too. 6 6 Author: toSend.it di Luisa Marra 7 Version: 0. 37 Version: 0.4 8 8 Author URI: http://tosend.it 9 9 */ … … 11 11 if(!class_exists('AEIOU')){ 12 12 class AEIOU{ 13 const VERSION = '0. 3';13 const VERSION = '0.4'; 14 14 const LANG_DOMAIN = 'AEIOU'; 15 15 … … 456 456 $user['ID'] = $usr['ID']; 457 457 /* 458 * TODO: If password is defined in the XML file we should to import it458 * If password is defined in the XML file the script uses it (as is)! 459 459 */ 460 460 wp_update_user($user); … … 470 470 * New User must be created 471 471 */ 472 if(!isset($user['user_pass'])) $user['user_pass'] = ''; 472 473 $userID = wp_insert_user($user); 473 474 $user['ID'] = $userID; 474 475 /* 475 * TODO:If password is defined in the XML file we should to import it476 * If password is defined in the XML file we should to import it 476 477 */ 477 478 wp_update_user($user); … … 499 500 } 500 501 do_action('aeiou_after_import_user', $user); 501 502 flush(); 502 503 } 503 504 … … 522 523 523 524 if(empty($metaKey[0])) $metaKey = false; 524 if(is_serialized($value)) $value =unserialize($value);525 $value = maybe_unserialize($value); 525 526 if(!$metaKey || $this->exists=='replace'){ 526 527 delete_user_meta($userID, $key); … … 556 557 557 558 $optExists = !empty($option); 558 if(is_serialized($option)) $option = unserialize($option); 559 $option = maybe_unserialize($option); 560 559 561 if(!$optExists || $this->exists=='replace'){ 560 562 delete_user_option($userID, $key); … … 602 604 */ 603 605 $fieldId = $this->getXProfileFieldIDByName($name, $groupId); 604 $fieldData = is_serialized($value)? unserialize($value): $value;606 $fieldData = maybe_unserialize($value); 605 607 $oldValue = BP_XProfile_ProfileData::get_value_byid($fieldId, $userID); 606 608 if(is_null($oldValue) || ($oldValue == '' && $this->exists == 'update') || ($this->exists == 'replace') ){ … … 611 613 $data->field_id = $fieldId; 612 614 $data->user_id = $userID; 613 $data->value = is_serialized($value)? unserialize($value): $value;615 $data->value = maybe_unserialize($value); 614 616 $data->save(); 615 617 -
aeiou/trunk/parsers.php
r655267 r655730 83 83 84 84 'user_login' => (string) $user->user_login, 85 'user_pass word' => (string) isset($user->user_password)?$usr->user_password:'',85 'user_pass' => (string) isset($user->user_pass)?$usr->user_pass:'', 86 86 'user_nicename' => (string) $user->user_nicename, 87 87 'user_email' => (string) $user->user_email, -
aeiou/trunk/readme.txt
r655267 r655730 2 2 Contributors: tosend.it 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CRB85JPKCSNZ6 4 Tags: user, users, import, export, metadata, settings, options, BuddyPress, xprofile, Extended Profile, fields 4 Tags: user, users, import, export, metadata, settings, options, BuddyPress, xprofile, Extended Profile, fields, backup, migration 5 5 Requires at least: 3.4 6 6 Tested up to: 3.5 7 Stable tag: 0. 37 Stable tag: 0.4 8 8 License: GPLv2 9 9 10 Advanced Export/Import (Wordpress) Object Users 10 Advanced Export/Import (Wordpress) Object Users. 11 11 12 12 == Description == 13 13 14 AEIOU is a powerfull plugin that export all wordpress users info into an XML file including user metadatas and allow to import the same xml file into a new wordpress keeping the metadata and Buddypress XProfile data of each user. 14 AEIOU is a powerfull plugin that export all WordPress users info into an XML file including user settings and options 15 and allow you to import the same data file into a new WordPress keeping all user informations about the users including 16 the Buddypress XProfile data of each user. 15 17 16 18 **Note:** AEIOU requires SimpleXML PHP library to import data. Nothing more than wordpress is required for the export. … … 42 44 == Changelog == 43 45 46 = 0.4 (2013-01-21) = 47 * **Update:** All checks ''if is_serialized then unserialize'' were changed with method ''maybe_unserialize'' 48 * **Bugfix:** Password was never read from the xml file due to the wrong naming 49 44 50 = 0.3 (2013-01-19) = 45 51 * **New:** Added action aeiou_export_extra_data 46 52 * **New:** Now the export filename has the website name and the current date time. 47 53 * **Update:** Update software version 48 49 54 50 55 = 0.2 (2013-01-18) =
Note: See TracChangeset
for help on using the changeset viewer.