| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Source view] [Print] [Project Stats]
(no description)
| Copyright: | Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved. |
| License: | GNU/GPL, see LICENSE.php |
| Version: | $Id:helper.php 6961 2007-03-15 16:06:53Z tcp $ |
| File Size: | 391 lines (10 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
JUserHelper:: (9 methods):
activateUser()
getUserId()
getCryptedPassword()
getSalt()
genRandomPasswordPHP4()
genRandomPasswordPHP5()
genRandomPassword()
_toAPRMD5()
_bin()
Class: JUserHelper - X-Ref
Authorization helper class, provides static methods to perform various tasks relevant| activateUser($activation) X-Ref |
| Method to activate a user param: string $activation Activation string return: boolean True on success |
| getUserId($username) X-Ref |
| Returns userid if a user exists param: string The username to search on return: int The user id or 0 if not found |
| getCryptedPassword($plaintext, $salt = '', $encryption = 'md5-hex', $show_encrypt = false) X-Ref |
| Formats a password using the current encryption. param: string $plaintext The plaintext password to encrypt. param: string $salt The salt to use to encrypt the password. [] param: string $encryption The kind of pasword encryption to use. param: boolean $show_encrypt Some password systems prepend the kind of return: string The encrypted password. |
| getSalt($encryption = 'md5-hex', $seed = '', $plaintext = '') X-Ref |
| Returns a salt for the appropriate kind of password encryption. Optionally takes a seed and a plaintext password, to extract the seed of an existing password, or for encryption types that use the plaintext in the generation of the salt. param: string $encryption The kind of pasword encryption to use. param: string $seed The seed to get the salt from (probably a param: string $plaintext The plaintext password that we're generating return: string The generated or extracted salt. |
| genRandomPasswordPHP4($length = 8) X-Ref |
| Generate a random password on PHP4 The password is not truely random, but the best we can do for PHP4. To get a stronger random number, use PHP5. param: int $length Length of the password to generate return: string Random Password |
| genRandomPasswordPHP5($length = 8) X-Ref |
| Generate a random password This method is secure. param: int $length Length of the password to generate return: string Random Password |
| genRandomPassword($length = 8) X-Ref |
| Generate a random password param: int $length Length of the password to generate return: string Random Password |
| _toAPRMD5($value, $count) X-Ref |
| Converts to allowed 64 characters for APRMD5 passwords. param: string $value param: integer $count return: string $value converted to the 64 MD5 characters. |
| _bin($hex) X-Ref |
| Converts hexadecimal string to binary data. param: string $hex Hex data. return: string Binary data. |
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |