Replace deprecated instr function with str_contains and add include/global.php for central configurations.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user