forked from services/mlmmj-light-web-ecg
30 lines
623 B
PHP
30 lines
623 B
PHP
<?php
|
|
|
|
require("init.php");
|
|
|
|
# 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();
|
|
|
|
?>
|