Standardize left navbar with sticky and full height styling across multiple pages. Optimize backend functions in global.php.

This commit is contained in:
2025-08-13 12:14:06 +02:00
parent 5d01e6da14
commit 097481aec0
38 changed files with 530 additions and 220 deletions

View File

@@ -10,7 +10,7 @@
//tools//
function decypher(string $name): ?string {
$openssl = 'C:\Program Files\FireDaemon OpenSSL 3\bin\openssl.exe';
$cmsFile = "F:\\Include\\dat\\{$name}.p7m";
$cmsFile = "F:\\Include\\dat\\$name.p7m";
$certPem = "F:\\Include\\certs\\cert_only.pem";
$keyPem = "F:\\Include\\certs\\key_only.pem";
@@ -134,7 +134,6 @@
return $answer ?? null;
}
function Invoke_Infra($request)
{
error_reporting(E_ALL ^ E_WARNING);
@@ -203,20 +202,14 @@
{
$user="glpi_lect_seule";
$pwd=decypher("glpi");
$server="srvv-n4glpi-aim.process.dkm";
$server="mys_glpi_prod.appliarmony.net";
$database="glpi";
$conn = new mysqli($server, $user, $pwd, $database);
if (!($conn)) {
echo "Pas de connexion";
}
$rs = $conn->query($request);
while ($row = mysqli_fetch_array($rs)) {
$answer[] = $row;
}
if (isset($answer)) {
return $answer;
}
return $answer ?? null;
}
//DB Conn//
@@ -270,14 +263,13 @@
?>
//HTML//
<!-- MODAL WAIT -->
<div class="modal fade bs-example-modal-sm" id="wait" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" style="padding-top: 15%;">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title mb-1 text-dark text-uppercase">
<div class="text-center"><i class="bi bi-hourglass-split"></i><br> Work in progress ...</div>
<span class="text-center"><i class="bi bi-hourglass-split"></i><br> Work in progress ...</span>
</h4>
</div>
<div class="modal-body">