Location: PHPKode > projects > Wiki Web Help > wwh-0.3.8/wwh/handlers/language.php
<?php
	$lang = $_GET['lang'];
	if($lang=='') $lang = $_POST['lang'];
	if(strlen($lang) > 2) return;
	
	if(!preg_match('/[a-z]{2}/',$lang)) exit;
	$json_string = file_get_contents ("../language/$lang.json");
	
	$language = json_decode($json_string);
?>
Return current item: Wiki Web Help