Initial commit for release of version 1.0

This commit is contained in:
2021-08-12 22:55:38 +02:00
parent b9a88906ce
commit 9db6477952
70 changed files with 415 additions and 2129 deletions

View File

@@ -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();
?>