MMDVMHost-Dashboard/config/config.php

88 lines
3 KiB
PHP
Raw Normal View History

2016-04-30 15:38:12 +02:00
<?php
date_default_timezone_set('UTC');
2016-05-06 22:42:29 +02:00
define("MMDVMLOGPATH", "/mnt/ramdisk/"); // hint: add trailing / !!!
define("MMDVMLOGPREFIX", "MMDVM");
define("MMDVMLOGFILE", MMDVMLOGPATH . MMDVMLOGPREFIX . "-" . date("Y-m-d") . ".log");
2016-05-12 22:36:20 +02:00
define("MMDVMINIPATH", "/etc/mmdvm/"); // hint: add trailing / !!!
define("MMDVMHOSTPATH", "/usr/local/bin/"); // hint: add trailing / !!!
// enter exact path to your log files.
// If your Linux is a MARYLAND-DSTAR-Image, this paths would work.
2016-05-06 22:42:29 +02:00
// Adjust to suit, uncomment correct line, if none of the given distributions fit, customize
// OTHER to suitable paths.
2016-05-12 22:36:20 +02:00
//define("DISTRIBUTION", "MARYLAND");
define("DISTRIBUTION", "WESTERN");
2016-05-06 22:42:29 +02:00
//define("DISTRIBUTION", "DL5DI_DEBIAN");
//define("DISTRIBUTION", "DL5DI_CENTOS");
//define("DISTRIBUTION", "OTHER");
switch (DISTRIBUTION) {
case "MARYLAND":
// Configuration for Maryland-Dstar-Image
define("LOGPATH", "/var/log");
define("CONFIGPATH", "/etc/gateway");
2016-05-06 22:42:29 +02:00
define("DSTARREPEATERLOGPATH", LOGPATH . "/dstarrepeater_1");
define("DSTARREPEATERLOGFILENAME", "DStarRepeater_Repeater-1-");
define("LINKLOGPATH", LOGPATH . "/gateway/Links.log");
define("HRDLOGPATH", LOGPATH . "/gateway/Headers.log");
break;
case "WESTERN":
// Configuration for Western-Dstar-Image
define("LOGPATH", "/var/log");
define("CONFIGPATH", "/etc");
2016-05-06 22:42:29 +02:00
define("DSTARREPEATERLOGPATH", LOGPATH . "/");
define("DSTARREPEATERLOGFILENAME", "DStarRepeater-");
define("LINKLOGPATH", LOGPATH . "/Links.log");
define("HRDLOGPATH", LOGPATH . "/Headers.log");
break;
case "DL5DI_CENTOS":
// Configuration for DL5DI-Installation-packages on CENTOS
define("LOGPATH", "/var/log/dstar");
define("CONFIGPATH", "/etc");
2016-05-06 22:42:29 +02:00
define("DSTARREPEATERLOGPATH", LOGPATH . "/");
define("DSTARREPEATERLOGFILENAME", "DStarRepeater_1-");
define("LINKLOGPATH", LOGPATH . "/Links.log");
define("HRDLOGPATH", LOGPATH . "/Headers.log");
break;
case "DL5DI_DEBIAN":
// Configuration for DL5DI-Installation-packages on DEBIAN
define("LOGPATH", "/var/log/opendv");
define("CONFIGPATH", "/home/opendv/ircddbgateway");
2016-05-06 22:42:29 +02:00
define("DSTARREPEATERLOGPATH", LOGPATH . "/");
define("DSTARREPEATERLOGFILENAME", "DStarRepeater_1-");
define("LINKLOGPATH", LOGPATH . "/Links.log");
define("HRDLOGPATH", LOGPATH . "/Headers.log");
break;
case "OTHER":
// Configuration for all others, please customize
// if necessary
define("LOGPATH", "/var/log");
define("CONFIGPATH", "/etc");
2016-05-06 22:42:29 +02:00
define("DSTARREPEATERLOGPATH", LOGPATH . "/");
define("DSTARREPEATERLOGFILENAME", "DStarRepeater-");
define("LINKLOGPATH", LOGPATH . "/Links.log");
define("HRDLOGPATH", LOGPATH . "/Headers.log");
break;
}
2016-05-06 22:42:29 +02:00
define("CONFIGFILENAME", "ircddbgateway");
define("GATEWAYCONFIGPATH", CONFIGPATH . "/" . CONFIGFILENAME);
2016-05-10 21:50:33 +02:00
// set time to refresh page
2016-05-06 22:42:29 +02:00
define("REFRESHAFTER", "60");
2016-05-10 21:50:33 +02:00
// enables CPU-temperature alert
2016-05-06 22:42:29 +02:00
define("TEMPERATUREALERT", true);
2016-05-10 21:50:33 +02:00
// defines temperature of warning
2016-04-30 19:33:41 +02:00
define("TEMPERATUREHIGHLEVEL", 60);
2016-05-10 21:50:33 +02:00
// enables progress-bars
2016-04-30 19:33:41 +02:00
define("SHOWPROGRESSBARS", true);
2016-05-10 21:50:33 +02:00
// defines number of lines in last heard list
define("LHLINES", 20);
2016-04-30 15:38:12 +02:00
?>