<?

$replace_this = array("/","?L=0","?L=2");


$path = str_replace($replace_this,"",$_SERVER['REQUEST_URI']);

if (strlen($path) == 0) {

$path = 'index.html';

}

//echo $path;

echo '<a href="'.$path.'?L=0">English</a> | <a href="'.$path.'?L=1">Espaņol</a> | <a href="'.$path.'?L=2">Bahasa</a>';

?>