From 94e472438c1ae917a4b18d7a781459c0d226c4b8 Mon Sep 17 00:00:00 2001 From: asiekierka Date: Sun, 23 Dec 2012 18:37:44 +0100 Subject: pasek atencji ukonczony --- atencja.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'atencja.php') diff --git a/atencja.php b/atencja.php index 34737c22..edbfad89 100644 --- a/atencja.php +++ b/atencja.php @@ -1,10 +1,10 @@ 0) file_put_contents("atencja.txt",$_POST["atencja"]); - if(strlen($_SERVER['HTTP_REFERER'])>0) { header('Location: ' . $_SERVER['HTTP_REFERER']); } - else { header('Location: /'); } + if(@strlen($_POST["tekst"])>0) { + file_put_contents("atencja.txt",$_POST["tekst"]); + if(strlen($_SERVER['HTTP_REFERER'])>0) { header('Location: ' . $_SERVER['HTTP_REFERER']); } + else { header('Location: /'); } + } else print(file_get_contents("atencja.txt")); + return; ?> -- cgit v1.3