Location: PHPKode > projects > Axis Groupware > musiclib/unused/tunez/login.php
<?
#include ("tunez.inc.php");
#$action = "eetKoekje"; #force login

if ($action == "eetKoekje")
{
	if ($user_id > 0)
	{
		setCookie("user", $user, time()+999999999); 
		setCookie("pw", $pw, time()+999999999); 
		$loggedIn == "true";
		$skipHtml =  "<META http-equiv=\"Refresh\" content=\"5; url=$HTTP_REFERER\">";

		$title = "Log in / Log Out";
		include ("header.inc.php");
		$messageTitle = "Logging you in...";
		$messageBody = "Lucky you! You just got a cookie!";

	}
	else
	{
		$loggedIn = "false";
		$skipHtml =  "<META http-equiv=\"Refresh\" content=\"5; url=$HTTP_REFERER\">";

		$title = "Log in / Log Out";
		include ("header.inc.php");
		$messageTitle = "Oops!";
		$messageBody = "Something went wrong";

	}

	echo "<p>Click <a href=\"$HTTP_REFERER\">here</a> to go back.</p>";
}

if ($action=="slikKoekjeDoor")
{
	setCookie("user", "", time()+999999999); 
	setCookie("pw", "", time()+999999999); 
	$loggedIn = "false";
	$user= "";
	$pw="";
	$title = "Logging you out...";
	$skipHtml =  "<META http-equiv=\"Refresh\" content=\"5; url=$HTTP_REFERER\">";

	include ("header.inc.php");

	$messageTitle = "Logging you out...";
	$messageBody = "Bye bye!";
}

if (!isset($user) || !isset($pw)) 
{
    $loggedIn = "false";
}

include ("footer.inc.php");


?>
Return current item: Axis Groupware