Skip to content

Instantly share code, notes, and snippets.

@tomefer
Created November 30, 2011 08:28
Show Gist options
  • Save tomefer/1408431 to your computer and use it in GitHub Desktop.
Save tomefer/1408431 to your computer and use it in GitHub Desktop.
WTF is this shit?
<?php
if($_GET['lan']){
$_SESSION["idioma_s"]=$_GET["lan"];
}
$lg=$_SESSION["idioma_s"];
if($lg=="ESP" ||$lg=="ENG"){
include($lg.”.inc.php”);
}
else{
$lg=”ESP”;include($lg.”.inc.php”);
}
?>
@tomefer
Copy link
Author

tomefer commented Nov 30, 2011

Pero a ti este te rula en tu pc?
Igual es que tienes lo warnings desactivados o algo, esq eso intenta incluir ESP.inc.php en /lib/ y tal archivo no existe...

@jiglesiasabio
Copy link

En general funciona todo (ya lo hacía el viernes)

imagino que no me saldrán los warnigns por tenerlos desactivados...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment