connect_error) { die('Unable to access the database, please try again later'); } if (!checkUserSession($conn)) { setcookie('session', '', time(), "/", "", true, true); header('Location: /dashboard/login.php'); die(); } $checkedSession = true; $session = htmlspecialchars($_COOKIE['session']); $stmt = $conn->prepare("SELECT api_key, role, discord_id FROM users WHERE session = ?"); $stmt->bind_param("s", $session); $stmt->execute(); $stmt->bind_result($api_key, $role, $discord_id); $stmt->fetch(); $stmt->close(); checkDiscordLink($discord_id); ob_start(); ?>

Upload Tools

Windows - Upload Configuration

Download ShareX here

Download the ShareX upload config here

Run the ShareX upload config and click "Yes" when prompted

'; } elseif ($_GET['type'] === 'ios') { echo '

iOS - Upload Configuration

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 '

This platform will be supported soon!

'; } } else { header('Location: /dashboard/settings.php'); } echo ''; echo '
'; $content = ob_get_clean(); $title = 'Upload Tools'; include 'layout.php'; ?>