diff --git a/encoder/firewall.php b/encoder/firewall.php index a9dc454..e13def7 100644 --- a/encoder/firewall.php +++ b/encoder/firewall.php @@ -1,13 +1,13 @@ '', '443' => '', '1935' => '', - '1937' => '' + '1937' => '', + '8080' => '', ]; if (file_exists($jsonFile)) { @@ -17,12 +17,12 @@ if (file_exists($jsonFile)) { } } - if ($_SERVER['REQUEST_METHOD'] === 'POST') { foreach ($data as $port => $val) { $data[$port] = trim($_POST["port_$port"] ?? ''); } file_put_contents($jsonFile, json_encode($data, JSON_PRETTY_PRINT)); + } @@ -60,12 +60,24 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { input[type=text] { width: 100%; - padding: 10px; - border-radius: 6px; + padding: 16px 14px; + border-radius: 8px; border: 1px solid #ccc; - font-size: 14px; + font-size: 11px; + line-height: 1.4; } + textarea { + width: 100%; + padding: 14px; + border-radius: 8px; + border: 1px solid #ccc; + font-size: 17px; + line-height: 1.5; + resize: vertical; + } + + input[type=text]:invalid { border-color: #d33; } @@ -74,6 +86,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { color: #666; } + input[type=text]:focus { + outline: none; + border-color: #2563eb; + box-shadow: 0 0 0 2px rgba(37, 99, 235, .15); + } + button { margin-top: 20px; padding: 12px 18px; @@ -124,26 +142,28 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {