1
0
Fork 0
MySQLDumper/public/flag.php
2011-06-10 21:55:32 +00:00

16 Zeilen
Kein EOL
381 B
PHP

<?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));