Browse Source

pasek atencji dodany w php

pull/40/head
asiekierka 12 years ago
parent
commit
89cb25faa9
  1. 10
      atencja.php
  2. 1
      atencja.txt

10
atencja.php

@ -0,0 +1,10 @@
<?php
require_once 'inc/functions.php';
checkBan(); // Wazne!
// Zwroc stare dane atencji
print file_get_contents("atencja.txt");
// inb4 XSS
if(strlen($_POST["atencja"])>0) file_put_contents("atencja.txt",$_POST["atencja"]);
if(strlen($_SERVER['HTTP_REFERER'])>0) { header('Location: ' . $_SERVER['HTTP_REFERER']); }
else { header('Location: /'); }
?>

1
atencja.txt

@ -0,0 +1 @@
- * ( Pasek Atencji ) * -
Loading…
Cancel
Save