diff options
Diffstat (limited to 'atencja.php')
| -rw-r--r-- | atencja.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/atencja.php b/atencja.php new file mode 100644 index 00000000..34737c22 --- /dev/null +++ b/atencja.php @@ -0,0 +1,10 @@ +<?php + require_once 'inc/functions.php'; + checkBan(); // Wazne! + // Zwroc stare dane atencji + print file_get_contents("atencja.txt"); + // inb4 XSS + if(strlen($_POST["atencja"])>0) file_put_contents("atencja.txt",$_POST["atencja"]); + if(strlen($_SERVER['HTTP_REFERER'])>0) { header('Location: ' . $_SERVER['HTTP_REFERER']); } + else { header('Location: /'); } +?> |
