Add files via upload

This commit is contained in:
NikolaiDerDeutsche
2023-12-03 00:06:49 +01:00
committed by GitHub
commit ebe454e805
6 changed files with 183 additions and 0 deletions

12
checkUser.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
if(isset($_COOKIE["userID"]) && isset($_COOKIE["user"])) {
$get_user_password->execute([$_COOKIE["userID"]]);
$userCheck = $get_user_password->fetch();
if(crypt($userCheck["password"],$userCheck["username"]) !== $_COOKIE["user"]) {
header("Location: /exit.php");
}
}
else {
header("Location: /exit.php");
}
?>