1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00
vichan/atencja.php

11 lines
338 B
PHP
Raw Normal View History

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