new patterns
This commit is contained in:
10
sc.php
10
sc.php
@@ -152,6 +152,16 @@ system ("w | grep load");
|
||||
system('find '.$GLOBALS["webroot"].' -type f -name "error_log" -print -exec rm -rfv {} \;'); // clear the error logs
|
||||
|
||||
}
|
||||
|
||||
function passgen(){
|
||||
$caracteres = '0123456789abcdefghijklmnpqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$#@!?=%-+*.[]{}_,;:<>|';
|
||||
$caractereslong = strlen($caracteres);
|
||||
$clave = '';
|
||||
for($i = 0; $i < 24; $i++) {
|
||||
$clave .= $caracteres[rand(0, $caractereslong - 1)];
|
||||
}
|
||||
echo $clave;
|
||||
}
|
||||
|
||||
/* function removezero(){
|
||||
system("find ./ -type f -empty -print -exec rm -f {} \;");
|
||||
|
||||
Reference in New Issue
Block a user