HEX
Server: Apache/2
System: Linux sv1.freethailand.com 2.6.18-410.el5 #1 SMP Wed May 11 06:00:14 EDT 2016 x86_64
User: apache (101)
PHP: 5.3.29
Disabled: symlink,shell_exec,exec,proc_close,proc_open,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,pcntl_exec,proc_get_status,proc_nice,proc_terminate,pclose,ini_alter,virtual,openlog,ini_restore
Upload Files
File: /home/pengthai/domains/pengthaicurry.com/public_html/include/lang.switchlang.inc.php
<?php
	@session_start();
	$backto = $_GET['back'];
 	$base_64 = $backto . str_repeat('=', strlen($backto) % 4);
	$backto = base64_decode($base_64);
	
//ถ้าจะเปลี่ยนภาษาใช้ 
//switchlang.inc.php?lang=TH
//switchlang.inc.php?lang=EN


if($_GET['lang'] != "")
{
	$lang = $_GET['lang'];	
	//เปลี่ยนภาษา
	if($lang == "EN")
	{
		include("lang.english.inc.php");  
		$_SESSION['sess_lang'] = "EN";
	}
	else
	{
		include("lang.thai.inc.php");	
		$_SESSION['sess_lang'] = $lang;
	}

	if($backto != ""){
		echo "<meta http-equiv=\"refresh\" content=\"0;URL=$backto\" />";
	}else{
		echo "<meta http-equiv=\"refresh\" content=\"0;URL=$server_web\" />";
	}
}
else
{
	if($_SESSION['sess_lang'] == "EN"){
		include("lang.english.inc.php");
	}else{
		include("lang.thai.inc.php");	
	}			
}
?>