Enhance /X/Inventory.php with detailed backup log handling and dynamic styling, add new opwsinf URL in include/all.php, and remove unused Orphan LUNs link from the navbar.

This commit is contained in:
2025-11-05 10:09:03 +01:00
parent ea46ba5c8f
commit 9afc833361
3 changed files with 21 additions and 13 deletions

View File

@@ -179,6 +179,13 @@
//LastBackup
$lr = explode(".", $s['backuplast'] ?? "")[0];
if(str_contains(strtolower($s['backuplog']), 'progress')){
$size = "<span class='text-warning'>In Progress</span>";
}elseif (str_contains(strtolower($s['backuplog']), 'waiting')){
$size = "<span class='text-warning'><br>".$s['backuplog']."</span>";
}elseif (str_contains(strtolower($s['backuplog']), 'error')){
$size = "<span class='text-danger'><b> ERROR !!!</b></span>";
}else {
$size = 0;
if ($s['backuplog'] != "") {
if (str_contains($s['backuplog'], "Length")) {
@@ -193,6 +200,7 @@
} else {
$size = "$size GB";
}
}
try {
$lrDate = new DateTime($lr);
} catch (DateMalformedStringException $e) {

View File

@@ -3,6 +3,7 @@
$BaseUrl = "http://".$_SERVER['SERVER_NAME'];
$root = $_SERVER['DOCUMENT_ROOT'];
$bdnuss = "http://web-bdnuss-sys-dev.appliarmony.net";
$opwsinf = "https://wsopinf.appliarmony.net";
// FUNCTIONS //
//tools//

View File

@@ -78,7 +78,6 @@
<ul class="collapse nav flex-column ms-1" id="Storage" data-bs-parent="#menu">
<li class="w-100">
<a href="/Storage/Dashboard.php" class="nav-link px-0"> <span class="d-none d-sm-inline text-white h7">- Dashboard IBM SAN</span></a>
<a href="/Storage/orphanluns.php" class="nav-link px-0"> <span class="d-none d-sm-inline text-white h7">- SVC Orphan LUNs</span></a>
</li>
</ul>
</li>