removed doubled include
This commit is contained in:
parent
c234790eae
commit
eedf607803
1 changed files with 1 additions and 11 deletions
12
login.php
12
login.php
|
@ -5,6 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include('db.ini.php');
|
include('db.ini.php');
|
||||||
|
include('random.php');
|
||||||
|
|
||||||
|
|
||||||
$uid = filter_var($_POST["uid"], FILTER_SANITIZE_SPECIAL_CHARS);
|
$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;
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue