Add files via upload
This commit is contained in:
12
checkUser.php
Normal file
12
checkUser.php
Normal 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");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user