From 4d42cf0ff918d59d778b384e6ffc10835d5a19e4 Mon Sep 17 00:00:00 2001 From: dg9vh Date: Sat, 8 Oct 2016 19:12:06 +0000 Subject: [PATCH] made logview sortable, searchable... datatables... --- scripts/log.php | 38 +++++++++++++++++++++++--------------- version.php | 2 +- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/scripts/log.php b/scripts/log.php index ba42243..7cfc8d5 100644 --- a/scripts/log.php +++ b/scripts/log.php @@ -24,6 +24,8 @@ $fileName = MMDVMLOGPATH."/".MMDVMLOGPREFIX."-".date("Y-m-d").".log"; + + <?php echo getCallsign($mmdvmconfigs) ?> - MMDVM-Dashboard by DG9VH @@ -49,25 +51,30 @@ $fileName = MMDVMLOGPATH."/".MMDVMLOGPREFIX."-".date("Y-m-d").".log"; Viewing log
- - Log file - +
+ + + + + + + eof()) { + $line = $file->fgets(); // Echo one line from the file. echo""; echo ""; + echo ""; + echo ""; echo"\n"; } @@ -78,9 +85,6 @@ $file = null; ?>
LevelTimestampInfo
"; - echo $file->fgets(); + echo substr($line,0,3); + echo ""; + echo substr($line,3,24); + echo ""; + echo substr($line,27); echo "
- - -
@@ -98,8 +102,12 @@ echo ''; ?> | get your own at: https://github.com/dg9vh/MMDVMHost-Dashboard
diff --git a/version.php b/version.php index 9ea45c1..7bc08be 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@