diff --git a/Network/dhcp_detail.php b/Network/dhcp_detail.php new file mode 100644 index 0000000..f8d0bde --- /dev/null +++ b/Network/dhcp_detail.php @@ -0,0 +1,154 @@ +' . $xmlString; +} + +try { + $xml = new SimpleXMLElement($xmlString); +} catch (Exception $e) { + echo "Erreur de parsing XML : " . $e->getMessage(); + exit; +} + +$definitions = []; +foreach ($xml->xpath("//OptionDefinition") as $optDef) { + $definitions[(string)$optDef->OptionId] = (string)$optDef->Name; +} +?> + + + + + + + + Web Infra Reports IT + + + + + + + + + + + + + + + + +
+
+
+ +
+ +
+

+ +
+
+ +
+
+
+ xpath("//IPv4/OptionValues/OptionValue"); + foreach ($globalOptions as $opt): + $idx = (string)$opt->OptionId; + $vals = []; + foreach ($opt->Value as $v) $vals[] = (string)$v; + ?> +
+
-
+
+
VendorClass; ?>
+
+ +
+
+
+ + xpath("//Scope") as $scope): + $scopeIdRaw = (string)$scope->ScopeId; + $cleanId = "scope_" . str_replace('.', '', $scopeIdRaw); + $scopeName = (string)$scope->Name; + ?> +
+
+ + + +
+
+
+
+
: StartRange; ?>
+
: EndRange; ?>
+
: SubnetMask; ?>
+
+ +
+ OptionValues->OptionValue as $sOpt): + $sIdx = (string)$sOpt->OptionId; + $sVals = []; + foreach ($sOpt->Value as $sv) $sVals[] = (string)$sv; + ?> +
+
+
+
VendorClass; ?>
+
+ + +
+
+ + + + + + + + Reservations->Reservation ?? null; + if ($reservations): + foreach ($reservations as $res): ?> + + + + + + + + + + +
IPMACDescription
Name; ?>IPAddress; ?>ClientId; ?>Description; ?>
Aucune réservation sur ce scope
+
+
+
+
+ +
+
+
+ + \ No newline at end of file diff --git a/Network/dhcp_servers.php b/Network/dhcp_servers.php new file mode 100644 index 0000000..31446b7 --- /dev/null +++ b/Network/dhcp_servers.php @@ -0,0 +1,69 @@ + + + + + + + + + Web Infra Reports IT + + + + + + + + + + + + + + + + +
+
+
+ +
+ +
+

DHCP

+ +
+ + + + + + + + + + + + + + + +
+ + + +
+ +
+
+
+
+ + \ No newline at end of file diff --git a/include/en.php b/include/en.php index e0aad01..4bdbcad 100644 --- a/include/en.php +++ b/include/en.php @@ -142,3 +142,10 @@ $w_nextRollup = "Next Rollup"; $w_storageTotalGB = "Storage Total GB"; $w_storageUsedGB = "Storage Used GB"; + $w_network = "Network"; + $w_start = "Start"; + $w_end = "End"; + $w_mask = "Mask"; + $w_scopeOptions = "Scope Options"; + $w_reservations = "Reservations"; + $w_globalOptionValues = "Global Options Values"; \ No newline at end of file diff --git a/include/fr.php b/include/fr.php index 82675ec..4aa7ee3 100644 --- a/include/fr.php +++ b/include/fr.php @@ -141,4 +141,11 @@ $w_lastUpdate = "Dernière Mise à Jour"; $w_nextRollup = "Prochain Cumulatif"; $w_storageTotalGB = "Stockage Total GB"; - $w_storageUsedGB = "Stockage Utilisé GB"; \ No newline at end of file + $w_storageUsedGB = "Stockage Utilisé GB"; + $w_network = "Réseau"; + $w_start = "Début"; + $w_end = "Fin"; + $w_mask = "Masque"; + $w_scopeOptions = "Options de portée"; + $w_reservations = "Réservations"; + $w_globalOptionValues = "Valeurs des Options Globales"; diff --git a/navbar.html b/navbar.html index 01b2c4e..3d25310 100644 --- a/navbar.html +++ b/navbar.html @@ -158,13 +158,22 @@ +
  • + + + +