From 3de6f0cd014f27d992fbe1a02f402803a47a33f3 Mon Sep 17 00:00:00 2001 From: Kyle Huynh Date: Mon, 21 Oct 2024 15:20:08 -0400 Subject: [PATCH] Disable Optimize database everytime database is opened Add progress loading bar when minting --- admin/NoidLib/custom/MysqlArkDB.php | 2 +- admin/admin.php | 62 +++++++++++++++++++++++++++++ admin/rest.php | 10 ++--- 3 files changed, 68 insertions(+), 6 deletions(-) diff --git a/admin/NoidLib/custom/MysqlArkDB.php b/admin/NoidLib/custom/MysqlArkDB.php index 295130f..ebd42b8 100644 --- a/admin/NoidLib/custom/MysqlArkDB.php +++ b/admin/NoidLib/custom/MysqlArkDB.php @@ -81,7 +81,7 @@ public function open($name, $mode) } // Optimize the table for better performance. - $this->handle->query("OPTIMIZE TABLE `" . $this->db_name . "`"); + //$this->handle->query("OPTIMIZE TABLE `" . $this->db_name . "`"); return $this->handle; } diff --git a/admin/admin.php b/admin/admin.php index 12f0357..a2f3888 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -1057,6 +1057,62 @@ function onChangeTerms(value) + + +
Ark IDs have been minted successfully.
+ '; Database::dbclose($noid); // redirect to the page. diff --git a/admin/rest.php b/admin/rest.php index 713315c..7586d0a 100644 --- a/admin/rest.php +++ b/admin/rest.php @@ -88,11 +88,11 @@ if (isset($_GET['stage']) && $_GET['stage'] == 'upload'){ // return result status echo purging(); - } - else { - echo json_encode("Invalid stage"); - } - break; + } + else { + echo json_encode("Invalid stage"); + } + break; } case 'bulkbind': {