MMDVMHost-Dashboard/include/init.php

29 lines
964 B
PHP
Raw Normal View History

<?php
//Some basic inits
$mmdvmconfigs = getMMDVMConfig();
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
echo MMDVMLOGPREFIX;
$logLinesMMDVM = getMMDVMLog();
showLapTime("getMMDVMLog");
//getNames(" ");
showLapTime("getNames");
//$_SESSION['logLinesMMDVM'] = $logLinesMMDVM;
$reverseLogLinesMMDVM = $logLinesMMDVM;
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
showLapTime("array_multisort");
//$_SESSION['reverseLogLinesMMDVM'] = $reverseLogLinesMMDVM;
$lastHeard = getLastHeard($reverseLogLinesMMDVM, FALSE);
showLapTime("getLastHeard");
//$_SESSION['lastHeard'] = $lastHeard;
if (defined("ENABLEYSFGATEWAY")) {
2016-10-08 23:41:46 +02:00
$logLinesYSFGateway = getYSFGatewayLog();
showLapTime("getYSFGatewayLog");
2016-10-08 23:41:46 +02:00
$reverseLogLinesYSFGateway = $logLinesYSFGateway;
2016-10-26 09:46:15 +02:00
array_multisort($reverseLogLinesYSFGateway,SORT_DESC);
showLapTime("array_multisort");
2016-10-08 23:41:46 +02:00
$activeYSFReflectors = getActiveYSFReflectors();
showLapTime("getActiveYSFReflectors");
}
?>