mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
* moved admin_panel_modules to config.php
This commit is contained in:
parent
78454657ca
commit
e3af63bd93
@ -255,6 +255,9 @@ $config = array(
|
|||||||
// when server is offline, it will be checked every time web refreshes, ignoring this variable
|
// when server is offline, it will be checked every time web refreshes, ignoring this variable
|
||||||
'status_interval' => 60,
|
'status_interval' => 60,
|
||||||
|
|
||||||
|
// admin panel
|
||||||
|
'admin_panel_modules' => 'lastlogin,points,coins',
|
||||||
|
|
||||||
// other
|
// other
|
||||||
'anonymous_usage_statistics' => true,
|
'anonymous_usage_statistics' => true,
|
||||||
'email_lai_sec_interval' => 60, // time in seconds between e-mails to one account from lost account interface, block spam
|
'email_lai_sec_interval' => 60, // time in seconds between e-mails to one account from lost account interface, block spam
|
||||||
|
@ -76,12 +76,13 @@ $twig->display('admin.dashboard.html.twig', array(
|
|||||||
));
|
));
|
||||||
|
|
||||||
echo '<div class="row">';
|
echo '<div class="row">';
|
||||||
$config['modules'] = "lastlogin,points,coins";
|
|
||||||
if(isset($config['modules']))
|
$configAdminPanelModules = config('admin_panel_modules');
|
||||||
$config['modules'] = explode(",", $config['modules']);
|
if(isset($configAdminPanelModules))
|
||||||
|
$configAdminPanelModules = explode(',', $configAdminPanelModules);
|
||||||
|
|
||||||
$twig_loader->prependPath(__DIR__ . '/modules/templates');
|
$twig_loader->prependPath(__DIR__ . '/modules/templates');
|
||||||
foreach($config['modules'] as $box) {
|
foreach($configAdminPanelModules as $box) {
|
||||||
$file = __DIR__ . '/modules/' . $box . '.php';
|
$file = __DIR__ . '/modules/' . $box . '.php';
|
||||||
if(file_exists($file)) {
|
if(file_exists($file)) {
|
||||||
include($file);
|
include($file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user