hai ragione...cambia
else $pag=$_SERVER["REQUEST_URI"]."?lang=ita";
con
else $pag=$_SERVER["REQUEST_URI"]."?lang=".$lang;

una grossa svista