Browse Source

remove attentionbar. its code is shit and it doesn't belong here tbh.

pull/40/head
czaks 10 years ago
parent
commit
d208789fa7
  1. 11
      attentionbar.php
  2. 1
      attentionbar.txt
  3. 5
      inc/config.php
  4. 8
      js/attention-bar.js

11
attentionbar.php

@ -1,11 +0,0 @@
<?php
require_once 'inc/functions.php';
checkBan();
$text = isset($_POST['text']) ? $_POST['text'] : '';
if(strlen($text)>0 && !preg_match('/a href/', $text)) {
file_put_contents("attentionbar.txt",htmlspecialchars($text));
if(strlen($_SERVER['HTTP_REFERER'])>0) { header('Location: ' . $_SERVER['HTTP_REFERER']); }
else { header('Location: /'); }
} else print(file_get_contents("attentionbar.txt"));
return;
?>

1
attentionbar.txt

@ -1 +0,0 @@
- * ( Pasek Atencji ) * -

5
inc/config.php

@ -774,11 +774,6 @@
// Number of reports you can create at once.
$config['report_limit'] = 3;
// Attention Whoring Bar
// REMEMBER TO CHMOD attentionbar.txt PROPERLY
// Oh, and add jQuery in additional_javascript.
$config['attention_bar'] = false;
// Allow unfiltered HTML in board subtitle. This is useful for placing icons and links.
$config['allow_subtitle_html'] = false;

8
js/attention-bar.js

@ -1,8 +0,0 @@
$(document).ready(function(){
$("#attention_bar").click(function(eO){ $("#attention_bar").css("display","none");
$("#attention_bar_form").css("display","block"); });
$.get(configRoot + "attentionbar.txt", function(data) {
$("#attention_bar").html(data);
$("#attention_bar_input").val($("#attention_bar").text());
});
});
Loading…
Cancel
Save