XOOPS 2.5.6
Final
|
Public Member Functions | |
getIP ($asString=false) | |
getUnameFromId ($userid, $usereal=false, $linked=false) | |
getUnameFromIds ($uid, $usereal=false, $linked=false) | |
sendWelcome ($user) | |
validate () | |
Definition at line 28 of file userutility.php.
XoopsUserUtility::getIP | ( | $asString = false | ) |
Get client IP
Adapted from PMA_getIp() [phpmyadmin project]
bool | $asString | requiring integer or dotted string |
Definition at line 217 of file userutility.php.
References $_SERVER.
Referenced by mod_getIP().
XoopsUserUtility::getUnameFromId()
mixed | $userid | |
mixed | $usereal | |
mixed | $linked |
Definition at line 302 of file userutility.php.
References $GLOBALS, $member_handler, $myts, $user, MyTextSanitizer\getInstance(), and xoops_gethandler().
Referenced by mod_getUnameFromId(), and xoops_getLinkedUnameFromId().
XoopsUserUtility::getUnameFromIds()
mixed | $uid | |
mixed | $usereal | |
mixed | $linked |
Definition at line 261 of file userutility.php.
References $GLOBALS, $myts, $result, $sql, $uid, $xoopsDB, XoopsDatabaseFactory\getDatabaseConnection(), and MyTextSanitizer\getInstance().
Referenced by mod_getUnameFromIds().
XoopsUserUtility::sendWelcome | ( | $user | ) |
mixed | $user |
Definition at line 36 of file userutility.php.
References $config_handler, $member_handler, $user, $xoopsConfig, $xoopsConfigUser, _US_WELCOME_SUBJECT, XOOPS_CONF_USER, xoops_gethandler(), xoops_getMailer(), and xoops_loadLanguage().
XoopsUserUtility::validate | ( | ) |
$uname, $email, $pass = null, $vpass = null XoopsUserUtility::validate
if (strrpos($uname, ' ') > 0) { $stop .= _US_NICKNAMENOSPACES . '
'; }
Definition at line 82 of file userutility.php.
References $config_handler, $email, $myts, $pass, $result, $sql, $stop, $uid, $uname, $user, $vpass, $xoopsConfigUser, $xoopsDB, $xoopsUser, _US_EMAILNOSPACES, _US_EMAILTAKEN, _US_ENTERPWD, _US_INVALIDMAIL, _US_INVALIDNICKNAME, _US_NAMERESERVED, _US_NICKNAMETAKEN, _US_NICKNAMETOOLONG, _US_NICKNAMETOOSHORT, _US_PASSNOTSAME, _US_PWDTOOSHORT, checkEmail(), XoopsDatabaseFactory\getDatabaseConnection(), MyTextSanitizer\getInstance(), XOOPS_CONF_USER, xoops_gethandler(), xoops_loadLanguage(), and xoops_trim().
Referenced by userCheck().