Ignore:
Timestamp:
Mar 30, 2012, 9:43:39 PM (12 years ago)
Author:
Eric
Message:

r13822 merged from trunk
Bug 2602 fixed - Sql error when Confirmation by admin is set
Small code refactoring and cleanup
en_UK reference translation spellchecking
de_DE translation updated
fr_FR translation updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/branches/2.40/include/functions.inc.php

    r12661 r13825  
    100100  if ($register_user['username'] != "16" and $register_user['username'] != "18")
    101101  {
     102    $passwd = (isset($_POST['password'])) ? $_POST['password'] : '';
     103   
    102104    if ((isset($conf_UAM[0]) and $conf_UAM[0] == 'true') and (isset($conf_UAM[1]) and $conf_UAM[1] == 'local'))
    103105    {
    104106      // This is to send an information email and set user to "waiting" group or status until admin validation
    105107      // -----------------------------------------------------------------------------------------------------
    106       $passwd = (isset($_POST['password'])) ? $_POST['password'] : '';
    107108      SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], false);
    108109      SetPermission($register_user['id']);// Set to "waiting" group or status until admin validation
     
    118119      // This is to send an information email without validation key
    119120      // -----------------------------------------------------------
    120       $passwd = (isset($_POST['password'])) ? $_POST['password'] : '';
    121121      SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], false);
    122122    }
     
    127127      if (is_admin() and isset($conf_UAM[19]) and $conf_UAM[19] == 'true')
    128128      {
    129         $passwd = (isset($_POST['password'])) ? $_POST['password'] : '';
    130129        SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], true);
    131130      }
    132131      elseif (is_admin() and isset($conf_UAM[19]) and $conf_UAM[19] == 'false')
    133132      {
    134         $passwd = (isset($_POST['password'])) ? $_POST['password'] : '';
    135133        SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], false);
    136134      }
    137135      elseif (!is_admin())
    138136      {
    139         $passwd = (isset($_POST['password'])) ? $_POST['password'] : '';
    140137        SendMail2User(1, $register_user['id'], $register_user['username'], $passwd, $register_user['email'], true);
    141138      }
     
    23912388  $users = array();
    23922389
    2393         // Search users depending expiration date
    2394   // --------------------------------------
     2390        // Search users depending expiration date with exclusion of Adult_Content generic users
     2391  // ------------------------------------------------------------------------------------
    23952392  $query = '
    23962393SELECT DISTINCT u.'.$conf['user_fields']['id'].' AS id,
     
    24022399    ON u.'.$conf['user_fields']['id'].' = ug.user_id
    24032400WHERE u.'.$conf['user_fields']['id'].' >= 3
     2401  AND u.username NOT LIKE "16"
     2402  AND u.username NOT LIKE "18"
    24042403ORDER BY ug.lastvisit DESC
    24052404;';
Note: See TracChangeset for help on using the changeset viewer.