Ignore:
Timestamp:
Apr 4, 2010, 4:18:52 PM (14 years ago)
Author:
Eric
Message:

[NBC_UserAdvManager]

  • Bug 1571 fixed : Missing translation tag
  • Bug 1572 fixed : Fix unable to read resource: "ConfirmMail.tpl"
  • Bug 1574 fixed : Beautifying ConfirmMail page. Moved to a "template" folder with css file and icons.
  • Bug 1576 partially fixed : Compatibility with other database systems than MySql like PostgreSql or Sqlite. Using Piwigo's pwg_db_### integrated functions. mysql_list_fields() and mysql_num_fields() are not implemented in Piwigo's database functions. This point is still under discuss on FR forum.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/admin/UAM_admin.php

    r5593 r5633  
    216216  $result = pwg_query($query);
    217217       
    218   while ($row = mysql_fetch_assoc($result))
     218  while ($row = pwg_db_fetch_assoc($result))
    219219  {
    220220    $groups[$row['id']] = $row['name'];
     
    370370                  $result = pwg_query($query);
    371371                       
    372                   while($row = mysql_fetch_assoc($result))
     372                  while($row = pwg_db_fetch_assoc($result))
    373373                {
    374374                                $msg_error1 .= (($msg_error1 <> '') ? '<br/>' : '') . l10n('Err_audit_no_casse').stripslashes($row['username']);
     
    388388                        $result = pwg_query($query);
    389389                       
    390                         while($row = mysql_fetch_assoc($result))
     390                        while($row = pwg_db_fetch_assoc($result))
    391391                        {
    392392                                if (!ValidateUsername(stripslashes($row['username'])))
     
    407407                  $result = pwg_query($query);
    408408                       
    409                   while($row = mysql_fetch_assoc($result))
     409                  while($row = pwg_db_fetch_assoc($result))
    410410                  {
    411411                          $conf_MailExclusion = preg_split("/[\s,]+/",$conf_UAM[13]);
     
    801801WHERE id = '".$user_id."'
    802802;";
    803                                         $data = mysql_fetch_assoc(pwg_query($query));
     803                                        $data = pwg_db_fetch_assoc(pwg_query($query));
    804804                               
    805805                ResendMail2User($typemail,$user_id,stripslashes($data['username']),$data['mail_address'],true);
     
    886886;";
    887887                                       
    888                                         $data = mysql_fetch_assoc(pwg_query($query));
     888                                        $data = pwg_db_fetch_assoc(pwg_query($query));
    889889                               
    890890                ResendMail2User($typemail,$user_id,stripslashes($data['username']),$data['mail_address'],false);                               
     
    970970;";
    971971                                       
    972                                         $data = mysql_fetch_assoc(pwg_query($query));
     972                                        $data = pwg_db_fetch_assoc(pwg_query($query));
    973973                               
    974974                ForceValidation($data['id']);                           
     
    10011001                $result = pwg_query($query);
    10021002         
    1003     while ($row = mysql_fetch_assoc($result))
     1003    while ($row = pwg_db_fetch_assoc($result))
    10041004    {
    10051005      $groups[$row['id']] = $row['name'];
     
    10821082      $result = pwg_query($query);
    10831083     
    1084       $row = mysql_fetch_assoc($result);
     1084      $row = pwg_db_fetch_assoc($result);
    10851085   
    10861086      if (isset($row['reminder']) and $row['reminder'] == 'true')
     
    13531353;";
    13541354                                       
    1355                                         $data = mysql_fetch_assoc(pwg_query($query));
     1355                                        $data = pwg_db_fetch_assoc(pwg_query($query));
    13561356                               
    13571357                ghostreminder($user_id,stripslashes($data['username']),$data['mail_address']);                         
     
    13781378  FROM '.USER_LASTVISIT_TABLE.';';
    13791379
    1380         $count = mysql_num_rows(pwg_query($query1));
     1380        $count = pwg_db_num_rows(pwg_query($query1));
    13811381
    13821382        if ($count <> 0)
     
    13971397          $result = pwg_query($query);
    13981398         
    1399           while ($row = mysql_fetch_assoc($result))
     1399          while ($row = pwg_db_fetch_assoc($result))
    14001400          {
    1401             list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();'));
     1401            list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
    14021402           
    14031403            $query = "
     
    14241424          $result = pwg_query($query);
    14251425         
    1426           while($row = mysql_fetch_assoc($result))
     1426          while($row = pwg_db_fetch_assoc($result))
    14271427          {
    1428             list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();'));
     1428            list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
    14291429           
    14301430            $query = "
Note: See TracChangeset for help on using the changeset viewer.