Replace deprecated instr function with str_contains and add include/global.php for central configurations.

This commit is contained in:
2025-08-13 09:38:16 +02:00
parent 676089950d
commit 5d01e6da14
8 changed files with 301 additions and 156 deletions

View File

@@ -28,7 +28,7 @@
</head>
<body class="bg-light text-dark">
<?php include $_SERVER['DOCUMENT_ROOT'] . "/include/all.php"; ?> <!-- Constants -->
<?php include $_SERVER['DOCUMENT_ROOT'] . "/include/global.php"; ?>
<?php // DATA
$servers = Invoke_Infra("select * from x_inventory where type is not null");
$UTDS1 = (Invoke_Infra("select max(Ver) as utd from X_cmdb_Product where Name = 's1'"))[0]['utd'];
@@ -122,7 +122,7 @@
}
$size = floor($size / 1024 / 1024 / 1024);
}
if($size >= 20){
if($size >= 15){
$size = "<span class='text-danger'><b>$size GB</b></span>";
}else{
$size = "$size GB";