From 260415fb5f1550dc12a09eac57290802121831ba Mon Sep 17 00:00:00 2001 From: asiekierka Date: Sun, 23 Dec 2012 19:01:59 +0100 Subject: fixed to english --- atencja.php | 10 ---------- atencja.txt | 1 - attentionbar.php | 10 ++++++++++ attentionbar.txt | 1 + inc/config.php | 6 +++--- js/attention-bar.js | 8 ++++++++ js/pasek_atencji.js | 8 -------- templates/attention_bar.html | 10 ++++++++++ templates/pasek_atencji.html | 12 ------------ 9 files changed, 32 insertions(+), 34 deletions(-) delete mode 100644 atencja.php delete mode 100644 atencja.txt create mode 100644 attentionbar.php create mode 100644 attentionbar.txt create mode 100644 js/attention-bar.js delete mode 100644 js/pasek_atencji.js create mode 100644 templates/attention_bar.html delete mode 100644 templates/pasek_atencji.html diff --git a/atencja.php b/atencja.php deleted file mode 100644 index edbfad89..00000000 --- a/atencja.php +++ /dev/null @@ -1,10 +0,0 @@ -0) { - file_put_contents("atencja.txt",$_POST["tekst"]); - if(strlen($_SERVER['HTTP_REFERER'])>0) { header('Location: ' . $_SERVER['HTTP_REFERER']); } - else { header('Location: /'); } - } else print(file_get_contents("atencja.txt")); - return; -?> diff --git a/atencja.txt b/atencja.txt deleted file mode 100644 index 50aa355b..00000000 --- a/atencja.txt +++ /dev/null @@ -1 +0,0 @@ -- * ( Pasek Atencji ) * - diff --git a/attentionbar.php b/attentionbar.php new file mode 100644 index 00000000..e928daae --- /dev/null +++ b/attentionbar.php @@ -0,0 +1,10 @@ +0) { + file_put_contents("attentionbar.txt",$_POST["text"]); + if(strlen($_SERVER['HTTP_REFERER'])>0) { header('Location: ' . $_SERVER['HTTP_REFERER']); } + else { header('Location: /'); } + } else print(file_get_contents("attentionbar.txt")); + return; +?> diff --git a/attentionbar.txt b/attentionbar.txt new file mode 100644 index 00000000..50aa355b --- /dev/null +++ b/attentionbar.txt @@ -0,0 +1 @@ +- * ( Pasek Atencji ) * - diff --git a/inc/config.php b/inc/config.php index 9d4532c5..3fad8857 100644 --- a/inc/config.php +++ b/inc/config.php @@ -500,10 +500,10 @@ // How many reports you can create in the same request. $config['report_limit'] = 3; - // Pasek atencji - // REMEMBER TO CHMOD atencja.txt PROPERLY + // Attention Whoring Bar + // REMEMBER TO CHMOD attentionbar.txt PROPERLY // Oh, and add jQuery in additional_javascript. - $config['pasek_atencji'] = false; + $config['attention_bar'] = false; /* * ==================== * Display settings diff --git a/js/attention-bar.js b/js/attention-bar.js new file mode 100644 index 00000000..52bd68ed --- /dev/null +++ b/js/attention-bar.js @@ -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); + }); +}); diff --git a/js/pasek_atencji.js b/js/pasek_atencji.js deleted file mode 100644 index 26b3b8d9..00000000 --- a/js/pasek_atencji.js +++ /dev/null @@ -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); - }); -}); diff --git a/templates/attention_bar.html b/templates/attention_bar.html new file mode 100644 index 00000000..44afc78e --- /dev/null +++ b/templates/attention_bar.html @@ -0,0 +1,10 @@ +{% if config.attention_bar %} +
+ + + + +{% endif %} diff --git a/templates/pasek_atencji.html b/templates/pasek_atencji.html deleted file mode 100644 index 98f2e29b..00000000 --- a/templates/pasek_atencji.html +++ /dev/null @@ -1,12 +0,0 @@ -{% if config.pasek_atencji %} -
- -
- - - -{% endif %} -- cgit v1.3