remove attentionbar. its code is shit and it doesn't belong here tbh.
This commit is contained in:
parent
613c64c97d
commit
d208789fa7
@ -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 +0,0 @@
|
|||||||
- * ( Pasek Atencji ) * -
|
|
@ -774,11 +774,6 @@
|
|||||||
// Number of reports you can create at once.
|
// Number of reports you can create at once.
|
||||||
$config['report_limit'] = 3;
|
$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.
|
// Allow unfiltered HTML in board subtitle. This is useful for placing icons and links.
|
||||||
$config['allow_subtitle_html'] = false;
|
$config['allow_subtitle_html'] = false;
|
||||||
|
|
||||||
|
@ -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…
Reference in New Issue
Block a user