Selection of edits in the broomcloset
This commit is contained in:
parent
9f34242f55
commit
e26824be2d
5 changed files with 37 additions and 7 deletions
|
@ -41,7 +41,9 @@
|
|||
"20150809",
|
||||
"20150810",
|
||||
"20150811",
|
||||
"20150812"
|
||||
"20150812",
|
||||
"20150813",
|
||||
"20150814"
|
||||
|
||||
]
|
||||
|
||||
|
@ -2000,6 +2002,27 @@
|
|||
"user": "Flashwave"
|
||||
}
|
||||
|
||||
],
|
||||
|
||||
"20150813": [
|
||||
|
||||
{
|
||||
"type": "FIX",
|
||||
"change": "Fixed some broken links on manage.",
|
||||
"user": "Flashwave"
|
||||
},
|
||||
{
|
||||
"type": "ADD",
|
||||
"change": "Add permission check when trying to enter manage.",
|
||||
"user": "Flashwave"
|
||||
}
|
||||
|
||||
],
|
||||
|
||||
"20150814": [
|
||||
|
||||
|
||||
|
||||
]
|
||||
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
namespace Sakura;
|
||||
|
||||
// Define Sakura version
|
||||
define('SAKURA_VERSION', '20150811');
|
||||
define('SAKURA_VERSION', '20150813');
|
||||
define('SAKURA_VLABEL', 'Eminence');
|
||||
define('SAKURA_COLOUR', '#6C3082');
|
||||
define('SAKURA_STABLE', false);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
</div>
|
||||
<div class="footer">
|
||||
<div style="color: {{ sakura.vcolour }};">Sakura b{{ sakura.version }} ({{ sakura.vlabel }}/{{ sakura.vtype }})</div>
|
||||
<div style="color: {{ sakura.vcolour }};">Sakura b{{ sakura.version }} ({{ sakura.vlabel }}/{{ sakura.stable ? 'Stable' : 'Development' }})</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
<meta http-equiv="refresh" content="3; URL={{ page.redirect }}" />
|
||||
{% endif %}
|
||||
<!-- CSS -->
|
||||
<link rel="stylesheet" type="text/css" href="//{{ sakura.content_path }}/global.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ sakura.resources }}/css/manage.css" />
|
||||
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" />
|
||||
<!-- JS -->
|
||||
|
@ -20,9 +19,9 @@
|
|||
<span id="top"></span>
|
||||
<div class="header" id="header">
|
||||
<div class="logo">
|
||||
<a href="//{{ sakura.urls.main }}/manage/">Broom Closet</a> /
|
||||
<a href="//{{ sakura.urls.main }}/manage/{{ page.activepage }}/">{{ page.pages[page.activepage].desc }}</a> /
|
||||
<a href="//{{ sakura.urls.main }}/manage/{{ page.activepage }}/{{ page.activesub }}/">{{ page.pages[page.activepage].subs[page.activesub].desc }}</a>
|
||||
<a href="/manage/">Broom Closet</a> /
|
||||
<a href="/manage/{{ page.activepage }}/">{{ page.pages[page.activepage].desc }}</a> /
|
||||
<a href="/manage/{{ page.activepage }}/{{ page.activesub }}/">{{ page.pages[page.activepage].subs[page.activesub].desc }}</a>
|
||||
</div>
|
||||
<div class="nav">
|
||||
<div class="menu" id="siteNav">
|
||||
|
|
|
@ -12,6 +12,14 @@ define('SAKURA_MANAGE', true);
|
|||
// Include components
|
||||
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) .'_sakura/sakura.php';
|
||||
|
||||
// Make sure user has the permissions to view this
|
||||
if(!Permissions::check('MANAGE', 'USE_MANAGE', Session::$userId, 1)) {
|
||||
|
||||
header('Location: /');
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
// Management pages
|
||||
$managePages = [
|
||||
|
||||
|
|
Reference in a new issue