From ea3f2b6d7d8334c3111c2a054c45707822464936 Mon Sep 17 00:00:00 2001 From: HyphenHook Date: Tue, 25 Jun 2024 13:55:42 -0400 Subject: [PATCH] Added checks to prevent infinite ARK value minting --- admin/admin.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/admin/admin.php b/admin/admin.php index acee8e0..f7d9b88 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -1056,7 +1056,7 @@ function onChangeTerms(value)
0) { // backup database before bulk binding Database::backupArkDatabase(); @@ -1070,12 +1070,19 @@ function onChangeTerms(value) - '; + '; Database::dbclose($noid); // redirect to the page. header("Location: admin.php?db=" . $_GET["db"]); } + else if ($_SERVER["REQUEST_METHOD"] == "POST" && (empty($_POST['mint-number']) || $_POST['mint-number'] <= 0)) { + print ' + + '; + } ?>

Minted Arks