3 UserCake Version: 2.0.2
\r
7 require_once("models/config.php");
\r
8 if (!securePage($_SERVER['PHP_SELF'])){die();}
\r
11 if(isUserLoggedIn())
\r
13 $loggedInUser->userLogOut();
\r
16 if(!empty($websiteUrl))
\r
20 if(strpos($websiteUrl,"http://") === false)
\r
22 $add_http = "http://";
\r
25 header("Location: ".$add_http.$websiteUrl);
\r
30 header("Location: http://".$_SERVER['HTTP_HOST']);
\r