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/main.inc.php

    r5593 r5633  
    22/*
    33Plugin Name: UserAdvManager
    4 Version: 2.15.0
     4Version: 2.15.1
    55Description: Renforcer la gestion des utilisateurs - Enforce users management
    66Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=216
     
    9292;';
    9393       
    94       $count = mysql_num_rows(pwg_query($query));
     94      $count = pwg_db_num_rows(pwg_query($query));
    9595         
    9696      if ($count == 0)
     
    210210WHERE upper('.$conf['user_fields']['email'].') = upper(\''.$_POST['email'].'\')
    211211;';
    212     list($count) = mysql_fetch_array(pwg_query($query));
     212    list($count) = pwg_db_fetch_row(pwg_query($query));
    213213    if ($count != 0)
    214214    {
     
    234234WHERE upper('.$conf['user_fields']['email'].') = upper(\''.$_POST['mail_address'].'\')
    235235;';
    236     list($count) = mysql_fetch_array(pwg_query($query));
     236    list($count) = pwg_db_fetch_row(pwg_query($query));
    237237    if ($count != 0)
    238238    {
     
    355355;';
    356356         
    357           list($current_email) = mysql_fetch_row(pwg_query($query));
     357          list($current_email) = pwg_db_fetch_row(pwg_query($query));
    358358     
    359359          if ($_POST['mail_address'] != $current_email and ( isset($conf_UAM[2]) and $conf_UAM[2] == 'true'))
     
    370370;';
    371371       
    372           list($username) = mysql_fetch_row(pwg_query($query));
     372          list($username) = pwg_db_fetch_row(pwg_query($query));
    373373
    374374          SendMail2User($typemail, $user['id'], $username, $_POST['use_new_pwd'], $_POST['mail_address'], $confirm_mail_need);
Note: See TracChangeset for help on using the changeset viewer.