public_html/admin/user.php
branchHEAD
changeset 7352 7db76f494446
parent 7292 cd653ce9aafb
child 7413 5db714583481
     1.1 --- a/public_html/admin/user.php	Sun Sep 06 15:46:20 2009 +0200
     1.2 +++ b/public_html/admin/user.php	Sat Oct 03 19:34:59 2009 +0200
     1.3 @@ -521,6 +521,18 @@
     1.4              return edituser($uid, 56);
     1.5          }
     1.6  
     1.7 +        if ($_CONF['custom_registration'] &&
     1.8 +                function_exists('CUSTOM_userCheck')) {
     1.9 +            $ret = CUSTOM_userCheck($username, $email);
    1.10 +            if (! empty($ret)) {
    1.11 +                // need a numeric return value - otherwise use default message
    1.12 +                if (! is_numeric($ret['number'])) {
    1.13 +                    $ret['number'] = 400;
    1.14 +                }
    1.15 +                return edituser($uid, $ret['number']);
    1.16 +            }
    1.17 +        }
    1.18 +
    1.19          if (empty ($uid) || !empty ($passwd)) {
    1.20              $passwd = SEC_encryptPassword($passwd);
    1.21          } else {