forked from leftypol/leftypol
pasek atencji ukonczony
This commit is contained in:
parent
89cb25faa9
commit
94e472438c
4 changed files with 25 additions and 10 deletions
12
atencja.php
12
atencja.php
|
@ -1,10 +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: /'); }
|
||||
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;
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue