diff --git a/_sakura/changelog.json b/_sakura/changelog.json
index 6648efb..8787f9a 100644
--- a/_sakura/changelog.json
+++ b/_sakura/changelog.json
@@ -59,7 +59,8 @@
"20150903",
"20150904",
"20150905",
- "20150906"
+ "20150906",
+ "20150907"
]
@@ -2548,6 +2549,46 @@
"user": "Flashwave"
}
+ ],
+
+ "20150907": [
+
+ {
+ "type": "FIX",
+ "change": "Fixed cookie notification reappearing after accepting.",
+ "user": "Flashwave"
+ },
+ {
+ "type": "FIX",
+ "change": "Fixed infopage templates not using the new blocks method.",
+ "user": "Flashwave"
+ },
+ {
+ "type": "UPD",
+ "change": "Removed the _developer_data folder, split the SQL structure and data up into two files respectively and moved the Sock Chat auth script to a new directory.",
+ "user": "Flashwave"
+ },
+ {
+ "type": "UPD",
+ "change": "Updated the CloudFlare IPs list.",
+ "user": "Flashwave"
+ },
+ {
+ "type": "FIX",
+ "change": "Fixed newline causing an error in CloudFlare check.",
+ "user": "Flashwave"
+ },
+ {
+ "type": "UPD",
+ "change": "Moved document title setting to templates instead of in the PHP file.",
+ "user": "Flashwave"
+ },
+ {
+ "type": "FIX",
+ "change": "Restyle explosive notifications and make them not explosive.",
+ "user": "Flashwave"
+ }
+
]
}
diff --git a/_sakura/components/Main.php b/_sakura/components/Main.php
index 71e164e..823b4dc 100644
--- a/_sakura/components/Main.php
+++ b/_sakura/components/Main.php
@@ -522,6 +522,13 @@ $errorPage .= '
// Check if IP is in a CloudFlare subnet
foreach($cfhosts as $subnet) {
+ // Check if the subnet isn't empty (git newline prevention)
+ if(strlen($subnet) < 1) {
+
+ continue;
+
+ }
+
// Return true if found
if(self::matchSubnet($ip, $subnet)) {
diff --git a/_sakura/config/cloudflare.ipv4 b/_sakura/config/cloudflare.ipv4
index 12fa8bb..081a71e 100644
--- a/_sakura/config/cloudflare.ipv4
+++ b/_sakura/config/cloudflare.ipv4
@@ -1,14 +1,14 @@
-199.27.128.0/21
-173.245.48.0/20
103.21.244.0/22
103.22.200.0/22
103.31.4.0/22
-141.101.64.0/18
+104.16.0.0/12
108.162.192.0/18
-190.93.240.0/20
+141.101.64.0/18
+162.158.0.0/15
+172.64.0.0/13
+173.245.48.0/20
188.114.96.0/20
+190.93.240.0/20
197.234.240.0/22
198.41.128.0/17
-162.158.0.0/15
-104.16.0.0/12
-172.64.0.0/13
\ No newline at end of file
+199.27.128.0/21
diff --git a/_sakura/config/cloudflare.ipv6 b/_sakura/config/cloudflare.ipv6
index b23db83..aa98c77 100644
--- a/_sakura/config/cloudflare.ipv6
+++ b/_sakura/config/cloudflare.ipv6
@@ -1,5 +1,5 @@
2400:cb00::/32
+2405:8100::/32
+2405:b500::/32
2606:4700::/32
2803:f800::/32
-2405:b500::/32
-2405:8100::/32
\ No newline at end of file
diff --git a/_sakura/sakura.php b/_sakura/sakura.php
index ae8ffa3..b822dc7 100644
--- a/_sakura/sakura.php
+++ b/_sakura/sakura.php
@@ -8,7 +8,7 @@
namespace Sakura;
// Define Sakura version
-define('SAKURA_VERSION', '20150906');
+define('SAKURA_VERSION', '20150907');
define('SAKURA_VLABEL', 'Eminence');
define('SAKURA_COLOUR', '#6C3082');
define('SAKURA_STABLE', false);
@@ -173,15 +173,14 @@ if(!defined('SAKURA_NO_TPL')) {
// Additional render data
$renderData = array_merge($renderData, [
+
'ban' => [
'reason' => $ban['reason'],
'issued' => $ban['issued'],
'expires' => $ban['expires'],
'issuer' => Users::getUser($ban['issuer'])
- ],
- 'page' => [
- 'title' => 'You are banned!'
]
+
]);
Users::logout();
diff --git a/_sakura/templates/yuuno/elements/restricted.tpl b/_sakura/templates/yuuno/elements/restricted.tpl
deleted file mode 100644
index e69de29..0000000
diff --git a/_sakura/templates/yuuno/forum/index.tpl b/_sakura/templates/yuuno/forum/index.tpl
index 62d272b..a7a3700 100644
--- a/_sakura/templates/yuuno/forum/index.tpl
+++ b/_sakura/templates/yuuno/forum/index.tpl
@@ -1,5 +1,7 @@
{% extends 'global/master.tpl' %}
+{% block title %}Forum Listing{% endblock %}
+
{% block content %}
diff --git a/_sakura/templates/yuuno/forum/posting.tpl b/_sakura/templates/yuuno/forum/posting.tpl
index 0c3e784..b8665ec 100644
--- a/_sakura/templates/yuuno/forum/posting.tpl
+++ b/_sakura/templates/yuuno/forum/posting.tpl
@@ -1,5 +1,7 @@
{% extends 'global/master.tpl' %}
+{% block title %}Posting{% endblock %}
+
{% block content %}
diff --git a/_sakura/templates/yuuno/forum/viewforum.tpl b/_sakura/templates/yuuno/forum/viewforum.tpl
index 40799e9..92ac921 100644
--- a/_sakura/templates/yuuno/forum/viewforum.tpl
+++ b/_sakura/templates/yuuno/forum/viewforum.tpl
@@ -1,5 +1,7 @@
{% extends 'global/master.tpl' %}
+{% block title %}Forums / {{ board.forums[0].forum.forum_name }}{% endblock %}
+
{% block content %}
diff --git a/_sakura/templates/yuuno/forum/viewtopic.tpl b/_sakura/templates/yuuno/forum/viewtopic.tpl
index 4f0d7a2..e4cecdd 100644
--- a/_sakura/templates/yuuno/forum/viewtopic.tpl
+++ b/_sakura/templates/yuuno/forum/viewtopic.tpl
@@ -1,5 +1,7 @@
{% extends 'global/master.tpl' %}
+{% block title %}{{ topic.topic_title }}{% endblock %}
+
{% block content %}
diff --git a/_sakura/templates/yuuno/global/information.tpl b/_sakura/templates/yuuno/global/information.tpl
index ac462b8..40d720d 100644
--- a/_sakura/templates/yuuno/global/information.tpl
+++ b/_sakura/templates/yuuno/global/information.tpl
@@ -1,5 +1,7 @@
{% extends 'global/master.tpl' %}
+{% block title %}Information{% endblock %}
+
{% block content %}
diff --git a/_sakura/templates/yuuno/global/master.tpl b/_sakura/templates/yuuno/global/master.tpl
index 52c356b..ed3e107 100644
--- a/_sakura/templates/yuuno/global/master.tpl
+++ b/_sakura/templates/yuuno/global/master.tpl
@@ -3,7 +3,7 @@
-
{{ page.title }}
+
{% block title %}{{ sakura.siteName }}{% endblock %}
@@ -11,7 +11,7 @@
{% if page.redirect %}
-
+
{% endif %}
@@ -157,7 +157,7 @@
"title": sakuraVars.siteName + " uses cookies!",
"text": "Click this if you're OK with that and want to hide this message.",
"img": "FONT:fa-asterisk",
- "link": "javascript:cookieData('set', '"+ sakuraVars.cookie.prefix +"accept_cookies', 'true');notifyClose(this.parentNode.id);"
+ "link": "javascript:cookieData('set', '"+ sakuraVars.cookie.prefix +"accept_cookies', 'true; expires="+ (new Date(2147483647000)).toUTCString() +"');notifyClose(this.parentNode.id);"
});
}
diff --git a/_sakura/templates/yuuno/global/restricted.tpl b/_sakura/templates/yuuno/global/restricted.tpl
index 1724a26..b01da5e 100644
--- a/_sakura/templates/yuuno/global/restricted.tpl
+++ b/_sakura/templates/yuuno/global/restricted.tpl
@@ -1,5 +1,7 @@
{% extends 'global/master.tpl' %}
+{% block title %}Restricted{% endblock %}
+
{% block content %}
diff --git a/_sakura/templates/yuuno/main/authenticate.tpl b/_sakura/templates/yuuno/main/authenticate.tpl
index 400dc88..5836bd9 100644
--- a/_sakura/templates/yuuno/main/authenticate.tpl
+++ b/_sakura/templates/yuuno/main/authenticate.tpl
@@ -1,5 +1,7 @@
{% extends 'global/master.tpl' %}
+{% block title %}Authentication{% endblock %}
+
{% block content %}
{% if sakura.lockAuth %}
Authentication is currently disallowed, try again later.
diff --git a/_sakura/templates/yuuno/main/banned.tpl b/_sakura/templates/yuuno/main/banned.tpl
index b6ec147..7e63715 100644
--- a/_sakura/templates/yuuno/main/banned.tpl
+++ b/_sakura/templates/yuuno/main/banned.tpl
@@ -1,5 +1,7 @@
{% extends 'global/master.tpl' %}
+{% block title %}You are banned!{% endblock %}
+
{% block content %}
diff --git a/_sakura/templates/yuuno/main/faq.tpl b/_sakura/templates/yuuno/main/faq.tpl
index c20cb00..c4df39f 100644
--- a/_sakura/templates/yuuno/main/faq.tpl
+++ b/_sakura/templates/yuuno/main/faq.tpl
@@ -1,5 +1,7 @@
{% extends 'global/master.tpl' %}
+{% block title %}Frequently Asked Questions{% endblock %}
+
{% block content %}
diff --git a/_sakura/templates/yuuno/main/forgotpassword.tpl b/_sakura/templates/yuuno/main/forgotpassword.tpl
index d4f5620..0910638 100644
--- a/_sakura/templates/yuuno/main/forgotpassword.tpl
+++ b/_sakura/templates/yuuno/main/forgotpassword.tpl
@@ -1,5 +1,7 @@
{% extends 'global/master.tpl' %}
+{% block title %}Forgot Password{% endblock %}
+
{% block content %}
Forgot Password
diff --git a/_sakura/templates/yuuno/main/infopage.tpl b/_sakura/templates/yuuno/main/infopage.tpl
index c401a3e..80bc478 100644
--- a/_sakura/templates/yuuno/main/infopage.tpl
+++ b/_sakura/templates/yuuno/main/infopage.tpl
@@ -1,7 +1,11 @@
-{% include 'global/header.tpl' %}
+{% extends 'global/master.tpl' %}
+
+{% block title %}{% if page.title %}{{ page.title }}{% else %}Not found!{% endif %}{% endblock %}
+
+{% block content %}
-{% include 'global/footer.tpl' %}
+{% endblock %}
diff --git a/_sakura/templates/yuuno/main/memberlist.tpl b/_sakura/templates/yuuno/main/memberlist.tpl
index 4fd42f5..7228f18 100644
--- a/_sakura/templates/yuuno/main/memberlist.tpl
+++ b/_sakura/templates/yuuno/main/memberlist.tpl
@@ -1,10 +1,19 @@
{% extends 'global/master.tpl' %}
+{% set rankTitle %}
+{% if page.notfound %}Not found{% else %}{% if not page.active %}All members{% else %}{{ page.ranks[page.active].name }}{% if page.ranks[page.active].multi %}s{% endif %}{% endif %}{% endif %}
+{% endset %}
+
+{% set rankDescription %}
+{% if page.notfound %}The requested rank could not be found!{% else %}{% if not page.active %}The entire user list.{% else %}{{ page.ranks[page.active].description }}{% endif %}{% endif %}
+{% endset %}
+
+{% block title %}{{ rankTitle }}{% endblock %}
+
{% block content %}
- {% if session.checkLogin %}
-
- {% else %}
- {% include 'elements/restricted.tpl' %}
- {% endif %}
{% endblock %}
diff --git a/_sakura/templates/yuuno/main/news.tpl b/_sakura/templates/yuuno/main/news.tpl
index cc3a348..4d1f5c8 100644
--- a/_sakura/templates/yuuno/main/news.tpl
+++ b/_sakura/templates/yuuno/main/news.tpl
@@ -1,5 +1,7 @@
{% extends 'global/master.tpl' %}
+{% block title %}{% if page.view_post %}{{ newsPosts[0].title }}{% elseif newsPosts|length < 1 %}Post does not exist!{% else %}News{% endif %}{% endblock %}
+
{% block content %}
diff --git a/_sakura/templates/yuuno/main/premiumcomplete.tpl b/_sakura/templates/yuuno/main/premiumcomplete.tpl
index c857cee..a83ecc3 100644
--- a/_sakura/templates/yuuno/main/premiumcomplete.tpl
+++ b/_sakura/templates/yuuno/main/premiumcomplete.tpl
@@ -1,5 +1,7 @@
{% extends 'global/master.tpl' %}
+{% block title %}Purchase complete!{% endblock %}
+
{% block content %}
Thank you for your contribution!
diff --git a/_sakura/templates/yuuno/main/search.tpl b/_sakura/templates/yuuno/main/search.tpl
index 03361b5..50e37ab 100644
--- a/_sakura/templates/yuuno/main/search.tpl
+++ b/_sakura/templates/yuuno/main/search.tpl
@@ -1,5 +1,7 @@
{% extends 'global/master.tpl' %}
+{% block title %}Search{% endblock %}
+
{% block content %}
diff --git a/_sakura/templates/yuuno/main/settings.tpl b/_sakura/templates/yuuno/main/settings.tpl
index 3cffde6..6eaffc7 100644
--- a/_sakura/templates/yuuno/main/settings.tpl
+++ b/_sakura/templates/yuuno/main/settings.tpl
@@ -1,5 +1,7 @@
{% extends 'global/master.tpl' %}
+{% block title %}{{ page.category }} / {{ page.mode }}{% endblock %}
+
{% block content %}
@@ -7,7 +9,7 @@
- {{ page.title }}
+ {{ page.category }} / {{ page.mode }}
{% for descline in page.description %}
diff --git a/_sakura/templates/yuuno/main/support.tpl b/_sakura/templates/yuuno/main/support.tpl
index e32c60a..4f8770a 100644
--- a/_sakura/templates/yuuno/main/support.tpl
+++ b/_sakura/templates/yuuno/main/support.tpl
@@ -1,5 +1,7 @@
{% extends 'global/master.tpl' %}
+{% block title %}Support {{ sakura.siteName }}{% endblock %}
+
{% block content %}
{% if page.fail %}