diff options
| author | asiekierka <asiekierka@gmail.com> | 2012-12-23 18:17:38 +0100 |
|---|---|---|
| committer | asiekierka <asiekierka@gmail.com> | 2012-12-23 18:17:38 +0100 |
| commit | 89cb25faa900d87777b137a6f8cd565505ba5d8f (patch) | |
| tree | 2e263974656f9673146cd8b563c7c2c7718b4373 | |
| parent | 81e0f55b0059ed39cceb31777d3c8d8565bb8386 (diff) | |
pasek atencji dodany w php
| -rw-r--r-- | atencja.php | 10 | ||||
| -rw-r--r-- | atencja.txt | 1 |
2 files changed, 11 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: /'); } +?> diff --git a/atencja.txt b/atencja.txt new file mode 100644 index 00000000..50aa355b --- /dev/null +++ b/atencja.txt @@ -0,0 +1 @@ +- * ( Pasek Atencji ) * - |
