<?php
/*
* Sakura Management
*/
// Declare Namespace
namespace Sakura;
// Define that we are in Management mode
define('SAKURA_MANAGE', true);
// Include components
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) .'_sakura/sakura.php';
// Management pages
$managePages = [
// Moderation
'mod' => [
'desc' => '<span style="color: #0C0;">Moderator</span> actions',
'pages' => [
'index' => [
'title' => 'Index',
'sub' => [
'front-page' => [
'desc' => 'Front Page'
]
],
'message-board' => [
'title' => 'Message Board',
'sub' => []
'reports' => [
'title' => 'Reports',
'banning' => [
'title' => 'Banning',
'warnings' => [
'title' => 'Warnings',
'user-notes' => [
'title' => 'User notes',
'action-logs' => [
'title' => 'Action Logs',
// Administrative
'adm' => [
'desc' => '<span style="color: #C00;">Administrator</span> actions',
'statistics' => [
'title' => 'Statistics',
'general-settings' => [
'title' => 'General Settings',
'users' => [
'title' => 'Users',
'ranks' => [
'title' => 'Ranks',
'permissions' => [
'title' => 'Permissions',
'customise' => [
'title' => 'Customise',
'system' => [
'title' => 'System',
];
// Add page specific things
$renderData['page'] = [
'title' => 'Manage Index',
'pages' => $managePages,
'activepage' => ,
'subs' => ,
'activesub' =>
// Print page contents
print Templates::render('main/index.tpl', $renderData);