mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-30 18:24:29 +01:00
11 lines
336 B
PHP
11 lines
336 B
PHP
<?php
|
|
require_once 'inc/functions.php';
|
|
checkBan();
|
|
if(@strlen($_POST["text"])>0) {
|
|
file_put_contents("attentionbar.txt",$_POST["text"]);
|
|
if(strlen($_SERVER['HTTP_REFERER'])>0) { header('Location: ' . $_SERVER['HTTP_REFERER']); }
|
|
else { header('Location: /'); }
|
|
} else print(file_get_contents("attentionbar.txt"));
|
|
return;
|
|
?>
|