attention bar: iteration of fixes
This commit is contained in:
parent
b90aa17dba
commit
c8bccecc23
@ -1,8 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once 'inc/functions.php';
|
require_once 'inc/functions.php';
|
||||||
checkBan();
|
checkBan();
|
||||||
if(@strlen($_POST["text"])>0) {
|
$text = isset($_POST['text']) ? $_POST['text'] : '';
|
||||||
file_put_contents("attentionbar.txt",$_POST["text"]);
|
if(strlen($text)>0 && !preg_match('/a href/', $text)) {
|
||||||
|
file_put_contents("attentionbar.txt",$text);
|
||||||
if(strlen($_SERVER['HTTP_REFERER'])>0) { header('Location: ' . $_SERVER['HTTP_REFERER']); }
|
if(strlen($_SERVER['HTTP_REFERER'])>0) { header('Location: ' . $_SERVER['HTTP_REFERER']); }
|
||||||
else { header('Location: /'); }
|
else { header('Location: /'); }
|
||||||
} else print(file_get_contents("attentionbar.txt"));
|
} else print(file_get_contents("attentionbar.txt"));
|
||||||
|
@ -456,8 +456,11 @@ table.mod.config-editor input[type="text"] {
|
|||||||
|
|
||||||
#attention_bar {
|
#attention_bar {
|
||||||
height: 1.5em;
|
height: 1.5em;
|
||||||
|
max-height: 1.5em;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
#attention_bar_form {
|
#attention_bar_form {
|
||||||
display: none;
|
display: none;
|
||||||
@ -471,8 +474,7 @@ table.mod.config-editor input[type="text"] {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
#attention_bar:hover {
|
#attention_bar:hover {
|
||||||
background-color: #fff;
|
background-color: rgba(100%, 100%, 100%, 0.2);
|
||||||
opacity: 0.8;
|
|
||||||
}
|
}
|
||||||
p.intro.thread-hidden {
|
p.intro.thread-hidden {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
|
Loading…
Reference in New Issue
Block a user