diff --git a/_sakura/components/Forum.php b/_sakura/components/Forum.php
index 6fddc7c..2163551 100644
--- a/_sakura/components/Forum.php
+++ b/_sakura/components/Forum.php
@@ -3,7 +3,9 @@
* Forum class
*/
-namespace Sakura;
+namespace Sakura\Board;
+
+use Sakura\Database;
/**
* Class Forum
diff --git a/_sakura/components/Forums.php b/_sakura/components/Forums.php
index 4afb597..a49c957 100755
--- a/_sakura/components/Forums.php
+++ b/_sakura/components/Forums.php
@@ -3,7 +3,11 @@
* Discussion Board
*/
-namespace Sakura;
+namespace Sakura\Board;
+
+use Sakura\Main;
+use Sakura\Database;
+use Sakura\User;
/**
* Class Forums
diff --git a/_sakura/components/Post.php b/_sakura/components/Post.php
index 7d888b0..94ac949 100644
--- a/_sakura/components/Post.php
+++ b/_sakura/components/Post.php
@@ -3,7 +3,11 @@
* Post class
*/
-namespace Sakura;
+namespace Sakura\Board;
+
+use Sakura\Main;
+use Sakura\Database;
+use Sakura\User;
/**
* Class Post
diff --git a/_sakura/components/Thread.php b/_sakura/components/Thread.php
index a8cc582..a56caab 100644
--- a/_sakura/components/Thread.php
+++ b/_sakura/components/Thread.php
@@ -3,7 +3,9 @@
* Thread class
*/
-namespace Sakura;
+namespace Sakura\Board;
+
+use Sakura\Database;
/**
* Class Thread
diff --git a/_sakura/components/User.php b/_sakura/components/User.php
index c68313b..c4fda8a 100755
--- a/_sakura/components/User.php
+++ b/_sakura/components/User.php
@@ -191,7 +191,7 @@ class User
// Get user's forum statistics
public function forumStats()
{
- return Forums::getUserStats($this->data['user_id']);
+ return Board\Forums::getUserStats($this->data['user_id']);
}
// Get amount of time since user events using the same format as dates()
diff --git a/_sakura/sakura.php b/_sakura/sakura.php
index c49dc54..3648dfd 100755
--- a/_sakura/sakura.php
+++ b/_sakura/sakura.php
@@ -8,7 +8,7 @@
namespace Sakura;
// Define Sakura version
-define('SAKURA_VERSION', '20151116');
+define('SAKURA_VERSION', '20151117');
define('SAKURA_VLABEL', 'Eminence');
define('SAKURA_COLOUR', '#6C3082');
define('SAKURA_STABLE', false);
diff --git a/_sakura/templates/yuuno/global/master.tpl b/_sakura/templates/yuuno/global/master.tpl
index 2746c47..0dc9e02 100755
--- a/_sakura/templates/yuuno/global/master.tpl
+++ b/_sakura/templates/yuuno/global/master.tpl
@@ -255,8 +255,7 @@
Twitter
YouTube
Steam
- BitBucket
- GitHub
+ GitHub
- Information
diff --git a/public/index.php b/public/index.php
index 1ddc75f..8873f77 100755
--- a/public/index.php
+++ b/public/index.php
@@ -50,7 +50,7 @@ $renderData['news'] = ($forumMode ? null : (new News(Config::getConfig('site_new
$renderData['newsCount'] = Config::getConfig('front_page_news_posts');
-$renderData['forum'] = ($forumMode ? (new Forum()) : null);
+$renderData['forum'] = ($forumMode ? (new Board\Forum()) : null);
$renderData['stats'] = [
'userCount' => Database::count('users', ['password_algo' => ['nologin', '!='], 'rank_main' => ['1', '!=']])[0],
diff --git a/public/posting.php b/public/posting.php
index c053048..82b70d7 100755
--- a/public/posting.php
+++ b/public/posting.php
@@ -20,13 +20,13 @@ $topicId = isset($_GET['t']) ?
$_GET['t'] :
(
isset($_GET['p']) ?
- Forums::getTopicIdFromPostId($_GET['p']) :
+ Board\Forums::getTopicIdFromPostId($_GET['p']) :
0
);
$forumId = isset($_GET['f']) ?
$_GET['f'] :
-Forums::getForumIdFromTopicId($topicId);
+Board\Forums::getForumIdFromTopicId($topicId);
$mode = isset($_GET['f']) ? 'f' : (isset($_GET['t']) ? 't' : (isset($_GET['p']) ? 'p' : null));
@@ -39,7 +39,7 @@ $posting = [
// Check if we're in reply mode
if ($mode != 'f') {
// Attempt to get the topic
- $thread = Forums::getTopic($topicId, true);
+ $thread = Board\Forums::getTopic($topicId, true);
// Prompt an error if the topic doesn't exist
if (!$thread) {
@@ -120,7 +120,7 @@ if ($mode != 'f') {
]);
// Reload the topic
- $thread = Forums::getTopic($topicId, true);
+ $thread = Board\Forums::getTopic($topicId, true);
// If there's no more posts left in the topic delete it as well
if (!count($thread['posts'])) {
@@ -173,7 +173,7 @@ if ($mode != 'f') {
// Check if a post is being made
if (isset($_POST['post'])) {
// Attempt to make the post
- $makePost = Forums::createPost($currentUser->id(), $_POST['subject'], $_POST['text'], $forumId, $topicId, 1, 1, 1);
+ $makePost = Board\Forums::createPost($currentUser->id(), $_POST['subject'], $_POST['text'], $forumId, $topicId, 1, 1, 1);
// Add page specific things
$renderData['page'] = [
diff --git a/public/viewforum.php b/public/viewforum.php
index 0812860..c96ca83 100755
--- a/public/viewforum.php
+++ b/public/viewforum.php
@@ -10,7 +10,7 @@ namespace Sakura;
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) . '_sakura/sakura.php';
// Get the forum's data
-$forum = new Forum(isset($_GET['f']) ? $_GET['f'] : -1);
+$forum = new Board\Forum(isset($_GET['f']) ? $_GET['f'] : -1);
// Initialise templating engine
$template = new Template();
diff --git a/public/viewtopic.php b/public/viewtopic.php
index c067033..44692f7 100755
--- a/public/viewtopic.php
+++ b/public/viewtopic.php
@@ -10,14 +10,14 @@ namespace Sakura;
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) . '_sakura/sakura.php';
// Attempt to get the thread
-$thread = new Thread(
+$thread = new Board\Thread(
isset($_GET['p'])
- ? Forums::getTopicIdFromPostId($_GET['p'])
+ ? Board\Forums::getTopicIdFromPostId($_GET['p'])
: (isset($_GET['t']) ? $_GET['t'] : 0)
);
// And attempt to get the forum
-$forum = new Forum($thread->forum);
+$forum = new Board\Forum($thread->forum);
// Initialise templating engine
$template = new Template();