forked from services/mlmmj-light-web-ecg
Initial commit for release of version 1.0
This commit is contained in:
23
logout.php
23
logout.php
@@ -1,8 +1,29 @@
|
||||
<?php
|
||||
|
||||
require("init.php");
|
||||
unset($_SESSION["domain"]);
|
||||
|
||||
# Audit log
|
||||
$return = audit_log("logout");
|
||||
if (!$return["success"])
|
||||
{
|
||||
# If debug mode is on show error message
|
||||
if ($debug)
|
||||
{
|
||||
echo $return["message"];
|
||||
}
|
||||
else
|
||||
{
|
||||
shell_exec('curl -X POST -H \'Content-Type: application/json\' --data \'{"alias":"ECG Notification Bot","emoji":":ghost:","text":"' . $return["message"] . '"}\' https://chat.ecogood.org/hooks/A' . $rc_webhook);
|
||||
}
|
||||
}
|
||||
|
||||
unset($_SESSION["auth"]);
|
||||
unset($_SESSION["domain"]);
|
||||
unset($_SESSION["array_lists_owned"]);
|
||||
unset($_SESSION["username"]);
|
||||
unset($_SESSION["error_code"]);
|
||||
|
||||
header("Location: index.php");
|
||||
exit();
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user