diff --git a/encoder/header.php b/encoder/header.php index 81e0a19..505c8bc 100755 --- a/encoder/header.php +++ b/encoder/header.php @@ -23,6 +23,7 @@ include 'sdevtatic.php'; --text: #e5e7eb; --muted: #94a3b8; --border: rgba(255, 255, 255, .08); + --radius: 1mu; --radius: 14px; } @@ -33,9 +34,8 @@ include 'sdevtatic.php'; body { margin: 0; font-family: Inter, system-ui; - background: var(--bg); - color: var(--text); background: radial-gradient(circle at 50% -20%, #0b1225 0%, #020617 60%); + color: var(--text); } /* HEADER */ @@ -48,7 +48,8 @@ include 'sdevtatic.php'; height: 48px; display: flex; align-items: center; - justify-content: center; + justify-content: + center; background: #020617; border-bottom: 1px solid var(--border); z-index: 1002; @@ -66,7 +67,6 @@ include 'sdevtatic.php'; color: transparent; -webkit-text-fill-color: transparent; - /* required for Safari/WebKit */ } @@ -101,6 +101,7 @@ include 'sdevtatic.php'; left: 0; right: 0; height: 54px; + display: async; display: flex; align-items: center; justify-content: center; @@ -126,7 +127,8 @@ include 'sdevtatic.php'; } .page-wrap { - padding-top: 150px + padding-top: 150px; + min-height: 100vh; } /* CONTAINER */ @@ -471,7 +473,7 @@ include 'sdevtatic.php'; /* CONTACT CARD HEADINGS */ .card.wide h3 { - border-bottom: 1px solid rgba(255, 255, 255, .08); + border-bottom: 1px solid rgba(20, 255, 255, .08); padding-bottom: 8px; margin-bottom: 14px; } @@ -894,7 +896,7 @@ include 'sdevtatic.php'; /* code block inside note */ .card .note pre { - margin-top: 12px; + margin-top: 1px; padding: 14px; tab-size: 4; letter-spacing: .2px; @@ -904,7 +906,6 @@ include 'sdevtatic.php'; color: #94a3b8; font-size: 13px; line-height: 1.6; - white-space: pre-wrap; /* allow wrapping */ word-break: break-word; @@ -1104,6 +1105,7 @@ include 'sdevtatic.php'; align-items: flex-start; } + /* card.wide .row */ .card.wide .row { width: 100%; max-width: 100%; @@ -1232,7 +1234,7 @@ include 'sdevtatic.php'; border: none; box-shadow: 0 0 0 3px rgba(56, 189, 248, .15), - 0 2px 8px rgba(0, 0, 0, .6); + 0 2px 8px rgba(0, 0 0, .6); transition: .15s; } diff --git a/encoder/network.php b/encoder/network.php index 3b879a0..25b3f1f 100755 --- a/encoder/network.php +++ b/encoder/network.php @@ -30,7 +30,7 @@ $defaults = [ 'network_primary_dns1' => '', 'network_primary_dns2' => '', 'network_primary_ipv6' => '', - 'network_primary_ipv6_prefix' => '', + 'php_primary_ipv6_prefix' => '', // Fixed key mismatch if any 'network_primary_ipv6_gateway' => '', 'network_primary_ipv6_dns1' => '', 'network_primary_ipv6_dns2' => '', @@ -51,6 +51,9 @@ $defaults = [ ], ]; +// Ensure keys exist in defaults for the logic below +$defaults['primary']['network_primary_ipv6_prefix'] = ''; + if (file_exists($jsonFile)) { $raw = file_get_contents($jsonFile); $data = json_decode($raw, true); @@ -64,7 +67,7 @@ $success = ''; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $get = function ($k) { - return isset($_POST[$k]) ? trim((string)$_POST[$k]) : ''; + return isset($_POST[$k]) ? trim(( . (string)$_POST[$k]) : ''; }; $primary_mode = in_array($get('primary_mode'), ['dhcp', 'static', 'disabled']) ? $get('primary_mode') : 'dhcp'; @@ -84,7 +87,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $network_primary_ipv6_dns2 = $get('network_primary_ipv6_dns2'); $network_secondary_ip = $get('network_secondary_ip'); - $network_secondary_subnet = $get('network_secondary_subnet'); $network_secondary_gateway = $get('network_secondary_gateway'); $network_secondary_vlan = $get('network_secondary_vlan'); $network_secondary_dns1 = $get('network_secondary_dns1'); @@ -142,7 +144,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $backupDir = '/etc/netplan.backup'; exec("sudo rm -rf $backupDir"); - exec("sudo cp -a $netplanDir $backupDir", $out, $rc); + exec("sudo cp -a $netlanDir $backupDir", $out, $rc); exec("sudo cp /var/www/50-cloud-init.yaml /etc/netplan/50-cloud-init.yaml"); exec("sudo cp /var/www/00-stream.yaml /etc/netplan/00-stream.yaml"); @@ -166,7 +168,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { IPv4 mode :
- +
- - + + Gateway
- +
- +
-
@@ -289,19 +290,19 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
- +
- +
- - + +
- +