Browse Source

html: set autofocus for login page

root 9 tháng trước cách đây
mục cha
commit
8dabf20352
2 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 1 1
      html/login.php
  2. 3 0
      scripts/updates/2-8-1/subnet.sql

+ 1 - 1
html/login.php

@@ -92,7 +92,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['submit'])) {
 		<label for="username">
 		    <i class="fas fa-user"></i>
 		</label>
-		<input type="text" name="login" placeholder="<?php echo WEB_msg_username; ?>" id="login" required>
+		<input type="text" name="login" placeholder="<?php echo WEB_msg_username; ?>" id="login" required autofocus>
 		<label for="password">
 		    <i class="fas fa-lock"></i>
 		</label>

+ 3 - 0
scripts/updates/2-8-1/subnet.sql

@@ -0,0 +1,3 @@
+DELETE FROM `subnets` WHERE subnet='10.0.0.0/8' AND free=1;
+DELETE FROM `subnets` WHERE subnet='192.168.0.0/16' AND free=1;
+DELETE FROM `subnets` WHERE subnet='172.16.0.0/12' AND free=1;