📄 config.php
字号:
<?php error_reporting(E_ALL | E_NOTICE); $iface_list = array('eth0', 'eth1'); $iface_title['eth0'] = 'WAN'; $iface_title['eth1'] = 'LAN'; $iface_title['sixxs'] = 'SixXS IPv6'; $vnstat_bin = ''; $data_dir = '/var/lib/vnstat'; $graph_format='png'; define('GRAPH_FONT',dirname(__FILE__).'/msyh.ttf'); define('SVG_FONT', 'Simhei'); define('DEFAULT_COLORSCHEME', 'light'); $colorscheme['light'] = array( 'stylesheet' => 'vnstat.css', 'image_background' => array( 255, 255, 255, 0 ), 'graph_background' => array( 220, 220, 230, 0 ), 'graph_background_2' => array( 205, 205, 220, 0 ), 'grid_stipple_1' => array( 140, 140, 140, 0 ), 'grid_stipple_2' => array( 200, 200, 200, 0 ), 'border' => array( 0, 0, 0, 0 ), 'text' => array( 0, 0, 0, 0 ), 'rx' => array( 190, 190, 20, 50 ), 'rx_border' => array( 40, 80, 40, 90 ), 'tx' => array( 130, 160, 100, 50 ), 'tx_border' => array( 80, 40, 40, 90 ) ); // A red colorscheme based on a contribution by Enrico Tr枚ger $colorscheme['red'] = array( 'stylesheet' => 'vnstat_red.css', 'image_background' => array( 225, 225, 225, 0 ), 'graph_background' => array( 220, 220, 230, 0 ), 'graph_background_2' => array( 205, 205, 220, 0 ), 'grid_stipple_1' => array( 140, 140, 140, 0 ), 'grid_stipple_2' => array( 200, 200, 200, 0 ), 'border' => array( 0, 0, 0, 0 ), 'text' => array( 0, 0, 0, 0 ), 'rx' => array( 190, 20, 20, 50 ), 'rx_border' => array( 80, 40, 40, 90 ), 'tx' => array( 130, 130, 130, 50 ), 'tx_border' => array( 60, 60, 60, 90 ) );?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -