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:
@@ -44,7 +44,7 @@
|
||||
<!-- Display -->
|
||||
<div class="col py-3">
|
||||
<!-- Page Title -->
|
||||
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;">AutoRemediation Logs</span></h1>
|
||||
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;"><?php echo $ti_11;?></span></h1>
|
||||
|
||||
<!-- Main content -->
|
||||
<div class="container-fluid">
|
||||
@@ -70,9 +70,9 @@
|
||||
<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> <!-- Header -->
|
||||
<tr>
|
||||
<th data-field='ts' data-sortable='true'>TimeStamp</th>
|
||||
<th data-field='host' data-sortable='true'>Host</th>
|
||||
<th data-field='command' data-sortable='true'>Command</th>
|
||||
<th data-field='ts' data-sortable='true'>Date</th>
|
||||
<th data-field='host' data-sortable='true'><?php echo $w_host;?></th>
|
||||
<th data-field='command' data-sortable='true'><?php echo $w_command;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
@@ -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";
|
||||
$list = Invoke_Infra("select * from X_cmdb_backupsys order by HOSTNAME");
|
||||
$all = $_POST['show_all'] ?? 0;
|
||||
|
||||
@@ -45,7 +45,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%;">Backups Linux/AIX</span></h1>
|
||||
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;"><?php echo $w_backup;?> Linux/AIX</span></h1>
|
||||
|
||||
<div class="d-flex justify-content-start align-items-center mb-2 p-2 rounded bg-secondary-subtle">
|
||||
<form class="form-inline d-flex gap-4" action="Backups.php" method="post" >
|
||||
@@ -53,14 +53,14 @@
|
||||
<input class="form-check-input" type="checkbox" role="switch"
|
||||
id="showAll" name="show_all" value="1"
|
||||
<?php echo ($all == 1) ? 'checked' : ''; ?>>
|
||||
<label class="form-check-label" for="showAll"><strong>All</strong></label>
|
||||
<label class="form-check-label" for="showAll"><strong><?php echo $w_all ;?></strong></label>
|
||||
</div>
|
||||
|
||||
<div class="form-check form-switch" <?php echo ($all == 1) ? 'style="display:none;"' : ''; ?>>
|
||||
<input class="form-check-input" type="checkbox" role="switch"
|
||||
id="showSize" name="show_size" value="1"
|
||||
<?php echo ($showSize == 1) ? 'checked' : ''; ?>>
|
||||
<label class="form-check-label" for="showSize"><strong>Size >= 15GB</strong></label>
|
||||
<label class="form-check-label" for="showSize"><strong><?php echo $w_size ;?> >= 15GB</strong></label>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -68,11 +68,11 @@
|
||||
<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="ts" data-sortable="true">TS</th>
|
||||
<th data-field="Name" data-sortable="true"><?php echo $w_name ;?></th>
|
||||
<th data-field="ts" data-sortable="true">Date</th>
|
||||
<th data-field="Log" data-sortable="true">Log</th>
|
||||
<th data-field="Type" data-sortable="true">Type</th>
|
||||
<th data-field="Location" data-sortable="true">Location</th>
|
||||
<th data-field="Location" data-sortable="true"><?php echo $w_location ;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
|
||||
<form class="row">
|
||||
<div class="col border rounded">
|
||||
<b>Filters : </b>
|
||||
<b><?php echo $w_filter;?> : </b>
|
||||
<div class="form-check form-check-inline form-switch">
|
||||
<input class="form-check-input" type="checkbox" role="switch" id="AIX" <?php echo $aix; ?> name="AIX" value="1">
|
||||
<label class="form-check-label" for="AIX">AIX</label>
|
||||
@@ -155,7 +155,7 @@
|
||||
|
||||
<div class="form-check form-check-inline form-switch">
|
||||
<input class="form-check-input" type="checkbox" role="switch" id="other" <?php echo $other; ?> name="other" value="1">
|
||||
<label class="form-check-label" for="other">Other</label>
|
||||
<label class="form-check-label" for="other"><?php echo $w_other;?></label>
|
||||
</div>
|
||||
<input type="hidden" name="s" value="<?php echo $script; ?>">
|
||||
<button type="submit" class="btn btn-success btn-small mb-2 mt-2">Apply</button>
|
||||
@@ -165,10 +165,10 @@
|
||||
|
||||
<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='host' data-sortable='true'>Host</th>
|
||||
<th data-field='OS' data-sortable='true'>OS</th>
|
||||
<th data-field='OSVer' data-sortable='true'>Distrib</th>
|
||||
<th data-field='TimeStamp' data-sortable='true'>TimeStamp</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='OSVer' data-sortable='true'>Distrib.</th>
|
||||
<th data-field='TimeStamp' data-sortable='true'>Date</th>
|
||||
<th data-field='RC' data-sortable='true'>RC</th>
|
||||
<th data-field='Result' data-sortable='true'>StdOut</th>
|
||||
</tr>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<!-- Display -->
|
||||
<div class="col py-3">
|
||||
<!-- Page Title -->
|
||||
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;">Script Execution Follow-up</span></h1>
|
||||
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;"><?php echo $ti_12;?></span></h1>
|
||||
|
||||
<!-- Main content -->
|
||||
<div class="container-fluid">
|
||||
|
||||
@@ -129,7 +129,7 @@ usort($displayRows, function($a, $b) {
|
||||
</div>
|
||||
|
||||
<div class="col py-3">
|
||||
<h1><span class="badge text-bg-secondary w-100">VIO Monitoring</span></h1>
|
||||
<h1><span class="badge text-bg-secondary w-100"><?php echo $ti_13;?></span></h1>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div>
|
||||
@@ -142,14 +142,14 @@ usort($displayRows, function($a, $b) {
|
||||
data-sortable="true"> <thead>
|
||||
<tr>
|
||||
<th data-field="clintname" data-sortable="true">Clint Name</th>
|
||||
<th data-field="name">Name</th>
|
||||
<th data-field="name"><?php echo $w_name;?></th>
|
||||
<th data-field="vioerr">VIOErr</th>
|
||||
<th data-field="inerr">InErr</th>
|
||||
<th data-field="vfcclientname">VFC Client Name</th>
|
||||
<th data-field="vio">VIO</th>
|
||||
<th data-field="clintid">ClintID</th>
|
||||
<th data-field="fcname">FC Name</th>
|
||||
<th data-field="ts">Last Update</th>
|
||||
<th data-field="ts"><?php echo $w_lastUpdate;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<!-- Display -->
|
||||
<div class="col py-3">
|
||||
<!-- Page Title -->
|
||||
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;">SVA & SCU Accounts Attributes </span></h1><h6>Updated every hour</h6>
|
||||
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;"><?php echo $ti_10 ;?> </span></h1>
|
||||
|
||||
<!-- Main content -->
|
||||
<div class="container-fluid">
|
||||
@@ -70,16 +70,16 @@
|
||||
<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> <!-- Header -->
|
||||
<tr>
|
||||
<th data-field='account' data-sortable='true'>Account</th>
|
||||
<th data-field='Displayname' data-sortable='true'>Displayname</th>
|
||||
<th data-field='account' data-sortable='true'><?php echo $w_account;?></th>
|
||||
<th data-field='Displayname' data-sortable='true'><?php echo $w_name;?></th>
|
||||
<th data-field='Uid' data-sortable='true'>Uid</th>
|
||||
<th data-field='UidNumber' data-sortable='true'>UidNumber</th>
|
||||
<th data-field='UidNumber' data-sortable='true'>Uid #</th>
|
||||
<th data-field='Gecos' data-sortable='true'>Gecos</th>
|
||||
<th data-field='UnixHD' data-sortable='true'>Unix Home Directory</th>
|
||||
<th data-field='Login Shell' data-sortable='true'>Login Shell</th>
|
||||
<th data-field='GID Number' data-sortable='true'>GID Number</th>
|
||||
<th data-field='Enabled' data-sortable='true'>Enabled</th>
|
||||
<th data-field='LastLogon' data-sortable='true'>Last Logon</th>
|
||||
<th data-field='UnixHD' data-sortable='true'><?php echo $w_homeDirectory;?></th>
|
||||
<th data-field='Login Shell' data-sortable='true'><?php echo $w_loginShell;?></th>
|
||||
<th data-field='GID Number' data-sortable='true'>GID #</th>
|
||||
<th data-field='Enabled' data-sortable='true'><?php echo $w_enabled;?></th>
|
||||
<th data-field='LastLogon' data-sortable='true'><?php echo $w_lastLogon;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user