Changeset 6449
- Timestamp:
- 06/01/2017 07:14:43 PM (7 years ago)
- Location:
- trunk/src/includes/admin/converters
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/converters/AEF.php
r5951 r6449 571 571 * converter. 572 572 */ 573 public function info() 574 { 573 public function info() { 575 574 return ''; 576 575 } … … 581 580 * as one value. Array values are auto sanitized by WordPress. 582 581 */ 583 public function callback_savepass( $field, $row ) 584 { 582 public function callback_savepass( $field, $row ) { 585 583 $pass_array = array( 'hash' => $field, 'salt' => $row['salt'] ); 586 584 return $pass_array; … … 591 589 * to a pass the user has typed in. 592 590 */ 593 public function authenticate_pass( $password, $serialized_pass ) 594 { 591 public function authenticate_pass( $password, $serialized_pass ) { 595 592 $pass_array = unserialize( $serialized_pass ); 596 593 return ( $pass_array['hash'] == md5( md5( $password ). $pass_array['salt'] ) ); -
trunk/src/includes/admin/converters/Drupal7.php
r5951 r6449 569 569 * converter. 570 570 */ 571 public function info() 572 { 571 public function info() { 573 572 return ''; 574 573 } … … 579 578 * as one value. Array values are auto sanitized by WordPress. 580 579 */ 581 public function callback_savepass( $field, $row ) 582 { 580 public function callback_savepass( $field, $row ) { 583 581 $pass_array = array( 'hash' => $field, 'salt' => $row['salt'] ); 584 582 return $pass_array; … … 589 587 * to a pass the user has typed in. 590 588 */ 591 public function authenticate_pass( $password, $serialized_pass ) 592 { 589 public function authenticate_pass( $password, $serialized_pass ) { 593 590 $pass_array = unserialize( $serialized_pass ); 594 591 return ( $pass_array['hash'] == md5( md5( $password ). $pass_array['salt'] ) ); -
trunk/src/includes/admin/converters/FluxBB.php
r5951 r6449 591 591 * converter. 592 592 */ 593 public function info() 594 { 593 public function info() { 595 594 return ''; 596 595 } … … 601 600 * as one value. Array values are auto sanitized by WordPress. 602 601 */ 603 public function callback_savepass( $field, $row ) 604 { 602 public function callback_savepass( $field, $row ) { 605 603 $pass_array = array( 'hash' => $field, 'salt' => $row['salt'] ); 606 604 return $pass_array; … … 611 609 * to a pass the user has typed in. 612 610 */ 613 public function authenticate_pass( $password, $serialized_pass ) 614 { 611 public function authenticate_pass( $password, $serialized_pass ) { 615 612 $pass_array = unserialize( $serialized_pass ); 616 613 return ( $pass_array['hash'] == md5( md5( $password ). $pass_array['salt'] ) ); -
trunk/src/includes/admin/converters/Invision.php
r6293 r6449 30 30 * Sets up the field mappings 31 31 */ 32 public function setup_globals() 32 public function setup_globals() { 33 33 34 34 /** Forum Section *****************************************************/ -
trunk/src/includes/admin/converters/Kunena3.php
r5951 r6449 701 701 * converter. 702 702 */ 703 public function info() 704 { 703 public function info() { 705 704 return ''; 706 705 } … … 711 710 * as one value. Array values are auto sanitized by WordPress. 712 711 */ 713 public function callback_savepass( $field, $row ) 714 { 712 public function callback_savepass( $field, $row ) { 715 713 $pass_array = array( 'hash' => $field, 'salt' => $row['salt'] ); 716 714 return $pass_array; … … 721 719 * to a pass the user has typed in. 722 720 */ 723 public function authenticate_pass( $password, $serialized_pass ) 724 { 721 public function authenticate_pass( $password, $serialized_pass ) { 725 722 $pass_array = unserialize( $serialized_pass ); 726 723 return ( $pass_array['hash'] == md5( md5( $password ). $pass_array['salt'] ) ); -
trunk/src/includes/admin/converters/MyBB.php
r5951 r6449 517 517 * converter. 518 518 */ 519 public function info() 520 { 519 public function info() { 521 520 return ''; 522 521 } … … 527 526 * as one value. Array values are auto sanitized by WordPress. 528 527 */ 529 public function callback_savepass( $field, $row ) 530 { 528 public function callback_savepass( $field, $row ) { 531 529 $pass_array = array( 'hash' => $field, 'salt' => $row['salt'] ); 532 530 return $pass_array; … … 537 535 * to a pass the user has typed in. 538 536 */ 539 public function authenticate_pass( $password, $serialized_pass ) 540 { 537 public function authenticate_pass( $password, $serialized_pass ) { 541 538 $pass_array = unserialize( $serialized_pass ); 542 539 return ( $pass_array['hash'] == md5( md5( $password ). $pass_array['salt'] ) ); -
trunk/src/includes/admin/converters/PHPFox3.php
r5951 r6449 507 507 * converter. 508 508 */ 509 public function info() 510 { 509 public function info() { 511 510 return ''; 512 511 } … … 517 516 * as one value. Array values are auto sanitized by WordPress. 518 517 */ 519 public function callback_savepass( $field, $row ) 520 { 518 public function callback_savepass( $field, $row ) { 521 519 $pass_array = array( 'hash' => $field, 'salt' => $row['salt'] ); 522 520 return $pass_array; … … 527 525 * to a pass the user has typed in. 528 526 */ 529 public function authenticate_pass( $password, $serialized_pass ) 530 { 527 public function authenticate_pass( $password, $serialized_pass ) { 531 528 $pass_array = unserialize( $serialized_pass ); 532 529 return ( $pass_array['hash'] == md5( md5( $password ). $pass_array['salt'] ) ); -
trunk/src/includes/admin/converters/PHPWind.php
r5951 r6449 487 487 * converter. 488 488 */ 489 public function info() 490 { 489 public function info() { 491 490 return ''; 492 491 } … … 497 496 * as one value. Array values are auto sanitized by WordPress. 498 497 */ 499 public function callback_savepass( $field, $row ) 500 { 498 public function callback_savepass( $field, $row ) { 501 499 $pass_array = array( 'hash' => $field, 'salt' => $row['salt'] ); 502 500 return $pass_array; … … 507 505 * to a pass the user has typed in. 508 506 */ 509 public function authenticate_pass( $password, $serialized_pass ) 510 { 507 public function authenticate_pass( $password, $serialized_pass ) { 511 508 $pass_array = unserialize( $serialized_pass ); 512 509 return ( $pass_array['hash'] == md5( md5( $password ). $pass_array['salt'] ) ); -
trunk/src/includes/admin/converters/Phorum.php
r5951 r6449 517 517 * converter. 518 518 */ 519 public function info() 520 { 519 public function info() { 521 520 return ''; 522 521 } … … 527 526 * as one value. Array values are auto sanitized by WordPress. 528 527 */ 529 public function callback_savepass( $field, $row ) 530 { 528 public function callback_savepass( $field, $row ) { 531 529 $pass_array = array( 'hash' => $field, 'salt' => $row['salt'] ); 532 530 return $pass_array; … … 537 535 * to a pass the user has typed in. 538 536 */ 539 public function authenticate_pass( $password, $serialized_pass ) 540 { 537 public function authenticate_pass( $password, $serialized_pass ) { 541 538 $pass_array = unserialize( $serialized_pass ); 542 539 return ( $pass_array['hash'] == md5( md5( $password ). $pass_array['salt'] ) ); -
trunk/src/includes/admin/converters/PunBB.php
r5951 r6449 664 664 * converter. 665 665 */ 666 public function info() 667 { 666 public function info() { 668 667 return ''; 669 668 } … … 674 673 * as one value. Array values are auto sanitized by WordPress. 675 674 */ 676 public function callback_savepass( $field, $row ) 677 { 675 public function callback_savepass( $field, $row ) { 678 676 $pass_array = array( 'hash' => $field, 'salt' => $row['salt'] ); 679 677 return $pass_array; … … 684 682 * to a pass the user has typed in. 685 683 */ 686 public function authenticate_pass( $password, $serialized_pass ) 687 { 684 public function authenticate_pass( $password, $serialized_pass ) { 688 685 $pass_array = unserialize( $serialized_pass ); 689 686 return ( $pass_array['hash'] == md5( md5( $password ). $pass_array['salt'] ) ); -
trunk/src/includes/admin/converters/SMF.php
r6284 r6449 653 653 * converter. 654 654 */ 655 public function info() 656 { 655 public function info() { 657 656 return ''; 658 657 } … … 663 662 * as one value. Array values are auto sanitized by WordPress. 664 663 */ 665 public function callback_savepass( $field, $row ) 666 { 664 public function callback_savepass( $field, $row ) { 667 665 $pass_array = array( 'hash' => $field, 'username' => $row['member_name'] ); 668 666 return $pass_array; … … 673 671 * to a pass the user has typed in. 674 672 */ 675 public function authenticate_pass( $password, $serialized_pass ) 676 { 673 public function authenticate_pass( $password, $serialized_pass ) { 677 674 $pass_array = unserialize( $serialized_pass ); 678 675 return ( $pass_array['hash'] === sha1( strtolower( $pass_array['username'] ) . $password ) ? true : false ); -
trunk/src/includes/admin/converters/XMB.php
r5951 r6449 624 624 * converter. 625 625 */ 626 public function info() 627 { 626 public function info() { 628 627 return ''; 629 628 } … … 634 633 * as one value. Array values are auto sanitized by WordPress. 635 634 */ 636 public function callback_savepass( $field, $row ) 637 { 635 public function callback_savepass( $field, $row ) { 638 636 $pass_array = array( 'hash' => $field, 'salt' => $row['salt'] ); 639 637 return $pass_array; … … 644 642 * to a pass the user has typed in. 645 643 */ 646 public function authenticate_pass( $password, $serialized_pass ) 647 { 644 public function authenticate_pass( $password, $serialized_pass ) { 648 645 $pass_array = unserialize( $serialized_pass ); 649 646 return ( $pass_array['hash'] == md5( md5( $password ). $pass_array['salt'] ) ); -
trunk/src/includes/admin/converters/XenForo.php
r6284 r6449 683 683 * as one value. Array values are auto sanitized by wordpress. 684 684 */ 685 public function translate_savepass( $field, $row ) 686 { 685 public function translate_savepass( $field, $row ) { 687 686 $pass_array = array( 'hash' => $field, 'salt' => $row['salt'] ); 688 687 return $pass_array; … … 693 692 * to a pass the user has typed in. 694 693 */ 695 public function authenticate_pass( $password, $serialized_pass ) 696 { 694 public function authenticate_pass( $password, $serialized_pass ) { 697 695 $pass_array = unserialize( $serialized_pass ); 698 switch( $pass_array['hashFunc'] ) 699 { 696 switch( $pass_array['hashFunc'] ) { 700 697 case 'sha256': 701 698 return ( $pass_array['hash'] == hash( 'sha256', hash( 'sha256', $password ) . $pass_array['salt'] ) ); -
trunk/src/includes/admin/converters/e107v1.php
r6284 r6449 466 466 * converter. 467 467 */ 468 public function info() 469 { 468 public function info() { 470 469 return ''; 471 470 } … … 476 475 * as one value. Array values are auto sanitized by WordPress. 477 476 */ 478 public function callback_savepass( $field, $row ) 479 { 477 public function callback_savepass( $field, $row ) { 480 478 $pass_array = array( 'hash' => $field, 'salt' => $row['salt'] ); 481 479 return $pass_array; … … 486 484 * to a pass the user has typed in. 487 485 */ 488 public function authenticate_pass( $password, $serialized_pass ) 489 { 486 public function authenticate_pass( $password, $serialized_pass ) { 490 487 $pass_array = unserialize( $serialized_pass ); 491 488 return ( $pass_array['hash'] == md5( md5( $password ). $pass_array['salt'] ) ); … … 585 582 $this->map_userid[ $field ] = $row->value_id; 586 583 } else { 587 if ( ! empty( $_POST['_bbp_converter_convert_users'] ) && ( $_POST['_bbp_converter_convert_users'] == 1 )) {584 if ( true === $this->convert_users ) { 588 585 $this->map_userid[ $field ] = 0; 589 586 } else { -
trunk/src/includes/admin/converters/phpBB.php
r6284 r6449 777 777 if ( floatval( phpversion() ) >= 5 ) { 778 778 $hash = md5( $salt . $password, true ); 779 do 780 { 779 do { 781 780 $hash = md5( $hash . $password, true ); 782 781 }
Note: See TracChangeset
for help on using the changeset viewer.