1
0
Fork 0
Dieser Commit ist enthalten in:
DSB 2011-06-10 21:55:32 +00:00
Ursprung 2b21070b1a
Commit f7a7c71f86
1583 geänderte Dateien mit 454759 neuen und 0 gelöschten Zeilen

16
public/flag.php Normale Datei
Datei anzeigen

@ -0,0 +1,16 @@
<?php
//TODO security -> implement whitelist of characters for langId
$country = str_replace(
array('..', "\x00"),
'',
$_GET['langId']
);
$languageDir = realpath(dirname(__FILE__) . '/../application/language');
header('Content-Type: image/gif');
define('DS', DIRECTORY_SEPARATOR);
$image = $languageDir . DS . $country . DS . 'flag.gif';
readfile(realpath($image));