2012-12-23 12:17:38 -05:00
|
|
|
<?php
|
|
|
|
require_once 'inc/functions.php';
|
2012-12-23 13:01:59 -05:00
|
|
|
checkBan();
|
2014-01-05 22:14:51 -05:00
|
|
|
$text = isset($_POST['text']) ? $_POST['text'] : '';
|
|
|
|
if(strlen($text)>0 && !preg_match('/a href/', $text)) {
|
2014-03-27 08:10:53 -04:00
|
|
|
file_put_contents("attentionbar.txt",htmlspecialchars($text));
|
2012-12-23 12:37:44 -05:00
|
|
|
if(strlen($_SERVER['HTTP_REFERER'])>0) { header('Location: ' . $_SERVER['HTTP_REFERER']); }
|
|
|
|
else { header('Location: /'); }
|
2012-12-23 13:01:59 -05:00
|
|
|
} else print(file_get_contents("attentionbar.txt"));
|
2012-12-23 12:37:44 -05:00
|
|
|
return;
|
2012-12-23 12:17:38 -05:00
|
|
|
?>
|