OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
quiz
/
backup
/
old_backup
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📁
backup
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📄
callback.php
846 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📁
data
-
02/15/2025 11:20:34 AM
rwxr-xr-x
📄
function.php
5.06 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
index.html
2.27 KB
02/15/2025 11:21:46 AM
rw-r--r--
📄
oauth.php
332 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
register.php
5.29 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
subscription_check.php
1.37 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
verify.php
2.21 KB
05/19/2025 10:07:16 AM
rw-r--r--
Editing: callback.php
Close
<?php session_start(); // Include the functions file require_once('function.php'); // Step 1: Ensure the user is authenticated (access token is available) ensureAuthenticated(); // Step 2: Get the access token from session $access_token = getAccessTokenFromSession(); // Step 3: Fetch the user's subscriptions from the YouTube API $subscriptions_data = fetchYouTubeSubscriptions($access_token); var_dump($subscriptions_data); // Step 4: Provide the channel ID you want to check $channel_id_to_check = 'UC4MqIPSKb2FLYyPZQTDuqPQ'; // Replace with the channel ID you want to check // Step 5: Check if the user is subscribed to the specified channel $is_subscribed = checkIfSubscribed($subscriptions_data, $channel_id_to_check); // Step 6: Display the subscription status displaySubscriptionStatus($is_subscribed); ?>