Creation of Agent Area
No checks to to see if user is agent or not.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user