extra callsign checking

The dashboard filter out log entries with callsigns with less than 3
characters
This commit is contained in:
LX3JL 2016-01-27 15:56:41 +01:00
parent f555f0effc
commit d6eecca9d9
2 changed files with 46 additions and 88 deletions

24
dashboard/index.php Executable file → Normal file
View File

@ -1,26 +1,4 @@
<?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";
@ -103,7 +81,7 @@ for ($i=0;$i<count($tmpStations);$i++) {
</table>
</div>
<div id="info"><?php echo str_replace ("up" , "&nbsp;&nbsp;Server uptime" , GetSystemUptime()); ?>&nbsp;<br />XLX<?php echo $ServiceName; ?>&nbsp;v<?php echo $XML->GetElement($FILECONTENT, "Version"); ?>&nbsp;-&nbsp;Dashboard v2.0.4&nbsp;&nbsp;</div>
<div id="info"><?php echo str_replace ("up" , "&nbsp;&nbsp;Server uptime" , GetSystemUptime()); ?>&nbsp;<br />XLX<?php echo $ServiceName; ?>&nbsp;v<?php echo $XML->GetElement($FILECONTENT, "Version"); ?>&nbsp;-&nbsp;Dashboard v2.0.5&nbsp;&nbsp;</div>
</div>
<div id="content" align="center">

24
dashboard/pgs/class.reflector.php Executable file → Normal file
View File

@ -1,26 +1,4 @@
<?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 {
@ -108,8 +86,10 @@ class xReflector {
}
if (!$FoundStationInList) {
if (strlen(trim($RealCallsign)) > 3) {
$this->Stations[] = $StationObject;
}
}
}
}