|
|
|
@ -160,12 +160,19 @@ if (isset($_GET["backgroundcolor"]) && !empty($_GET["backgroundcolor"]) && preg_
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!$trackingok) {
|
|
|
|
|
$body = [];
|
|
|
|
|
if (!empty($_GET["id"])) {
|
|
|
|
|
$body[] = '<p class="text-danger">' . str_replace("{id}", htmlspecialchars($_GET['id']), $publicsettings["No device with ID error"]) . "</p>";
|
|
|
|
|
if (!empty($_GET["package"])) {
|
|
|
|
|
printCard('<i class="fas fa-box"></i> ' . $Strings->get("Tracking Info", false), [
|
|
|
|
|
'<p class="text-danger">' . str_replace("{id}", htmlspecialchars($_GET['id']), $publicsettings["No package with ID error"]) . "</p>",
|
|
|
|
|
getSearchBox()
|
|
|
|
|
]);
|
|
|
|
|
} else {
|
|
|
|
|
$body = [];
|
|
|
|
|
if (!empty($_GET["id"])) {
|
|
|
|
|
$body[] = '<p class="text-danger">' . str_replace("{id}", htmlspecialchars($_GET['id']), $publicsettings["No device with ID error"]) . "</p>";
|
|
|
|
|
}
|
|
|
|
|
$body[] = getSearchBox();
|
|
|
|
|
printCard('<i class="fas fa-desktop"></i> ' . $Strings->get("Device Info", false), $body);
|
|
|
|
|
}
|
|
|
|
|
$body[] = getSearchBox();
|
|
|
|
|
printCard('<i class="fas fa-desktop"></i> ' . $Strings->get("Device Info", false), $body);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (Component::exists($_GET["id"])) {
|
|
|
|
|