view _xampp/langsettings.php @ 3:f196939ccc03

error handle and alert feedback to user. If error occurs, user'll not be halted by the loading page and sections_revisions will recovery to previous version.
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 26 Jan 2015 12:19:39 +0100
parents b12c99b7c3f0
children
line wrap: on
line source

<?php
	$lang=@file_get_contents("lang.tmp");
	@include("lang/languages.php"); 
	@include("lang/en.php"); 
	@include("lang/$lang.php"); 
	if($lang=="zh")
	{
        	header("Content-Type: text/html; charset=gb2312");
	}
	else if($lang=="jp")
	{
       		header("Content-Type: text/html; charset=shift-jis");
	}

?>