segment the admin gui
[matches/MCTX3420.git] / testing / MCTXWeb / public_html / users / logout.php
1 <?php\r
2 /*\r
3 UserCake Version: 2.0.2\r
4 http://usercake.com\r
5 */\r
6 \r
7 require_once("models/config.php");\r
8 if (!securePage($_SERVER['PHP_SELF'])){die();}\r
9 \r
10 //Log the user out\r
11 if(isUserLoggedIn())\r
12 {\r
13         $loggedInUser->userLogOut();\r
14 }\r
15 \r
16 /*\r
17 if(!empty($websiteUrl)) \r
18 {\r
19         $add_http = "";\r
20         \r
21         if(strpos($websiteUrl,"http://") === false)\r
22         {\r
23                 $add_http = "http://";\r
24         }\r
25         \r
26         header("Location: ".$add_http.$websiteUrl);\r
27         die();\r
28 }\r
29 else\r
30 {*/\r
31         header("Location: login.php");//http://".$_SERVER['HTTP_HOST']);\r
32         die();\r
33 /*}*/   \r
34 \r
35 ?>\r
36 \r

UCC git Repository :: git.ucc.asn.au