Location: PHPKode > projects > phpCAMALEO > index.php
<?php 
/***************************************************************************
 *	index.php
 *
 *	begin		: June 2004
 *	version		: 20 October 2006
 *	copyright	: (C) 2004,2006 grandolini.net
 *
 *	Initial page to load only one time
 *
 ***************************************************************************/
if(!file_exists('private/Host.inc'))
{
	header('Location: install/Setup.php');
	die;
	#-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
}
#
include_once('Session.php');
#
#----------------------------------------------------------
if(isset($_GET[act]) && $_GET[act]=='logout')
{
	include_once($_SERVER[DOCUMENT_ROOT].$_SESSION[misc][folder].'private/Stat_logoff.php');
	unset($_SESSION);
}
///include('common/includes/PrepareHttp.php');
#----------------------------------------------------------
if(isset($_GET[loadpage]) && $_GET[loadpage]!='' && $_GET['switch'])
{ 
	header('Location: '.$_GET[loadpage].'?switch='.$_GET['switch']);
	die;
}
#----------------------------------------------------------
if(isset($_GET[loadpage]) && $_GET[loadpage]!='')
{
	header('Location: '.$_GET[loadpage]);
	die;
}
#----------------------------------------------------------
if($USER_ID!='')
{
	header('Location: LoadPage.php?page=welcomer');
	die;
}
else
{
	header('Location: LoadPage.php?page=welcome');
	die;
}
#----------------------------------------------------------
?>
Return current item: phpCAMALEO