Location: PHPKode > projects > phpCAMALEO > SetLanguage.php
<?PHP
/***************************************************************************
 *	SetLanguage.php
 *
 *	begin		: March 2005
 *	version		: 14 October 2006
 *	copyright	: (C) 2005,2006 grandolini.net
 *
 *	Set the session variable to change site display language
 *
 ***************************************************************************/
session_start();
if($_SESSION[misc][langforce]=='' && (isset($_GET[lang]) && $_GET[lang]!='')) { $_SESSION[sitelanguage]=$_GET[lang]; }
if((isset($_GET[lang]) && $_GET[lang]!='')) { $_SESSION[sitelanguage]=$_GET[lang]; }
header('Location: '.$_SERVER[HTTP_REFERER]);
?>
Return current item: phpCAMALEO