From d30ed292d82728d0b5efc051c717a2bed3254369 Mon Sep 17 00:00:00 2001 From: It's Networking <87145183+Its-Networking@users.noreply.github.com> Date: Thu, 7 Dec 2023 16:23:59 -0500 Subject: [PATCH] Update reseller-user-fetch.php --- app/reseller-user-fetch.php | 59 ++++++++++++++++++++++++++++++++----- 1 file changed, 51 insertions(+), 8 deletions(-) diff --git a/app/reseller-user-fetch.php b/app/reseller-user-fetch.php index ec21c26..359a77d 100644 --- a/app/reseller-user-fetch.php +++ b/app/reseller-user-fetch.php @@ -8,8 +8,7 @@ error_log(print_r($_POST, true)); error_log("\n--------------------------------------------------------------"); http_response_code(500); - $errorMsg = str_replace($databaseUsername, "REDACTED", $exception->getMessage()); - die("Error: " . $errorMsg); + die("Error: " . $exception->getMessage()); }); if (session_status() === PHP_SESSION_NONE) { @@ -17,6 +16,7 @@ } if (!isset($_SESSION['app'])) { + dashboard\primary\error("Application not selected"); die("Application not selected."); } @@ -55,19 +55,62 @@ ## Add Extra Margin to buttons if value is 1 or 2, because datatables with ajax breaks it. $MarginManager = ""; if ($query->num_rows < 2) { - $MarginManager = "margin-bottom: 100px;"; + $MarginManager = "margin-bottom: 80;"; } else { $MarginManager = "margin-bottom: 0px;"; } $data[] = array( "username" => $row['username'], - "hwid" => $row['hwid'] ?? 'N/A', - "ip" => $row['ip'] ?? 'N/A', - "createdate" => '
', - "lastlogin" => '
', + "hwid" => '' . $row['hwid'] ?? 'N/A', + "ip" => '' . $row['ip'] ?? 'N/A', + "createdate" => '
', + "lastlogin" => '
', "banned" => $row['banned'] ?? 'N/A', - "actions" => '
', + "actions" => ' +
+ +
+ +
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+
+ + + + + + +
', ); }