Use correct variables in links to DMR DARC page
This commit is contained in:
parent
8eb0ba8f3a
commit
18598a798e
5 changed files with 63 additions and 28 deletions
16
ajax.php
16
ajax.php
|
@ -26,20 +26,32 @@ if ($_GET['section'] == "localTx") {
|
||||||
if (defined("ENABLEXTDLOOKUP")) {
|
if (defined("ENABLEXTDLOOKUP")) {
|
||||||
if ($listElem[6] == "RF" && ($listElem[1]=="D-Star" || startsWith($listElem[1], "DMR") || $listElem[1]=="YSF" || $listElem[1]=="P25")) {
|
if ($listElem[6] == "RF" && ($listElem[1]=="D-Star" || startsWith($listElem[1], "DMR") || $listElem[1]=="YSF" || $listElem[1]=="P25")) {
|
||||||
$listElem[3] = getName($listElem[2]);
|
$listElem[3] = getName($listElem[2]);
|
||||||
if (constant("SHOWQRZ") && $listElem[2] !== "??????????" && !is_numeric($listElem[2])) {
|
if ($listElem[2] !== "??????????") {
|
||||||
|
if (!is_numeric($listElem[2])) {
|
||||||
|
if (constant("SHOWQRZ")) {
|
||||||
$listElem[2] = "<a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a>";
|
$listElem[2] = "<a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a>";
|
||||||
|
} else {
|
||||||
|
$listElem[2] = "<a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</a>";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$listElem[2] = "<a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?usrid=$listElem[2]\">".$listElem[2]."</a>";
|
$listElem[2] = "<a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?usrid=$listElem[2]\">".$listElem[2]."</a>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
array_push($lastHeard, $listElem);
|
array_push($lastHeard, $listElem);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($listElem[5] == "RF" && ($listElem[1]=="D-Star" || startsWith($listElem[1], "DMR") || $listElem[1]=="YSF" || $listElem[1]=="P25")) {
|
if ($listElem[5] == "RF" && ($listElem[1]=="D-Star" || startsWith($listElem[1], "DMR") || $listElem[1]=="YSF" || $listElem[1]=="P25")) {
|
||||||
if (constant("SHOWQRZ") && $listElem[2] !== "??????????" && !is_numeric($listElem[2])) {
|
if ($listElem[2] !== "??????????") {
|
||||||
|
if (!is_numeric($listElem[2])) {
|
||||||
|
if (constant("SHOWQRZ")) {
|
||||||
$listElem[2] = "<a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a>";
|
$listElem[2] = "<a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a>";
|
||||||
|
} else {
|
||||||
|
$listElem[2] = "<a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</a>";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$listElem[2] = "<a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?usrid=$listElem[2]\">".$listElem[2]."</a>";
|
$listElem[2] = "<a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?usrid=$listElem[2]\">".$listElem[2]."</a>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
array_push($lastHeard, $listElem);
|
array_push($lastHeard, $listElem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -360,12 +360,17 @@ function getLastHeard($logLines, $onlyLast) {
|
||||||
$listElem[3] = "---";
|
$listElem[3] = "---";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (constant("SHOWQRZ") && $listElem[2] !== "??????????" && !is_numeric($listElem[2])) {
|
if ($listElem[2] !== "??????????") {
|
||||||
|
if (!is_numeric($listElem[2])) {
|
||||||
|
if (constant("SHOWQRZ")) {
|
||||||
$listElem[2] = "<a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a>";
|
$listElem[2] = "<a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a>";
|
||||||
|
} else {
|
||||||
|
$listElem[2] = "<a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</a>";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$listElem[2] = "<a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?usrid=$listElem[2]\">".$listElem[2]."</a>";
|
$listElem[2] = "<a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?usrid=$listElem[2]\">".$listElem[2]."</a>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
array_push($lastHeard, $listElem);
|
array_push($lastHeard, $listElem);
|
||||||
$counter++;
|
$counter++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,11 +34,17 @@ for ($i = 0; ($i < $totalLH); $i++) {
|
||||||
echo"<tr>";
|
echo"<tr>";
|
||||||
echo"<td nowrap>$listElem[0]</td>";
|
echo"<td nowrap>$listElem[0]</td>";
|
||||||
echo"<td nowrap>$listElem[1]</td>";
|
echo"<td nowrap>$listElem[1]</td>";
|
||||||
if (constant("SHOWQRZ") && $listElem[2] !== "??????????" && !is_numeric($listElem[2])) {
|
if ($listElem[2] !== "??????????") {
|
||||||
|
if (!is_numeric($listElem[2])) {
|
||||||
|
if (constant("SHOWQRZ")) {
|
||||||
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a></td>";
|
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a></td>";
|
||||||
|
} else {
|
||||||
|
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</td>";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?usrid=$listElem[2]\">".$listElem[2]."</td>";
|
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?usrid=$listElem[2]\">".$listElem[2]."</td>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (defined("ENABLEXTDLOOKUP")) {
|
if (defined("ENABLEXTDLOOKUP")) {
|
||||||
echo "<td nowrap>".getName($listElem[2])."</td>";
|
echo "<td nowrap>".getName($listElem[2])."</td>";
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,11 +38,17 @@ for ($i = 0; $i < count($localTXList); $i++) {
|
||||||
echo"<tr>";
|
echo"<tr>";
|
||||||
echo"<td nowrap>$listElem[0]</td>";
|
echo"<td nowrap>$listElem[0]</td>";
|
||||||
echo"<td nowrap>$listElem[1]</td>";
|
echo"<td nowrap>$listElem[1]</td>";
|
||||||
if (constant("SHOWQRZ") && $listElem[2] !== "??????????" && !is_numeric($listElem[2])) {
|
if ($listElem[2] !== "??????????") {
|
||||||
|
if (!is_numeric($listElem[2])) {
|
||||||
|
if (constant("SHOWQRZ")) {
|
||||||
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a></td>";
|
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a></td>";
|
||||||
|
} else {
|
||||||
|
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</td>";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?usrid=$listElem[2]\">".$listElem[2]."</td>";
|
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?usrid=$listElem[2]\">".$listElem[2]."</td>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (defined("ENABLEXTDLOOKUP")) {
|
if (defined("ENABLEXTDLOOKUP")) {
|
||||||
echo "<td class=\"nowrap\">$listElem[3]</td>";
|
echo "<td class=\"nowrap\">$listElem[3]</td>";
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,10 +19,16 @@ foreach ($lastHeard as $listElem) {
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo"<td nowrap>$listElem[0]</td>";
|
echo"<td nowrap>$listElem[0]</td>";
|
||||||
echo"<td nowrap>$listElem[1]</td>";
|
echo"<td nowrap>$listElem[1]</td>";
|
||||||
/*if (constant("SHOWQRZ") && $listElem[2] !== "??????????" && !is_numeric($listElem[2])) {
|
/*if ($listElem[2] !== "??????????") {
|
||||||
|
if (!is_numeric($listElem[2])) {
|
||||||
|
if (constant("SHOWQRZ")) {
|
||||||
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a></td>";
|
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a></td>";
|
||||||
|
} else {
|
||||||
|
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</td>";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?usrid=$listElem[2]\">".$listElem[2]."</td>";
|
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?usrid=$listElem[2]\">".$listElem[2]."</td>";
|
||||||
|
}
|
||||||
}*/
|
}*/
|
||||||
echo"<td nowrap>$listElem[2]</td>";
|
echo"<td nowrap>$listElem[2]</td>";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue