MMDVMHost-Dashboard/include/init.php

28 lines
871 B
PHP
Raw Normal View History

<?php
//Some basic inits
$mmdvmconfigs = getMMDVMConfig();
2016-10-26 15:06:45 +02:00
if (!defined("MMDVMLOGPREFIX"))
2017-01-10 15:04:51 +01:00
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
if (!defined("TIMEZONE"))
2017-01-10 15:04:51 +01:00
define("TIMEZONE", "UTC");
if (defined("RESOLVETGS")) {
$tgList = getTGList();
}
$logLinesMMDVM = getMMDVMLog();
showLapTime("getMMDVMLog");
$reverseLogLinesMMDVM = $logLinesMMDVM;
2017-02-14 15:46:37 +01:00
rsort($reverseLogLinesMMDVM);
showLapTime("array_multisort");
$lastHeard = getLastHeard($reverseLogLinesMMDVM, FALSE);
showLapTime("getLastHeard");
if (defined("ENABLEYSFGATEWAY")) {
2017-01-10 15:04:51 +01:00
$logLinesYSFGateway = getYSFGatewayLog();
showLapTime("getYSFGatewayLog");
$reverseLogLinesYSFGateway = $logLinesYSFGateway;
2017-02-14 15:46:37 +01:00
rsort($reverseLogLinesYSFGateway);
2017-01-10 15:04:51 +01:00
showLapTime("array_multisort");
$activeYSFReflectors = getActiveYSFReflectors();
showLapTime("getActiveYSFReflectors");
}
?>