fixing a bug in install db

This commit is contained in:
jakani24
2024-04-26 13:51:45 +02:00
parent f6fe002da6
commit 0e80480f16
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@
password VARCHAR(255), password VARCHAR(255),
2fa VARCHAR(255), 2fa VARCHAR(255),
telegram_id VARCHAR(255), telegram_id VARCHAR(255),
user_hex_id VARCHAR(255): user_hex_id VARCHAR(255),
credential_id VARBINARY(64), credential_id VARBINARY(64),
public_key TEXT, public_key TEXT,
counter INT counter INT

View File

@@ -97,7 +97,7 @@ $filter_query = "&loglevel=$loglevel&logtext=$logtext&machine_id=$machine_id&tim
//now display the normal page //now display the normal page
// Define page size and current page // Define page size and current page
$page_size = 50; $page_size = 50;
$current_page = htmlspecialchars(isset($_GET['page']) ? intval($_GET['page']) : 1; $current_page = htmlspecialchars(isset($_GET['page']) ? intval($_GET['page']) : 1);
$offset = ($current_page - 1) * $page_size; $offset = ($current_page - 1) * $page_size;
// Get total number of log entries based on filters // Get total number of log entries based on filters