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

Renamed vnstat.php to bandwidth.php.

Disabled bandwidth page by default.

Signed-off-by: D9ping <D9ping@users.noreply.github.com>
This commit is contained in:
D9ping 2018-09-11 16:15:31 +02:00
parent 7c3820d9ab
commit 23d2718854
5 changed files with 11 additions and 9 deletions

View File

@ -3,9 +3,10 @@ include_once( 'includes/status_messages.php' );
/** /**
* Generate html output for tab with vnstat traffic amount information. * Generate html output for tab with charts and datatables
* with vnstat bandwidth use information.
*/ */
function DisplayVnstat(&$extraFooterScripts) function DisplayBandwidth(&$extraFooterScripts)
{ {
?> ?>
<div class="row"> <div class="row">

View File

@ -26,7 +26,7 @@ define('RASPI_OPENVPN_ENABLED', false );
define('RASPI_TORPROXY_ENABLED', false ); 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', false );
// Locale settings // Locale settings
define('LOCALE_ROOT', 'locale'); define('LOCALE_ROOT', 'locale');

View File

@ -33,7 +33,7 @@ include_once( 'includes/system.php' );
include_once( 'includes/configure_client.php' ); include_once( 'includes/configure_client.php' );
include_once( 'includes/networking.php' ); include_once( 'includes/networking.php' );
include_once( 'includes/themes.php' ); include_once( 'includes/themes.php' );
include_once( 'includes/vnstat.php' ); include_once( 'includes/bandwidth.php' );
$output = $return = 0; $output = $return = 0;
$page = $_GET['page']; $page = $_GET['page'];
@ -158,7 +158,7 @@ $theme_url = 'dist/css/'.htmlspecialchars($theme, ENT_QUOTES);
<?php endif; ?> <?php endif; ?>
<?php if ( RASPI_VNSTAT_ENABLED ) : ?> <?php if ( RASPI_VNSTAT_ENABLED ) : ?>
<li> <li>
<a href="index.php?page=vnstat"><i class="fa fa-bar-chart fa-fw"></i> <?php echo _("Bandwidth"); ?></a> <a href="index.php?page=bandwidth"><i class="fa fa-bar-chart fa-fw"></i> <?php echo _("Bandwidth"); ?></a>
</li> </li>
<?php endif; ?> <?php endif; ?>
<li> <li>
@ -214,8 +214,8 @@ $extraFooterScripts = array();
case "theme_conf": case "theme_conf":
DisplayThemeConfig(); DisplayThemeConfig();
break; break;
case "vnstat": case "bandwidth":
DisplayVnstat($extraFooterScripts); DisplayBandwidth($extraFooterScripts);
break; break;
case "system_info": case "system_info":
DisplaySystem(); DisplaySystem();

View File

@ -9,7 +9,7 @@ function update_system_packages() {
function install_dependencies() { function install_dependencies() {
install_log "Installing required packages" install_log "Installing required packages"
sudo apt-get install lighttpd $php_package git hostapd dnsmasq vnstat || install_error "Unable to install dependencies" sudo apt-get install lighttpd $php_package git hostapd dnsmasq || install_error "Unable to install dependencies"
} }
install_raspap install_raspap

View File

@ -82,4 +82,5 @@
ShowBandwidthChartHandler(); ShowBandwidthChartHandler();
}); });
})(jQuery); })(jQuery);