Unable to display file "' . $fileType . '". Suggest support for this type in our Discord.
'; + } + echo '' . $filename . '
'; + echo '' . formatUnitSize($fileSize) . '
'; + echo 'diff --git a/webroot/dashboard/account.php b/webroot/dashboard/account.php index c795494..a80d12e 100644 --- a/webroot/dashboard/account.php +++ b/webroot/dashboard/account.php @@ -23,94 +23,63 @@ $stmt->bind_result($uid, $username, $email, $api_key, $discord_id, $role, $avata $stmt->fetch(); $stmt->close(); -$conn->close(); - checkDiscordLink($discord_id); $role_format = $role == 1 ? "Owner" : ($role == 2 ? "Admin" : ($role == 0 ? "User" : "Unknown")); + +ob_start(); ?> - - - -
- - -
-
-
-
-
-
- ';
- }
- ?>
-
+Username:
+UID:
+Discord ID:
+Email:
+Role:
Username:
-UID:
-Discord ID:
-Email:
-Role:
+Total Storage Used
- -Total Uploads
- -Total Users
- -Total Logins
- -Total Storage Used
+ +Total Uploads
+ +Total Users
+ +Total Logins
+Dynamic placeholders like %discord% (Discord link), %username% (user's name), %uploads% (user's upload count), %role% (user's role), %uid% (user ID), %storage% (user's storage usage), and date details (%year%, %month%, %monthformat%, %day%, %dayformat%, %date%) are automatically replaced with specific user or system information for personalized messages.
-Dynamic placeholders like %discord% (Discord link), %username% (user's name), %uploads% (user's upload count), + %role% (user's role), %uid% (user ID), %storage% (user's storage usage), and date details (%year%, %month%, + %monthformat%, %day%, %dayformat%, %date%) are automatically replaced with specific user or system information + for personalized messages.
+ +
-
-
-
-
-
+Unable to display file "' . $fileType . '". Suggest support for this type in our Discord.
'; + } + echo '' . $filename . '
'; + echo '' . formatUnitSize($fileSize) . '
'; + echo 'Unable to display file "' . $fileType . '". Suggest support for this type in our Discord.
'; - } - echo '' . $filename . '
'; - echo '' . formatUnitSize($fileSize) . '
'; - echo 'Storage Used
-/2.5 GB
-Uploads
- -User ID
- -Recent News
+Recent News
- -MOTD
- -Daily Uploads
- -Daily Unique Logins
- -MOTD
+Download ShareX here: https://getsharex.com/
+Download the ShareX upload config here: Download
+Run the ShareX upload config and click "Yes" when prompted
'; + } elseif ($_GET['type'] === 'ios') { + echo 'Download the Shortcuts app here
+Download the iOS shortcut here
+Copy your api key from your account settings
+Click "Set Up Shortcut"
+Paste your API Key then click "Add Shortcut" +
Optionally add the shortcut to a wiget on your home screen to easily upload files and run the shortcut
'; + } else { + echo 'Download ShareX here: https://getsharex.com/
-Download the ShareX upload config here: Download
-Run the ShareX upload config and click "Yes" when prompted
'; - } elseif ($_GET['type'] === 'ios') { - echo 'Download the Shortcuts app here
-Download the iOS shortcut here
-Copy your api key from your account settings
-Click "Set Up Shortcut"
-Paste your API Key then click "Add Shortcut" -
Optionally add the shortcut to a wiget on your home screen to easily upload files and run the shortcut
'; - } else { - echo '