Fix if(constant, "SHOWQRZ") error
This commit is contained in:
parent
010d885f7b
commit
d21620d441
5 changed files with 6 additions and 6 deletions
4
ajax.php
4
ajax.php
|
@ -32,7 +32,7 @@ if ($_GET['section'] == "localTx") {
|
||||||
$listElem[3] = getName($listElem[2]);
|
$listElem[3] = getName($listElem[2]);
|
||||||
if ($listElem[2] !== "??????????") {
|
if ($listElem[2] !== "??????????") {
|
||||||
if (!is_numeric($listElem[2])) {
|
if (!is_numeric($listElem[2])) {
|
||||||
if (constant("SHOWQRZ")) {
|
if (defined("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 {
|
} else {
|
||||||
$listElem[2] = "<a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</a>";
|
$listElem[2] = "<a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</a>";
|
||||||
|
@ -47,7 +47,7 @@ if ($_GET['section'] == "localTx") {
|
||||||
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 ($listElem[2] !== "??????????") {
|
if ($listElem[2] !== "??????????") {
|
||||||
if (!is_numeric($listElem[2])) {
|
if (!is_numeric($listElem[2])) {
|
||||||
if (constant("SHOWQRZ")) {
|
if (defined("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 {
|
} else {
|
||||||
$listElem[2] = "<a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</a>";
|
$listElem[2] = "<a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</a>";
|
||||||
|
|
|
@ -436,7 +436,7 @@ function getLastHeard($logLines, $onlyLast) {
|
||||||
}
|
}
|
||||||
if ($listElem[2] !== "??????????") {
|
if ($listElem[2] !== "??????????") {
|
||||||
if (!is_numeric($listElem[2])) {
|
if (!is_numeric($listElem[2])) {
|
||||||
if (constant("SHOWQRZ")) {
|
if (defined("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 {
|
} else {
|
||||||
$listElem[2] = "<a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</a>";
|
$listElem[2] = "<a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</a>";
|
||||||
|
|
|
@ -36,7 +36,7 @@ for ($i = 0; ($i < $totalLH); $i++) {
|
||||||
echo"<td nowrap>$listElem[1]</td>";
|
echo"<td nowrap>$listElem[1]</td>";
|
||||||
if ($listElem[2] !== "??????????") {
|
if ($listElem[2] !== "??????????") {
|
||||||
if (!is_numeric($listElem[2])) {
|
if (!is_numeric($listElem[2])) {
|
||||||
if (constant("SHOWQRZ")) {
|
if (defined("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 {
|
} else {
|
||||||
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</td>";
|
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</td>";
|
||||||
|
|
|
@ -41,7 +41,7 @@ for ($i = 0; $i < count($localTXList); $i++) {
|
||||||
echo"<td nowrap>$listElem[1]</td>";
|
echo"<td nowrap>$listElem[1]</td>";
|
||||||
if ($listElem[2] !== "??????????") {
|
if ($listElem[2] !== "??????????") {
|
||||||
if (!is_numeric($listElem[2])) {
|
if (!is_numeric($listElem[2])) {
|
||||||
if (constant("SHOWQRZ")) {
|
if (defined("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 {
|
} else {
|
||||||
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</td>";
|
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</td>";
|
||||||
|
|
|
@ -27,7 +27,7 @@ foreach ($lastHeard as $listElem) {
|
||||||
echo"<td nowrap>$listElem[1]</td>";
|
echo"<td nowrap>$listElem[1]</td>";
|
||||||
/*if ($listElem[2] !== "??????????") {
|
/*if ($listElem[2] !== "??????????") {
|
||||||
if (!is_numeric($listElem[2])) {
|
if (!is_numeric($listElem[2])) {
|
||||||
if (constant("SHOWQRZ")) {
|
if (defined("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 {
|
} else {
|
||||||
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</td>";
|
echo"<td nowrap><a target=\"_new\" href=\"http://dmr.darc.de/dmr-userreg.php?callsign=$listElem[2]\">".$listElem[2]."</td>";
|
||||||
|
|
Loading…
Reference in a new issue