Subversion Repositories ALCASAR

Rev

Rev 2809 | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
2809 rexy 1
<?php
2
 
3
/*
4
 * Copyright (C) 2019 Alexander Marston (alexander.marston@gmail.com)
5
 *
6
 * This program is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
 */
19
 
3106 rexy 20
// Uncomment to enable error reporting to the screen
21
/*ini_set('display_errors', 1);
22
ini_set('display_startup_errors', 1);
23
ferror_reporting(E_ALL);*/
2809 rexy 24
 
25
// Set the default system Timezone
26
date_default_timezone_set('Europe/London');
27
 
28
// Path of vnstat
29
$vnstat_bin_dir = '/usr/bin/vnstat';
30
 
3106 rexy 31
// Path of config file
32
/*$vnstat_config = '/etc/vnstat.conf';*/
33
 
34
// linear or logarithmic graphs. Uncomment for logarithmic
35
/*$graph_type = 'log';*/
36
 
2809 rexy 37
// Set to true to set your own interfaces
38
$use_predefined_interfaces = false;
39
 
40
if ($use_predefined_interfaces == true) {
41
    $interface_list = ["eth0", "eth1"];
42
 
43
    $interface_name['eth0'] = "Internal #1";
44
    $interface_name['eth1'] = "Internal #2";
45
}