From 8b7dd1accac71242c5d5a6e22792faa0041e538c 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 eb2a468a0917f1aac6af2823aa20bfb4c0861b01 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 c42050671bb7faa689788bc0e986dfe6cbf43089 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 4cc8a0a8b07633d12396004a826938c89bba3ae5 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 9e2b722db6784226b1394ddf957aa9a4a16ac9a9 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 %}