mirror of
https://github.com/ShaYmez/xlxd.git
synced 2025-07-03 00:45:15 -04:00
extra callsign checking
The dashboard filter out log entries with callsigns with less than 3 characters
This commit is contained in:
parent
f555f0effc
commit
d6eecca9d9
24
dashboard/index.php
Executable file → Normal file
24
dashboard/index.php
Executable file → Normal file
@ -1,26 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// xlxd
|
|
||||||
//
|
|
||||||
// Created by Luc Engelmann (LX1IQ) on 31/12/2015
|
|
||||||
// Copyright © 2015 Luc Engelmann (LX1IQ). All rights reserved.
|
|
||||||
//
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// This file is part of xlxd.
|
|
||||||
//
|
|
||||||
// xlxd is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// xlxd is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with Foobar. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
$FILE = "/var/log/xlxd.xml";
|
$FILE = "/var/log/xlxd.xml";
|
||||||
|
|
||||||
@ -103,7 +81,7 @@ for ($i=0;$i<count($tmpStations);$i++) {
|
|||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div id="info"><?php echo str_replace ("up" , " Server uptime" , GetSystemUptime()); ?> <br />XLX<?php echo $ServiceName; ?> v<?php echo $XML->GetElement($FILECONTENT, "Version"); ?> - Dashboard v2.0.4 </div>
|
<div id="info"><?php echo str_replace ("up" , " Server uptime" , GetSystemUptime()); ?> <br />XLX<?php echo $ServiceName; ?> v<?php echo $XML->GetElement($FILECONTENT, "Version"); ?> - Dashboard v2.0.5 </div>
|
||||||
</div>
|
</div>
|
||||||
<div id="content" align="center">
|
<div id="content" align="center">
|
||||||
|
|
||||||
|
26
dashboard/pgs/class.reflector.php
Executable file → Normal file
26
dashboard/pgs/class.reflector.php
Executable file → Normal file
@ -1,26 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// xlxd
|
|
||||||
//
|
|
||||||
// Created by Luc Engelmann (LX1IQ) on 31/12/2015
|
|
||||||
// Copyright © 2015 Luc Engelmann (LX1IQ). All rights reserved.
|
|
||||||
//
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// This file is part of xlxd.
|
|
||||||
//
|
|
||||||
// xlxd is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// xlxd is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with Foobar. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
class xReflector {
|
class xReflector {
|
||||||
|
|
||||||
@ -108,7 +86,9 @@ class xReflector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!$FoundStationInList) {
|
if (!$FoundStationInList) {
|
||||||
$this->Stations[] = $StationObject;
|
if (strlen(trim($RealCallsign)) > 3) {
|
||||||
|
$this->Stations[] = $StationObject;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user