Location: PHPKode > projects > RicarGBooK > change_lang.php
<?php
//---------------------------------------------------------------------
//                 RicarGBooK 1.2
//Written by: Adriel Ricardo Torres aka RicarDooM
//Website: http://ricargbook.adrielmedia.com
//Version: 1.2.0
//---------------------------------------------------------------------

//---------------------------------------------------------------------
//This program is free software; you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation.
//---------------------------------------------------------------------

$id = '';
$lang = '';

if ($_POST) {
	$lang = htmlentities($_POST['lang'], ENT_QUOTES);
	$id = htmlentities($_POST['id'], ENT_QUOTES);

	setcookie("lang",$lang,time()+480000);

	if ($id == 'sign') {

		?>
		<script type="text/javascript">
		location.href="sign.php"
		</script>
		<?
	} else {

		?>
		<script type="text/javascript">
		location.href="index.php"
		</script>
		<?
	}
}

?>
Return current item: RicarGBooK