first commit
This commit is contained in:
24
admin/logout.php
Executable file
24
admin/logout.php
Executable file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
// *** Logout the current user.
|
||||
$logoutGoTo = "../index.php";
|
||||
if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
$_SESSION['MM_Username'] = NULL;
|
||||
$_SESSION['MM_UserGroup'] = NULL;
|
||||
unset($_SESSION['MM_Username']);
|
||||
unset($_SESSION['MM_UserGroup']);
|
||||
if ($logoutGoTo != "") {header("Location: $logoutGoTo");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Documento sem título</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user