diff --git a/_sakura/components/BBcode.php b/_sakura/components/BBcode.php deleted file mode 100644 index 2a193c5..0000000 --- a/_sakura/components/BBcode.php +++ /dev/null @@ -1,16 +0,0 @@ -data['user_id']); + return Forum\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 7eaf446..851041c 100755 --- a/_sakura/sakura.php +++ b/_sakura/sakura.php @@ -8,7 +8,7 @@ namespace Sakura; // Define Sakura version -define('SAKURA_VERSION', '20151121'); +define('SAKURA_VERSION', '20151122'); define('SAKURA_VLABEL', 'Eminence'); define('SAKURA_COLOUR', '#6C3082'); define('SAKURA_STABLE', false); @@ -31,12 +31,32 @@ if (version_compare(phpversion(), '5.4.0', '<')) { require_once ROOT . '_sakura/vendor/autoload.php'; // Include components -foreach (glob(ROOT . '_sakura/components/*.php') as $component) { - require_once $component; -} +require_once ROOT . '_sakura/components/Bans.php'; +require_once ROOT . '_sakura/components/Comments.php'; +require_once ROOT . '_sakura/components/Config.php'; +require_once ROOT . '_sakura/components/Database.php'; +require_once ROOT . '_sakura/components/File.php'; +require_once ROOT . '_sakura/components/Hashing.php'; +require_once ROOT . '_sakura/components/Main.php'; +require_once ROOT . '_sakura/components/Manage.php'; +require_once ROOT . '_sakura/components/News.php'; +require_once ROOT . '_sakura/components/Payments.php'; +require_once ROOT . '_sakura/components/Permissions.php'; +require_once ROOT . '_sakura/components/Rank.php'; +require_once ROOT . '_sakura/components/Session.php'; +require_once ROOT . '_sakura/components/Template.php'; +require_once ROOT . '_sakura/components/Trick.php'; +require_once ROOT . '_sakura/components/Urls.php'; +require_once ROOT . '_sakura/components/User.php'; +require_once ROOT . '_sakura/components/Users.php'; +require_once ROOT . '_sakura/components/Whois.php'; +require_once ROOT . '_sakura/components/Forum/Forum.php'; +require_once ROOT . '_sakura/components/Forum/Forums.php'; +require_once ROOT . '_sakura/components/Forum/Post.php'; +require_once ROOT . '_sakura/components/Forum/Thread.php'; // Include database extensions -foreach (glob(ROOT . '_sakura/components/database/*.php') as $driver) { +foreach (glob(ROOT . '_sakura/components/DBWrapper/*.php') as $driver) { require_once $driver; } diff --git a/_sakura/templates/yuuno/elements/pagination.tpl b/_sakura/templates/yuuno/elements/pagination.tpl index 54fbf66..f2bc275 100755 --- a/_sakura/templates/yuuno/elements/pagination.tpl +++ b/_sakura/templates/yuuno/elements/pagination.tpl @@ -1,4 +1,4 @@ -{% set paginationSeparator %}{% if '?' in pagination.page %}&{% else %}?{% endif %}{% endset %} +{% set paginationSeparator %}{% if '?' in paginationUrl %}&{% else %}?{% endif %}{% endset %} {% set paginationPage = get.page|default(1) %}