<?php
$langurl = $_GET['lang'];
if (isset($_COOKIE['Idioma'])) {
$lang = $_COOKIE['Idioma'];
}
else
{
$lang = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"],0,2); }
if ($langurl == 'es' || $langurl == 'en')
{
$lang = $langurl;
setcookie('Idioma', $lang, time() + 3600 * 24 * 365); // LINEA 14 }
elseif (!$_COOKIE['Idioma']) {
}
if($lang == 'es')
{
include('./basic/es.php');
}
else
{
include('./basic/en.php');
}
?>
cambie unas cosas, pero el error me parece rarisimo!!:-\