16 lines
466 B
PHP
16 lines
466 B
PHP
<?php
|
|
namespace Misuzu;
|
|
|
|
if(!isset($msz) || !($msz instanceof \Misuzu\MisuzuContext))
|
|
die('Script must be called through the Misuzu route dispatcher.');
|
|
|
|
if(!$msz->authInfo->getPerms('global')->check(Perm::G_CONFIG_MANAGE))
|
|
Template::throwError(403);
|
|
|
|
$hidden = $msz->config->getArray('settings.hidden');
|
|
$vars = $msz->config->getAllValueInfos();
|
|
|
|
Template::render('manage.general.settings', [
|
|
'config_vars' => $vars,
|
|
'config_hidden' => $hidden,
|
|
]);
|