removed doubled include

This commit is contained in:
vincent 2025-04-19 10:19:10 +02:00
parent c234790eae
commit eedf607803

View file

@ -5,6 +5,7 @@
*/
include('db.ini.php');
include('random.php');
$uid = filter_var($_POST["uid"], FILTER_SANITIZE_SPECIAL_CHARS);
@ -65,16 +66,5 @@ function createSession($uid){
}
function generateRandomString($length = 32) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[random_int(0, $charactersLength - 1)];
}
return $randomString;
}
?>