fixed to english
This commit is contained in:
parent
94e472438c
commit
260415fb5f
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
require_once 'inc/functions.php';
|
require_once 'inc/functions.php';
|
||||||
checkBan(); // Wazne!
|
checkBan();
|
||||||
if(@strlen($_POST["tekst"])>0) {
|
if(@strlen($_POST["text"])>0) {
|
||||||
file_put_contents("atencja.txt",$_POST["tekst"]);
|
file_put_contents("attentionbar.txt",$_POST["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("atencja.txt"));
|
} else print(file_get_contents("attentionbar.txt"));
|
||||||
return;
|
return;
|
||||||
?>
|
?>
|
|
@ -500,10 +500,10 @@
|
||||||
// How many reports you can create in the same request.
|
// How many reports you can create in the same request.
|
||||||
$config['report_limit'] = 3;
|
$config['report_limit'] = 3;
|
||||||
|
|
||||||
// Pasek atencji
|
// Attention Whoring Bar
|
||||||
// REMEMBER TO CHMOD atencja.txt PROPERLY
|
// REMEMBER TO CHMOD attentionbar.txt PROPERLY
|
||||||
// Oh, and add jQuery in additional_javascript.
|
// Oh, and add jQuery in additional_javascript.
|
||||||
$config['pasek_atencji'] = false;
|
$config['attention_bar'] = false;
|
||||||
/*
|
/*
|
||||||
* ====================
|
* ====================
|
||||||
* Display settings
|
* Display settings
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
$(document).ready(function(){
|
||||||
|
$("#attention_bar").click(function(eO){ $("#attention_bar").css("display","none");
|
||||||
|
$("#attention_bar_form").css("display","block"); });
|
||||||
|
$.get("/attentionbar.php", function(data) {
|
||||||
|
$("#attention_bar").text(data);
|
||||||
|
$("#attention_bar_input").val(data);
|
||||||
|
});
|
||||||
|
});
|
|
@ -1,8 +0,0 @@
|
||||||
$(document).ready(function(){
|
|
||||||
$("#pasek_atencji").click(function(eO){ $("#pasek_atencji").css("display","none");
|
|
||||||
$("#pasek_atencji_forma").css("display","block"); });
|
|
||||||
$.get("/atencja.php", function(data) {
|
|
||||||
$("#pasek_atencji").text(data);
|
|
||||||
$("#pasek_atencji_input").val(data);
|
|
||||||
});
|
|
||||||
});
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
{% if config.attention_bar %}
|
||||||
|
<div id="attention_bar" style="height: 1.5em; width: 100%; padding: 0; margin: 0; text-align: center; display: block;></div>
|
||||||
|
<form method="post" action="/attentionbar.php" id="attention_bar_form" style="display: none; padding: 0; margin: 0;">
|
||||||
|
<input id="attention_bar_input" name="text" style="width: 100%; padding: 0; margin: 0; text-align: center;" value="" type="text">
|
||||||
|
</form>
|
||||||
|
<style>
|
||||||
|
#attention_bar:hover { background-color: #fff; opacity: 0.8; }
|
||||||
|
</style>
|
||||||
|
<script type="text/javascript" src="/js/attention-bar.js"></script>
|
||||||
|
{% endif %}
|
|
@ -1,12 +0,0 @@
|
||||||
{% if config.pasek_atencji %}
|
|
||||||
<div id="pasek_atencji" style="height: 1.5em; width: 100%; padding: 0; margin: 0; text-align: center; display: block; onclick="pasekAtencjiKliku();">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<form method="post" action="/atencja.php" id="pasek_atencji_forma" style="display: none; padding: 0; margin: 0;">
|
|
||||||
<input id="pasek_atencji_input" name="tekst" style="width: 100%; padding: 0; margin: 0; text-align: center;" value="" type="text">
|
|
||||||
</form>
|
|
||||||
<style>
|
|
||||||
#pasek_atencji:hover { background-color: #fff; opacity: 0.8; }
|
|
||||||
</style>
|
|
||||||
<script type="text/javascript" src="/js/pasek_atencji.js"></script>
|
|
||||||
{% endif %}
|
|
Loading…
Reference in New Issue