mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-29 17:54:29 +01:00
11 lines
361 B
PHP
11 lines
361 B
PHP
|
<?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: /'); }
|
||
|
?>
|