commenting and code beautifying

This commit is contained in:
dg9vh 2016-05-06 22:42:29 +02:00
parent 18c96124ce
commit c15b001426

View file

@ -1,28 +1,28 @@
<?php <?php
date_default_timezone_set('UTC'); date_default_timezone_set('UTC');
define("REPEATERCALLSIGN","DG9VH"); define("REPEATERCALLSIGN", "DG9VH");
define("MMDVMLOGPATH","/mnt/ramdisk/"); // hint: add trailing / !!! define("MMDVMLOGPATH", "/mnt/ramdisk/"); // hint: add trailing / !!!
define("MMDVMLOGPREFIX","MMDVM"); define("MMDVMLOGPREFIX", "MMDVM");
define("MMDVMLOGFILE",MMDVMLOGPATH . MMDVMLOGPREFIX . "-" . date("Y-m-d") . ".log"); define("MMDVMLOGFILE", MMDVMLOGPATH . MMDVMLOGPREFIX . "-" . date("Y-m-d") . ".log");
// enter exact path to your log files. // enter exact path to your log files.
// If your Linux is a MARYLAND-DSTAR-Image, this paths would work. // If your Linux is a MARYLAND-DSTAR-Image, this paths would work.
// Adjust to suit, uncomment correct line, if no line is uncommented, customize // Adjust to suit, uncomment correct line, if none of the given distributions fit, customize
// else-path to suitable paths. // OTHER to suitable paths.
define("DISTRIBUTION","MARYLAND"); define("DISTRIBUTION", "MARYLAND");
//define("DISTRIBUTION","WESTERN"); //define("DISTRIBUTION", "WESTERN");
//define("DISTRIBUTION","DL5DI_DEBIAN"); //define("DISTRIBUTION", "DL5DI_DEBIAN");
//define("DISTRIBUTION","DL5DI_CENTOS"); //define("DISTRIBUTION", "DL5DI_CENTOS");
//define("DISTRIBUTION","OTHER"); //define("DISTRIBUTION", "OTHER");
switch (DISTRIBUTION) { switch (DISTRIBUTION) {
case "MARYLAND": case "MARYLAND":
// Configuration for Maryland-Dstar-Image // Configuration for Maryland-Dstar-Image
define("LOGPATH", "/var/log"); define("LOGPATH", "/var/log");
define("CONFIGPATH", "/etc/gateway"); define("CONFIGPATH", "/etc/gateway");
define("DSTARREPEATERLOGPATH", LOGPATH. "/dstarrepeater_1"); define("DSTARREPEATERLOGPATH", LOGPATH . "/dstarrepeater_1");
define("DSTARREPEATERLOGFILENAME", "DStarRepeater_Repeater-1-"); define("DSTARREPEATERLOGFILENAME", "DStarRepeater_Repeater-1-");
define("LINKLOGPATH", LOGPATH . "/gateway/Links.log"); define("LINKLOGPATH", LOGPATH . "/gateway/Links.log");
define("HRDLOGPATH", LOGPATH . "/gateway/Headers.log"); define("HRDLOGPATH", LOGPATH . "/gateway/Headers.log");
@ -31,7 +31,7 @@ switch (DISTRIBUTION) {
// Configuration for Western-Dstar-Image // Configuration for Western-Dstar-Image
define("LOGPATH", "/var/log"); define("LOGPATH", "/var/log");
define("CONFIGPATH", "/etc"); define("CONFIGPATH", "/etc");
define("DSTARREPEATERLOGPATH", LOGPATH. "/"); define("DSTARREPEATERLOGPATH", LOGPATH . "/");
define("DSTARREPEATERLOGFILENAME", "DStarRepeater-"); define("DSTARREPEATERLOGFILENAME", "DStarRepeater-");
define("LINKLOGPATH", LOGPATH . "/Links.log"); define("LINKLOGPATH", LOGPATH . "/Links.log");
define("HRDLOGPATH", LOGPATH . "/Headers.log"); define("HRDLOGPATH", LOGPATH . "/Headers.log");
@ -40,26 +40,26 @@ switch (DISTRIBUTION) {
// Configuration for DL5DI-Installation-packages on CENTOS // Configuration for DL5DI-Installation-packages on CENTOS
define("LOGPATH", "/var/log/dstar"); define("LOGPATH", "/var/log/dstar");
define("CONFIGPATH", "/etc"); define("CONFIGPATH", "/etc");
define("DSTARREPEATERLOGPATH", LOGPATH. "/"); define("DSTARREPEATERLOGPATH", LOGPATH . "/");
define("DSTARREPEATERLOGFILENAME", "DStarRepeater_1-"); define("DSTARREPEATERLOGFILENAME", "DStarRepeater_1-");
define("LINKLOGPATH", LOGPATH . "/Links.log"); define("LINKLOGPATH", LOGPATH . "/Links.log");
define("HRDLOGPATH", LOGPATH . "/Headers.log"); define("HRDLOGPATH", LOGPATH . "/Headers.log");
break; break;
case "DL5DI_DEBIAN": case "DL5DI_DEBIAN":
// Configuration for DL5DI-Installation-packages on DEBIAN // Configuration for DL5DI-Installation-packages on DEBIAN
define("LOGPATH", "/var/log/opendv"); define("LOGPATH", "/var/log/opendv");
define("CONFIGPATH", "/home/opendv/ircddbgateway"); define("CONFIGPATH", "/home/opendv/ircddbgateway");
define("DSTARREPEATERLOGPATH", LOGPATH. "/"); define("DSTARREPEATERLOGPATH", LOGPATH . "/");
define("DSTARREPEATERLOGFILENAME", "DStarRepeater_1-"); define("DSTARREPEATERLOGFILENAME", "DStarRepeater_1-");
define("LINKLOGPATH", LOGPATH . "/Links.log"); define("LINKLOGPATH", LOGPATH . "/Links.log");
define("HRDLOGPATH", LOGPATH . "/Headers.log"); define("HRDLOGPATH", LOGPATH . "/Headers.log");
break; break;
case "OTHER": case "OTHER":
// Configuration for all others, please customize // Configuration for all others, please customize
// if necessary // if necessary
define("LOGPATH", "/var/log"); define("LOGPATH", "/var/log");
define("CONFIGPATH", "/etc"); define("CONFIGPATH", "/etc");
define("DSTARREPEATERLOGPATH", LOGPATH. "/"); define("DSTARREPEATERLOGPATH", LOGPATH . "/");
define("DSTARREPEATERLOGFILENAME", "DStarRepeater-"); define("DSTARREPEATERLOGFILENAME", "DStarRepeater-");
define("LINKLOGPATH", LOGPATH . "/Links.log"); define("LINKLOGPATH", LOGPATH . "/Links.log");
define("HRDLOGPATH", LOGPATH . "/Headers.log"); define("HRDLOGPATH", LOGPATH . "/Headers.log");
@ -67,11 +67,11 @@ switch (DISTRIBUTION) {
} }
define("CONFIGFILENAME","ircddbgateway"); define("CONFIGFILENAME", "ircddbgateway");
define("GATEWAYCONFIGPATH", CONFIGPATH."/".CONFIGFILENAME); define("GATEWAYCONFIGPATH", CONFIGPATH . "/" . CONFIGFILENAME);
define("REFRESHAFTER","60"); define("REFRESHAFTER", "60");
define("TEMPERATUREALERT",true); define("TEMPERATUREALERT", true);
define("TEMPERATUREHIGHLEVEL", 60); define("TEMPERATUREHIGHLEVEL", 60);
define("SHOWPROGRESSBARS", true); define("SHOWPROGRESSBARS", true);
define("LHLINES", 20); define("LHLINES", 20);