Ignore:
Timestamp:
May 23, 2010, 4:42:51 PM (14 years ago)
Author:
Eric
Message:

[Register_FluxBB]

Merge from trunk to branch 2.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Register_FluxBB/branches/2.2/admin/admin.php

    r5606 r6295  
    8282  $result = pwg_query($query);
    8383 
    84   while($row = mysql_fetch_array($result))
     84  while($row = pwg_db_fetch_assoc($result))
    8585    $msg_error_PWG_Dup .= '<br>'.l10n('Error_PWG_Dup').$row['nbr_dup'].' x '.stripslashes($row['username']);
    8686
     
    100100  $result = pwg_query($query);
    101101 
    102   while($row = mysql_fetch_array($result))
     102  while($row = pwg_db_fetch_assoc($result))
    103103  {
    104104    $msg_error_FluxBB_Dup .= '<br>'.l10n('Error_FluxBB_Dup').$row['nbr_dup'].' x '.stripslashes($row['username']);
     
    111111    $subresult = pwg_query($subquery);
    112112 
    113     while($subrow = mysql_fetch_array($subresult))
     113    while($subrow = pwg_db_fetch_assoc($subresult))
    114114    {
    115115      $msg_error_FluxBB_Dup .= '<br>id:'.$subrow['id'].'='.stripslashes($subrow['username']).' ('.$subrow['email'].')';
     
    157157  $result = pwg_query($query);
    158158 
    159   while($row = mysql_fetch_array($result))
     159  while($row = pwg_db_fetch_assoc($result))
    160160  {
    161161    $msg_error_Link_Break .= '<br>'.l10n('Error_Link_Break').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')';
     
    196196  $result = pwg_query($query);
    197197 
    198   while($row = mysql_fetch_array($result))
     198  while($row = pwg_db_fetch_assoc($result))
    199199  {
    200200    $msg_error_Link_Bad .= '<br>'.l10n('Error_Link_Del').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')'.' -- '.stripslashes($row['bb_user']).' ('.$row['bb_mail'].')';
     
    245245;";
    246246
    247   $Compteur = mysql_fetch_array(pwg_query($query));
     247  $Compteur = pwg_db_fetch_assoc(pwg_query($query));
    248248
    249249  if (!empty($Compteur) and $Compteur['nbr_dead'] > 0)
     
    278278  $result = pwg_query($query);
    279279 
    280   while($row = mysql_fetch_array($result))
     280  while($row = pwg_db_fetch_assoc($result))
    281281  {
    282282    $msg_error_Link_Bad .= '<br>'.l10n('Error_Link_Dup').$row['nbr_dup'].' = '.stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).')';
     
    318318  $result = pwg_query($query);
    319319 
    320   while($row = mysql_fetch_array($result))
     320  while($row = pwg_db_fetch_assoc($result))
    321321  {
    322322    if ( ($row['pwg_pwd'] != $row['bb_pwd']) or ($row['pwg_eml'] != $row['bb_eml']) )
     
    373373  $result = pwg_query($query);
    374374
    375   while($row = mysql_fetch_array($result))
     375  while($row = pwg_db_fetch_assoc($result))
    376376  {
    377377    $msg_error_PWG2FluxBB .= '<br>'.l10n('Error_PWG2FluxBB').stripslashes($row['username']).' ('.$row['mail_address'].')';
     
    415415  $result = pwg_query($query);
    416416
    417   while($row = mysql_fetch_array($result))
     417  while($row = pwg_db_fetch_assoc($result))
    418418  {
    419419    $msg_error_FluxBB2PWG .= '<br>'.l10n('Error_FluxBB2PWG').stripslashes($row['username']).' ('.$row['email'].')';
     
    513513SELECT id AS id_pwg, username, password, mail_address
    514514FROM ".USERS_TABLE."
    515 WHERE BINARY username = BINARY '".mysql_real_escape_string($_GET['username'])."'
     515WHERE BINARY username = BINARY '".pwg_db_real_escape_string($_GET['username'])."'
    516516LIMIT 1
    517517;";
    518518
    519   $data = mysql_fetch_array(pwg_query($query));
     519  $data = pwg_db_fetch_assoc(pwg_query($query));
    520520 
    521521  if (!empty($data))
     
    531531SELECT id, username, password, mail_address
    532532FROM ".USERS_TABLE."
    533 WHERE BINARY username = BINARY '".mysql_real_escape_string($_GET['username'])."'
     533WHERE BINARY username = BINARY '".pwg_db_real_escape_string($_GET['username'])."'
    534534LIMIT 1
    535535;";
    536536
    537   $data = mysql_fetch_array(pwg_query($query));
     537  $data = pwg_db_fetch_assoc(pwg_query($query));
    538538 
    539539  if (!empty($data))
     
    633633    $result = pwg_query($query);
    634634 
    635     while ($row = mysql_fetch_array($result))
     635    while ($row = pwg_db_fetch_assoc($result))
    636636    {
    637637      if((stripslashes($row['username']) != stripslashes($conf_Register_FluxBB[2])) and (stripslashes($row['username']) != stripslashes($conf_Register_FluxBB[1])))
     
    658658    $msg_Mig_Add_AllUsers = '';
    659659 
    660     while ($row = mysql_fetch_array($result))
     660    while ($row = pwg_db_fetch_assoc($result))
    661661    {
    662662      if((stripslashes($row['username']) != 'guest') and (stripslashes($row['username']) != stripslashes($conf_Register_FluxBB[1])))
     
    677677;";
    678678
    679     $row = mysql_fetch_array(pwg_query($query));
     679    $row = pwg_db_fetch_assoc(pwg_query($query));
    680680
    681681    if (!empty($row))
     
    736736    $result = pwg_query($query);
    737737 
    738     while($row = mysql_fetch_array($result))
     738    while($row = pwg_db_fetch_assoc($result))
    739739      $msg_error_PWG_Dup .= '<br>'.l10n('Error_PWG_Dup').$row['nbr_dup'].' x '.stripslashes($row['username']);
    740740
     
    752752    $result = pwg_query($query);
    753753 
    754     while($row = mysql_fetch_array($result))
     754    while($row = pwg_db_fetch_assoc($result))
    755755    {
    756756      $msg_error_FluxBB_Dup .= '<br>'.l10n('Error_FluxBB_Dup').$row['nbr_dup'].' x '.stripslashes($row['username']);
     
    764764      $subresult = pwg_query($subquery);
    765765 
    766       while($subrow = mysql_fetch_array($subresult))
     766      while($subrow = pwg_db_fetch_assoc($subresult))
    767767      {
    768768        $msg_error_FluxBB_Dup .= '<br>id:'.$subrow['id'].'='.stripslashes($subrow['username']).' ('.$subrow['email'].')';
     
    809809      $result = pwg_query($query);
    810810   
    811       while($row = mysql_fetch_array($result))
     811      while($row = pwg_db_fetch_assoc($result))
    812812      {
    813813        $msg_error_Link_Break .= '<br>'.l10n('New_Link').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')';
     
    832832      $result = pwg_query($query);
    833833   
    834       while($row = mysql_fetch_array($result))
     834      while($row = pwg_db_fetch_assoc($result))
    835835      {
    836836        $msg_error_Link_Bad .= '<br>'.l10n('Link_Del').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')'.' -- '.stripslashes($row['bb_user']).' ('.$row['bb_mail'].')';
     
    859859;";
    860860
    861       $Compteur = mysql_fetch_array(pwg_query($query));
     861      $Compteur = pwg_db_fetch_assoc(pwg_query($query));
    862862   
    863863      if ( !empty($Compteur) and $Compteur['nbr_dead'] > 0)
     
    892892      $result = pwg_query($query);
    893893   
    894       while($row = mysql_fetch_array($result))
     894      while($row = pwg_db_fetch_assoc($result))
    895895      {
    896896        $msg_error_Link_Bad .= '<br>'.l10n('Link_Dup').$row['nbr_dup'].' = '.stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).')';
     
    916916      $result = pwg_query($query);
    917917   
    918       while($row = mysql_fetch_array($result))
     918      while($row = pwg_db_fetch_assoc($result))
    919919      {
    920920        if ( ($row['pwg_pwd'] != $row['bb_pwd']) or ($row['pwg_eml'] != $row['bb_eml']) )
     
    928928;";
    929929
    930           $data = mysql_fetch_array(pwg_query($query));
     930          $data = pwg_db_fetch_assoc(pwg_query($query));
    931931       
    932932          if (!empty($data))
     
    955955      $result = pwg_query($query);
    956956 
    957       while($row = mysql_fetch_array($result))
     957      while($row = pwg_db_fetch_assoc($result))
    958958      {
    959959        $msg_error_PWG2FluxBB .= '<br>'.l10n('Add_User').stripslashes($row['username']).' ('.$row['mail_address'].')';
     
    966966;";
    967967
    968         $data = mysql_fetch_array(pwg_query($query));
     968        $data = pwg_db_fetch_assoc(pwg_query($query));
    969969     
    970970        if (!empty($data))
     
    992992      $result = pwg_query($query);
    993993 
    994       while($row = mysql_fetch_array($result))
     994      while($row = pwg_db_fetch_assoc($result))
    995995      {
    996996        $msg_error_FluxBB2PWG .= '<br>'.l10n('Error_FluxBB2PWG').stripslashes($row['username']).' ('.$row['email'].')';
Note: See TracChangeset for help on using the changeset viewer.