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(); ?>
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 '