LEPTON CMS 7.2.0
feel free to keep it strictly simple...
|
Go to the source code of this file.
Functions | |
random_string (int $iNumOfChars=8, string $aType="alphanum") | |
Variables | |
if(!defined("SEC_FILE")) if(defined('LEPTON_PATH')) | else |
$root = $oneback | |
$level = 1 | |
random_string | ( | int | $iNumOfChars = 8, |
string | $aType = "alphanum" ) |
Function to generate a random-string. Random-Strings are often used inside LEPTON-CMS, e.g. Captcha, Modul-Form, User-Account, Forgot-Password, etc.
int | $iNumOfChars | Number of chars to generate. Default is 8 (chars). |
string | $aType | Type, default is 'alphanum'. Possible values are: 'alphanum' = Generates an alphanumeric string with chars and numbers. 'alpha' = Generates only chars. 'chars' = Also generates only chars. 'hex' = Hexadecimal. 'hex-lower' = Hexadecimal in lower cases. 'lower' = Only lower cases are used. 'num' = Generates only numbers. 'pass' = Generates an alphanumeric string within some special chars e.g. '&', '$' or '|'. '<anyString>' = Generates a shuffled string with these chars. |
@examples random_string()
random_string(5)
random_string(8, 'num')
random_string(8, 'Aldus')
random_string(8, 'hex-lower')
Definition at line 76 of file function.random_string.php.
$level = 1 |
Definition at line 25 of file function.random_string.php.
$root = $oneback |
Definition at line 24 of file function.random_string.php.
while(($level< 10) &&(!file_exists($root.SEC_FILE))) if (file_exists( $root.SEC_FILE)) else |
This file is part of LEPTON Core, released under the GNU GPL Please see LICENSE and COPYING files in your package for details, specially for terms and warranties.
NOTICE:LEPTON CMS Package has several different licenses. Please see the individual license in the header of each single file or info.php of modules and templates.
Definition at line 22 of file function.random_string.php.