HTML interesse |
|
<?php
switch($_GET["lang"]){
case 'EN':
include_once('lang/lang_' . $_GET['lang'] . '.php');
break;
case 'NE':
include_once('lang/lang_' . $_GET['lang'] . '.php');
break;
default:
include_once('lang/lang_' . $_GET['lang'] . '.php');
break;
}
?>
<?php switch($_GET["lang"]){ case 'EN': include_once('lang/lang_' . $_GET['lang'] . '.php'); break; case 'NE': include_once('lang/lang_' . $_GET['lang'] . '.php'); break; default: include_once('lang/lang_' . $_GET['lang'] . '.php'); break; } ?>
al zou ik zelf dit doen (makkelijker te bewerken, en de default zet je in de else):
<?php
$lang = Array ('NE', 'EN', 'FR');
if (in_array($_GET["lang"], $lang)){
include_once('lang/lang_' . $_GET['lang'] . '.php');
}
else{
include_once('lang/lang_EN.php');
}
?>
<?php $lang = Array ('NE', 'EN', 'FR'); include_once('lang/lang_' . $_GET['lang'] . '.php'); } else{ include_once('lang/lang_EN.php'); } ?>
|