-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogout.php
More file actions
26 lines (20 loc) · 781 Bytes
/
logout.php
File metadata and controls
26 lines (20 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
define("INCLUDED", true); //This is for returning a die message if INCLUDED is not defined on any of the template
$AJAX_PAGE = false;
//################ Required Resources ################
$REQUIRED_RESOURCES = array();
//################ Required Files ################
require_once("init.php");
//################ PAGE ACCESS ################
$cms->BannedAccess(true);
eval($cms->SetPageAccess(ACCESS_REGISTERED));
//################ General Variables ################
$page_name[] = array("Logging Out");
//################ Page Functions ################
$UserSelf->Logout($USER['id']);
$REDIRECT_MESSAGE = "You were successfully logged out!";
$REDIRECT_LOCATION = "index.php";
$REDIRECT_INTERVAL = 2000;
$REDIRECT_TYPE = "success";
eval($templates->Redirect());
?>