This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/manage/index.php

159 lines
2.6 KiB
PHP
Raw Normal View History

2015-04-30 14:12:49 +00:00
<?php
/*
* Sakura Management
*/
// Declare Namespace
namespace Sakura;
2015-04-30 23:01:01 +00:00
// Define that we are in Management mode
define('SAKURA_MANAGE', true);
2015-04-30 14:12:49 +00:00
// Include components
2015-04-30 23:01:01 +00:00
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',
'sub' => []
],
'banning' => [
'title' => 'Banning',
'sub' => []
],
'warnings' => [
'title' => 'Warnings',
'sub' => []
],
'user-notes' => [
'title' => 'User notes',
'sub' => []
],
'action-logs' => [
'title' => 'Action Logs',
'sub' => []
]
]
],
// Administrative
'adm' => [
'desc' => '<span style="color: #C00;">Administrator</span> actions',
'pages' => [
'statistics' => [
'title' => 'Statistics',
'sub' => []
],
'general-settings' => [
'title' => 'General Settings',
'sub' => []
],
'users' => [
'title' => 'Users',
'sub' => []
],
'ranks' => [
'title' => 'Ranks',
'sub' => []
],
'permissions' => [
'title' => 'Permissions',
'sub' => []
],
'customise' => [
'title' => 'Customise',
'sub' => []
],
'system' => [
'title' => 'System',
'sub' => []
]
]
]
];
// Add page specific things
$renderData['page'] = [
'title' => 'Manage Index',
'pages' => $managePages,
'activepage' => ,
'subs' => ,
'activesub' =>
];
2015-04-30 14:12:49 +00:00
// Print page contents
2015-04-30 23:01:01 +00:00
print Templates::render('main/index.tpl', $renderData);