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(); } $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(); $conn->close(); checkDiscordLink($discord_id); ?> Xytriza's Uploading Service - Upload Tools

Upload Tools

Windows - Upload Configuration

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 '

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 '

Other Platform support coming soon!

'; } } else { header('Location: /dashboard/settings.php'); } echo ''; ?>