Location: PHPKode > projects > SimpNews > simpnews/langchk.php
<?php
/***************************************************************************
 * (c)2002-2006 Boesch IT-Consulting (hide@address.com)
 ***************************************************************************/
if (!defined("ginc_read"))
	exit();
if(isset($$langvar))
{
	if(strlen($$langvar)>4)
		unset($$langvar);
}
if(isset($$langvar))
{
	if(!preg_match('/^[a-zA-Z0-9]{1,4}$/',$$langvar))
		unset($$langvar);
}
if(!isset($$langvar) || !$$langvar)
	$act_lang=$default_lang;
else
	$act_lang=$$langvar;
?>
Return current item: SimpNews