Remove test.php and enhance null safety and sorting across components

- Deleted `test.php` as it was no longer in use.
- Enhanced null safety checks in `Inventory.php`, `StdOut-detail.php`, `Backups.php`, and `SwitchsSAN.php` to prevent potential warnings.
- Refactored `SwitchsSAN.php` to improve sorting logic for ports based on errors, vFabric, and Port ID.
- Added seasonal snow effect script in `all.php` with toggle functionality for user engagement.
- Updated navigation bar (`navbar.html`) to include a new VIO page link.
- Introduced a new `VIO.php` page to display VIO monitoring details with table export and sorting features.
This commit is contained in:
2026-03-31 11:33:57 +02:00
parent d5b45dbc22
commit 10c228f255
47 changed files with 950 additions and 702 deletions

View File

@@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Web Infra Reports</title>
<title>Web Infra Reports IT</title>
<link rel="shortcut icon" type="image/png" href="/include/favicon-32x32.png">
<script src="/js/jquery-3.6.1.min.js"></script>
@@ -25,7 +25,7 @@
<body class="bg-light text-dark">
<?php
include $_SERVER['DOCUMENT_ROOT'] . "/include/global.php";
include $_SERVER['DOCUMENT_ROOT'] . "/include/all.php";
// NOUVEAU : Gérer les filtres
// Par défaut, tout est coché (true)
@@ -75,7 +75,7 @@
<?php include $_SERVER['DOCUMENT_ROOT'] . "/navbar.html"; ?>
</div>
<div class="col py-3">
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;">AIX / Linux inventory</span></h1>
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;"><?php echo $ti_9;?></span></h1>
<div class="container-fluid">
<div class="d-flex justify-content-start align-items-center mb-2 p-2 rounded bg-secondary-subtle">
@@ -95,13 +95,13 @@
<table class='table table-bordered table-hover table-sm' id='t1' data-height="620" data-toggle="table" data-search="true" data-show-columns="true" data-export-types="['xlsx','csv','json']" data-show-export="true" data-sortable="true" data-sort-name="VM">
<thead>
<tr>
<th data-field="Name" data-sortable="true">Name</th>
<th data-field="Heartbeat" data-sortable="true" data-visible="false">Heartbeat</th>
<th data-field="Host" data-sortable="true">Host</th>
<th data-field="OS" data-sortable="true">OS Type</th>
<th data-field="Name" data-sortable="true"><?php echo $w_name ;?></th>
<th data-field="Heartbeat" data-sortable="true" data-visible="false"><?php echo $w_heartbeat ;?></th>
<th data-field="Host" data-sortable="true"><?php echo $w_host ;?></th>
<th data-field="OS" data-sortable="true"><?php echo $w_os ;?></th>
<th data-field="distrib" data-sortable="true">Distrib</th>
<th data-field="Last Boot" data-sortable="true">Last reboot</th>
<th data-field="Last Backup" data-sortable="true">Last backup</th>
<th data-field="Last Boot" data-sortable="true"><?php echo $w_lastReboot ;?></th>
<th data-field="Last Backup" data-sortable="true"><?php echo $w_backuplu ;?></th>
<th data-field="Auth" data-sortable="true">Auth</th>
<th data-field="SentinelOne" data-sortable="true">SentinelOne</th>
<th data-field="Nessus" data-sortable="true">Nessus</th>
@@ -326,7 +326,7 @@
?>
</tbody>
</table><br>
<h5 class="text-center"><?php echo $total; ?> servers</h5>
<h5 class="text-center"><?php echo $total; ?> <?php echo $w_server;?></h5>
</div>
</div>
</div>