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

add globals to select visible services

This commit is contained in:
Emmanuel Geoffray 2017-12-07 19:12:35 +00:00
parent 3228114dd8
commit 3bcf16a3ba
2 changed files with 15 additions and 0 deletions

View File

@ -18,7 +18,12 @@ define('RASPI_OPENVPN_SERVER_CONFIG', '/etc/openvpn/server.conf');
define('RASPI_TORPROXY_CONFIG', '/etc/tor/torrc'); define('RASPI_TORPROXY_CONFIG', '/etc/tor/torrc');
// Optional services, set to true to enable. // Optional services, set to true to enable.
define('RASPI_HOTSPOT_ENABLED', false );
define('RASPI_NETWORK_ENABLED', false );
define('RASPI_DHCP_ENABLED', false );
define('RASPI_OPENVPN_ENABLED', false ); define('RASPI_OPENVPN_ENABLED', false );
define('RASPI_TORPROXY_ENABLED', false ); define('RASPI_TORPROXY_ENABLED', false );
define('RASPI_CONFAUTH_ENABLED', false );
define('RASPI_CHANGETHEME_ENABLED', false );
?> ?>

View File

@ -118,15 +118,21 @@ $theme_url = 'dist/css/' . $theme;
<li> <li>
<a href="index.php?page=wpa_conf"><i class="fa fa-signal fa-fw"></i> Configure WiFi Client</a> <a href="index.php?page=wpa_conf"><i class="fa fa-signal fa-fw"></i> Configure WiFi Client</a>
</li> </li>
<?php if ( RASPI_HOTSPOT_ENABLED ) : ?>
<li> <li>
<a href="index.php?page=hostapd_conf"><i class="fa fa-dot-circle-o fa-fw"></i> Configure Hotspot</a> <a href="index.php?page=hostapd_conf"><i class="fa fa-dot-circle-o fa-fw"></i> Configure Hotspot</a>
</li> </li>
<?php endif; ?>
<?php if ( RASPI_NETWORK_ENABLED ) : ?>
<li> <li>
<a href="index.php?page=network_conf"><i class="fa fa-sitemap fa-fw"></i> Configure Networking</a> <a href="index.php?page=network_conf"><i class="fa fa-sitemap fa-fw"></i> Configure Networking</a>
</li> </li>
<?php endif; ?>
<?php if ( RASPI_DHCP_ENABLED ) : ?>
<li> <li>
<a href="index.php?page=dhcpd_conf"><i class="fa fa-exchange fa-fw"></i> Configure DHCP Server</a> <a href="index.php?page=dhcpd_conf"><i class="fa fa-exchange fa-fw"></i> Configure DHCP Server</a>
</li> </li>
<?php endif; ?>
<?php if ( RASPI_OPENVPN_ENABLED ) : ?> <?php if ( RASPI_OPENVPN_ENABLED ) : ?>
<li> <li>
<a href="index.php?page=openvpn_conf"><i class="fa fa-lock fa-fw"></i> Configure OpenVPN</a> <a href="index.php?page=openvpn_conf"><i class="fa fa-lock fa-fw"></i> Configure OpenVPN</a>
@ -137,12 +143,16 @@ $theme_url = 'dist/css/' . $theme;
<a href="index.php?page=torproxy_conf"><i class="fa fa-eye-slash fa-fw"></i> Configure TOR proxy</a> <a href="index.php?page=torproxy_conf"><i class="fa fa-eye-slash fa-fw"></i> Configure TOR proxy</a>
</li> </li>
<?php endif; ?> <?php endif; ?>
<?php if ( RASPI_CONFAUTH_ENABLED ) : ?>
<li> <li>
<a href="index.php?page=auth_conf"><i class="fa fa-lock fa-fw"></i> Configure Auth</a> <a href="index.php?page=auth_conf"><i class="fa fa-lock fa-fw"></i> Configure Auth</a>
</li> </li>
<?php endif; ?>
<?php if ( RASPI_CHANGETHEME_ENABLED ) : ?>
<li> <li>
<a href="index.php?page=theme_conf"><i class="fa fa-wrench fa-fw"></i> Change Theme</a> <a href="index.php?page=theme_conf"><i class="fa fa-wrench fa-fw"></i> Change Theme</a>
</li> </li>
<?php endif; ?>
<li> <li>
<a href="index.php?page=system_info"><i class="fa fa-cube fa-fw"></i> System</a> <a href="index.php?page=system_info"><i class="fa fa-cube fa-fw"></i> System</a>
</li> </li>