You are not logged in.


|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
if (empty($_GET['text']))
trigger_error('Kein Text ausgewählt.', E_USER_ERROR);
// check for illegal strings
if (false !== strpos($_GET['text'], '/etc/passwd'))
trigger_error('Wow, you\'re a super l33t h4x0r, eh?', E_USER_ERROR);
$illegalParts = array('/', '\\');
foreach ($illegalParts as $illegalPart) {
if (false !== strpos($_GET['text'], $illegalPart))
trigger_error('Nicht erlaubte Zeichen gefunden.', E_USER_ERROR);
}
// check file existence
$textfile = realpath($_SERVER['DOCUMENT_ROOT'] . $CFG['path_texts'] . $_GET['text'] . '.inc.php');
if (! file_exists($textfile))
trigger_error('Text nicht gefunden.', E_USER_ERROR);
// load file
include($textfile);
|
-