1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 08:50:59 +01:00
vichan/attentionbar.php
2012-12-23 19:01:59 +01:00

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;
?>