config.php 1.4 KB

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