1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Added option to disable system tab. Thanks @sedgett

This commit is contained in:
billz 2019-11-08 08:20:47 +00:00
parent 68ca768502
commit f8b1f407f7
3 changed files with 6 additions and 2 deletions

View File

@ -30,6 +30,7 @@ define('RASPI_TORPROXY_ENABLED', false);
define('RASPI_CONFAUTH_ENABLED', true); define('RASPI_CONFAUTH_ENABLED', true);
define('RASPI_CHANGETHEME_ENABLED', true); define('RASPI_CHANGETHEME_ENABLED', true);
define('RASPI_VNSTAT_ENABLED', true); define('RASPI_VNSTAT_ENABLED', true);
define('RASPI_SYSTEM_ENABLED', true);
define('RASPI_MONITOR_ENABLED', false); define('RASPI_MONITOR_ENABLED', false);
// Locale settings // Locale settings

View File

@ -34,6 +34,7 @@ $defaults = [
'RASPI_CONFAUTH_ENABLED' => true, 'RASPI_CONFAUTH_ENABLED' => true,
'RASPI_CHANGETHEME_ENABLED' => true, 'RASPI_CHANGETHEME_ENABLED' => true,
'RASPI_VNSTAT_ENABLED' => true, 'RASPI_VNSTAT_ENABLED' => true,
'RASPI_SYSTEM_ENABLED' => true,
'RASPI_MONITOR_ENABLED' => false, 'RASPI_MONITOR_ENABLED' => false,
// Locale settings // Locale settings

View File

@ -161,9 +161,11 @@ if ($_COOKIE['sidebarToggled'] == 'true' ) {
<a class="nav-link" href="index.php?page=data_use"><i class="fas fa-chart-bar fa-fw mr-2"></i><span class="nav-label"><?php echo _("Data usage"); ?></a> <a class="nav-link" href="index.php?page=data_use"><i class="fas fa-chart-bar fa-fw mr-2"></i><span class="nav-label"><?php echo _("Data usage"); ?></a>
</li> </li>
<?php endif; ?> <?php endif; ?>
<li class="nav-item"> <?php if (RASPI_SYSTEM_ENABLED) : ?>
<li class="nav-item">
<a class="nav-link" href="index.php?page=system_info"><i class="fas fa-cube fa-fw mr-2"></i><span class="nav-label"><?php echo _("System"); ?></a> <a class="nav-link" href="index.php?page=system_info"><i class="fas fa-cube fa-fw mr-2"></i><span class="nav-label"><?php echo _("System"); ?></a>
</li> </li>
<?php endif; ?>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="index.php?page=about"><i class="fas fa-info-circle fa-fw mr-2"></i><span class="nav-label"><?php echo _("About RaspAP"); ?></a> <a class="nav-link" href="index.php?page=about"><i class="fas fa-info-circle fa-fw mr-2"></i><span class="nav-label"><?php echo _("About RaspAP"); ?></a>
</li> </li>