Commit 7d47f685 authored by Steven Mondji-Lerider's avatar Steven Mondji-Lerider
Browse files

adding create_pass function

parent cffff987
......@@ -578,6 +578,19 @@ function pager($offset,$count,$total,$url,$before="",$after="") {
echo $after;
}
function create_pass($length = 8){
$chars = "1234567890abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
$i = 0;
$password = "";
while ($i <= $length) {
$password .= @$chars{mt_rand(0,strlen($chars))};
$i++;
}
return $password;
}
?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment