function install_get_random_string
Search API
7.x install.php | install_get_random_string($length = 99) |
6.x install.php | install_get_random_string($length = 99) |
1 call to install_get_random_string()
- install_perform_install in ./
install.php - Actually performs the installation of FlightPath
File
- ./
install.php, line 80 - This is the initial installation file for FlightPath.
Code
function install_get_random_string($length = 99) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@^&#%*';
$charlen = strlen($characters);
$random_string = '';
for ($i = 0; $i < $length; $i++) {
$random_string .= $characters [mt_rand(0, $charlen - 1)];
}
return $random_string;
}