Changeset 6295 for extensions/Register_FluxBB/branches/2.2/admin/admin.php
- Timestamp:
- May 23, 2010, 4:42:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Register_FluxBB/branches/2.2/admin/admin.php
r5606 r6295 82 82 $result = pwg_query($query); 83 83 84 while($row = mysql_fetch_array($result))84 while($row = pwg_db_fetch_assoc($result)) 85 85 $msg_error_PWG_Dup .= '<br>'.l10n('Error_PWG_Dup').$row['nbr_dup'].' x '.stripslashes($row['username']); 86 86 … … 100 100 $result = pwg_query($query); 101 101 102 while($row = mysql_fetch_array($result))102 while($row = pwg_db_fetch_assoc($result)) 103 103 { 104 104 $msg_error_FluxBB_Dup .= '<br>'.l10n('Error_FluxBB_Dup').$row['nbr_dup'].' x '.stripslashes($row['username']); … … 111 111 $subresult = pwg_query($subquery); 112 112 113 while($subrow = mysql_fetch_array($subresult))113 while($subrow = pwg_db_fetch_assoc($subresult)) 114 114 { 115 115 $msg_error_FluxBB_Dup .= '<br>id:'.$subrow['id'].'='.stripslashes($subrow['username']).' ('.$subrow['email'].')'; … … 157 157 $result = pwg_query($query); 158 158 159 while($row = mysql_fetch_array($result))159 while($row = pwg_db_fetch_assoc($result)) 160 160 { 161 161 $msg_error_Link_Break .= '<br>'.l10n('Error_Link_Break').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')'; … … 196 196 $result = pwg_query($query); 197 197 198 while($row = mysql_fetch_array($result))198 while($row = pwg_db_fetch_assoc($result)) 199 199 { 200 200 $msg_error_Link_Bad .= '<br>'.l10n('Error_Link_Del').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')'.' -- '.stripslashes($row['bb_user']).' ('.$row['bb_mail'].')'; … … 245 245 ;"; 246 246 247 $Compteur = mysql_fetch_array(pwg_query($query));247 $Compteur = pwg_db_fetch_assoc(pwg_query($query)); 248 248 249 249 if (!empty($Compteur) and $Compteur['nbr_dead'] > 0) … … 278 278 $result = pwg_query($query); 279 279 280 while($row = mysql_fetch_array($result))280 while($row = pwg_db_fetch_assoc($result)) 281 281 { 282 282 $msg_error_Link_Bad .= '<br>'.l10n('Error_Link_Dup').$row['nbr_dup'].' = '.stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).')'; … … 318 318 $result = pwg_query($query); 319 319 320 while($row = mysql_fetch_array($result))320 while($row = pwg_db_fetch_assoc($result)) 321 321 { 322 322 if ( ($row['pwg_pwd'] != $row['bb_pwd']) or ($row['pwg_eml'] != $row['bb_eml']) ) … … 373 373 $result = pwg_query($query); 374 374 375 while($row = mysql_fetch_array($result))375 while($row = pwg_db_fetch_assoc($result)) 376 376 { 377 377 $msg_error_PWG2FluxBB .= '<br>'.l10n('Error_PWG2FluxBB').stripslashes($row['username']).' ('.$row['mail_address'].')'; … … 415 415 $result = pwg_query($query); 416 416 417 while($row = mysql_fetch_array($result))417 while($row = pwg_db_fetch_assoc($result)) 418 418 { 419 419 $msg_error_FluxBB2PWG .= '<br>'.l10n('Error_FluxBB2PWG').stripslashes($row['username']).' ('.$row['email'].')'; … … 513 513 SELECT id AS id_pwg, username, password, mail_address 514 514 FROM ".USERS_TABLE." 515 WHERE BINARY username = BINARY '". mysql_real_escape_string($_GET['username'])."'515 WHERE BINARY username = BINARY '".pwg_db_real_escape_string($_GET['username'])."' 516 516 LIMIT 1 517 517 ;"; 518 518 519 $data = mysql_fetch_array(pwg_query($query));519 $data = pwg_db_fetch_assoc(pwg_query($query)); 520 520 521 521 if (!empty($data)) … … 531 531 SELECT id, username, password, mail_address 532 532 FROM ".USERS_TABLE." 533 WHERE BINARY username = BINARY '". mysql_real_escape_string($_GET['username'])."'533 WHERE BINARY username = BINARY '".pwg_db_real_escape_string($_GET['username'])."' 534 534 LIMIT 1 535 535 ;"; 536 536 537 $data = mysql_fetch_array(pwg_query($query));537 $data = pwg_db_fetch_assoc(pwg_query($query)); 538 538 539 539 if (!empty($data)) … … 633 633 $result = pwg_query($query); 634 634 635 while ($row = mysql_fetch_array($result))635 while ($row = pwg_db_fetch_assoc($result)) 636 636 { 637 637 if((stripslashes($row['username']) != stripslashes($conf_Register_FluxBB[2])) and (stripslashes($row['username']) != stripslashes($conf_Register_FluxBB[1]))) … … 658 658 $msg_Mig_Add_AllUsers = ''; 659 659 660 while ($row = mysql_fetch_array($result))660 while ($row = pwg_db_fetch_assoc($result)) 661 661 { 662 662 if((stripslashes($row['username']) != 'guest') and (stripslashes($row['username']) != stripslashes($conf_Register_FluxBB[1]))) … … 677 677 ;"; 678 678 679 $row = mysql_fetch_array(pwg_query($query));679 $row = pwg_db_fetch_assoc(pwg_query($query)); 680 680 681 681 if (!empty($row)) … … 736 736 $result = pwg_query($query); 737 737 738 while($row = mysql_fetch_array($result))738 while($row = pwg_db_fetch_assoc($result)) 739 739 $msg_error_PWG_Dup .= '<br>'.l10n('Error_PWG_Dup').$row['nbr_dup'].' x '.stripslashes($row['username']); 740 740 … … 752 752 $result = pwg_query($query); 753 753 754 while($row = mysql_fetch_array($result))754 while($row = pwg_db_fetch_assoc($result)) 755 755 { 756 756 $msg_error_FluxBB_Dup .= '<br>'.l10n('Error_FluxBB_Dup').$row['nbr_dup'].' x '.stripslashes($row['username']); … … 764 764 $subresult = pwg_query($subquery); 765 765 766 while($subrow = mysql_fetch_array($subresult))766 while($subrow = pwg_db_fetch_assoc($subresult)) 767 767 { 768 768 $msg_error_FluxBB_Dup .= '<br>id:'.$subrow['id'].'='.stripslashes($subrow['username']).' ('.$subrow['email'].')'; … … 809 809 $result = pwg_query($query); 810 810 811 while($row = mysql_fetch_array($result))811 while($row = pwg_db_fetch_assoc($result)) 812 812 { 813 813 $msg_error_Link_Break .= '<br>'.l10n('New_Link').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')'; … … 832 832 $result = pwg_query($query); 833 833 834 while($row = mysql_fetch_array($result))834 while($row = pwg_db_fetch_assoc($result)) 835 835 { 836 836 $msg_error_Link_Bad .= '<br>'.l10n('Link_Del').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')'.' -- '.stripslashes($row['bb_user']).' ('.$row['bb_mail'].')'; … … 859 859 ;"; 860 860 861 $Compteur = mysql_fetch_array(pwg_query($query));861 $Compteur = pwg_db_fetch_assoc(pwg_query($query)); 862 862 863 863 if ( !empty($Compteur) and $Compteur['nbr_dead'] > 0) … … 892 892 $result = pwg_query($query); 893 893 894 while($row = mysql_fetch_array($result))894 while($row = pwg_db_fetch_assoc($result)) 895 895 { 896 896 $msg_error_Link_Bad .= '<br>'.l10n('Link_Dup').$row['nbr_dup'].' = '.stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).')'; … … 916 916 $result = pwg_query($query); 917 917 918 while($row = mysql_fetch_array($result))918 while($row = pwg_db_fetch_assoc($result)) 919 919 { 920 920 if ( ($row['pwg_pwd'] != $row['bb_pwd']) or ($row['pwg_eml'] != $row['bb_eml']) ) … … 928 928 ;"; 929 929 930 $data = mysql_fetch_array(pwg_query($query));930 $data = pwg_db_fetch_assoc(pwg_query($query)); 931 931 932 932 if (!empty($data)) … … 955 955 $result = pwg_query($query); 956 956 957 while($row = mysql_fetch_array($result))957 while($row = pwg_db_fetch_assoc($result)) 958 958 { 959 959 $msg_error_PWG2FluxBB .= '<br>'.l10n('Add_User').stripslashes($row['username']).' ('.$row['mail_address'].')'; … … 966 966 ;"; 967 967 968 $data = mysql_fetch_array(pwg_query($query));968 $data = pwg_db_fetch_assoc(pwg_query($query)); 969 969 970 970 if (!empty($data)) … … 992 992 $result = pwg_query($query); 993 993 994 while($row = mysql_fetch_array($result))994 while($row = pwg_db_fetch_assoc($result)) 995 995 { 996 996 $msg_error_FluxBB2PWG .= '<br>'.l10n('Error_FluxBB2PWG').stripslashes($row['username']).' ('.$row['email'].')';
Note: See TracChangeset
for help on using the changeset viewer.