leftypol/attentionbar.php

11 lines
336 B
PHP
Raw Normal View History

2012-12-23 17:17:38 +00:00
<?php
require_once 'inc/functions.php';
2012-12-23 18:01:59 +00:00
checkBan();
if(@strlen($_POST["text"])>0) {
file_put_contents("attentionbar.txt",$_POST["text"]);
2012-12-23 17:37:44 +00:00
if(strlen($_SERVER['HTTP_REFERER'])>0) { header('Location: ' . $_SERVER['HTTP_REFERER']); }
else { header('Location: /'); }
2012-12-23 18:01:59 +00:00
} else print(file_get_contents("attentionbar.txt"));
2012-12-23 17:37:44 +00:00
return;
2012-12-23 17:17:38 +00:00
?>