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 |
|
|
|
20 |
// Disable error reporting to screen
|
|
|
21 |
ini_set('display_errors', 0);
|
|
|
22 |
error_reporting(E_ALL);
|
|
|
23 |
|
|
|
24 |
// Set the default system Timezone
|
|
|
25 |
date_default_timezone_set('Europe/London');
|
|
|
26 |
|
|
|
27 |
// Path of vnstat
|
|
|
28 |
$vnstat_bin_dir = '/usr/bin/vnstat';
|
|
|
29 |
|
|
|
30 |
// Set to true to set your own interfaces
|
|
|
31 |
$use_predefined_interfaces = false;
|
|
|
32 |
|
|
|
33 |
if ($use_predefined_interfaces == true) {
|
|
|
34 |
$interface_list = ["eth0", "eth1"];
|
|
|
35 |
|
|
|
36 |
$interface_name['eth0'] = "Internal #1";
|
|
|
37 |
$interface_name['eth1'] = "Internal #2";
|
|
|
38 |
}
|