From ce7534a3bc2daf96ba829373423ac56432319503 Mon Sep 17 00:00:00 2001 From: Techan Date: Mon, 31 Mar 2014 20:14:21 +0200 Subject: [PATCH 1/5] Fix error in conditional operators priority --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index 91abe7e6..dbc59345 100644 --- a/post.php +++ b/post.php @@ -330,7 +330,7 @@ if (isset($_POST['delete'])) { // Check for a file if ($post['op'] && !isset($post['no_longer_require_an_image_for_op'])) { - if (!isset($_FILES['file']['tmp_name']) || $_FILES['file']['tmp_name'] == '' && $config['force_image_op']) + if ((!isset($_FILES['file']['tmp_name']) || $_FILES['file']['tmp_name'] == '') && $config['force_image_op']) error($config['error']['noimage']); } From 826a921a53aa707a6d50907d668364260b211779 Mon Sep 17 00:00:00 2001 From: Techan Date: Mon, 31 Mar 2014 21:12:04 +0200 Subject: [PATCH 2/5] Improve protection from displaying errors to visitors --- inc/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/functions.php b/inc/functions.php index d09a3705..efc0594b 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -215,6 +215,8 @@ function loadConfig() { error_reporting(E_ALL); ini_set('display_errors', true); ini_set('html_errors', false); + } else { + ini_set('display_errors', false); } // Keep the original address to properly comply with other board configurations From 7bf6c97e7868815dc716e3bf58d32895c03408ee Mon Sep 17 00:00:00 2001 From: Techan Date: Mon, 31 Mar 2014 20:20:18 +0200 Subject: [PATCH 3/5] Improve main page template --- templates/themes/basic/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/themes/basic/index.html b/templates/themes/basic/index.html index 6425e0c1..b5afa448 100644 --- a/templates/themes/basic/index.html +++ b/templates/themes/basic/index.html @@ -2,9 +2,12 @@ - + {{ settings.title }} - + {% if config.meta_keywords %}{% endif %} + + {% if config.url_favicon %}{% endif %} + {{ boardlist.top }} From 103a266421347a9b15eeb63c149c20cb773f30cd Mon Sep 17 00:00:00 2001 From: Techan Date: Mon, 31 Mar 2014 20:41:30 +0200 Subject: [PATCH 4/5] Fix custom stylesheets on main page --- templates/themes/basic/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/themes/basic/index.html b/templates/themes/basic/index.html index b5afa448..538ff95f 100644 --- a/templates/themes/basic/index.html +++ b/templates/themes/basic/index.html @@ -8,6 +8,8 @@ {% if config.url_favicon %}{% endif %} + {% if config.default_stylesheet.1 != '' %}{% endif %} + {% if config.font_awesome %}{% endif %} {{ boardlist.top }} From 4dea8c7a59f55aecc5b73b750e8e86ad5ca3aade Mon Sep 17 00:00:00 2001 From: Techan Date: Tue, 1 Apr 2014 21:14:12 +0200 Subject: [PATCH 5/5] Change timezone of news on main page to local timezone --- templates/themes/basic/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/themes/basic/index.html b/templates/themes/basic/index.html index 538ff95f..3376a68f 100644 --- a/templates/themes/basic/index.html +++ b/templates/themes/basic/index.html @@ -29,7 +29,7 @@ {% else %} no subject {% endif %} - — by {{ entry.name }} at {{ entry.time|date(config.post_date) }} + — by {{ entry.name }} at {{ entry.time|date(config.post_date, config.timezone) }}

{{ entry.body }}

{% endfor %}