-
// php.ini :: allow_url_fopen = Off
-
-
die ('Invalid request.');
-
}
-
$include_file = $_GET['page'];
-
while (stristr ($include_file,
'../')) {
-
$include_file =
str_replace ('../',
'',
$include_file);
-
}
-
// Accept-Language: en-us,en;q=0.8,pt-br;q=0.5,es;q=0.3
-
$lang = split (';', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
-
$lang = split (',', $lang[0]);
-
$path = '/path/to/file/' .
$lang . '/';
-
-
include $path .
$include_file;
-
}