Creation of Agent Area

No checks to to see if user is agent or not.
This commit is contained in:
2020-09-01 02:34:46 +01:00
parent 26da6e7616
commit 48a5249030
8 changed files with 1003 additions and 1 deletions

View File

@@ -15,7 +15,7 @@
$_SESSION['full_name'] = $fname . " " . $lname;
$_SESSION['email'] = $email;
}
function is_signed_in()
{
if (isset($_SESSION['is_signed_in'])) {
@@ -25,6 +25,16 @@
}
}
function is_agent()
{
// Some SQL commands go here
if ($agent_result) {
return true;
} else {
return false;
}
}
function user_exists($db, $uuid)
{
try {