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: index.html
Close
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Check YouTube Subscription</title> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> </head> <body> <h1>Check if You are Subscribed to a YouTube Channel</h1> <!-- Login Button --> <button id="login_button">Login with Google</button> <br><br> <!-- Subscription Check --> <button id="check_subscription">Check Subscription</button> <p id="status"></p> </body> <script> $(document).ready(function () { // Click event for login button $('#login_button').click(function () { window.location.href = 'oauth.php'; // Redirect to OAuth page for authentication }); $('#check_subscription').click(function () { // Make an AJAX request to check the subscription status $.ajax({ url: 'subscription_check.php', type: 'POST', data: { }, success: function (response) { var data = JSON.parse(response); if (data.error) { if (data.login_required) { // If user is not authenticated, prompt them to log in $('#status').text('You need to log in to check subscriptions. Redirecting to login...'); window.location.href = 'oauth.php'; // Redirect to login page (OAuth) } else { $('#status').text('Error: ' + data.error); } } else { if (data.is_subscribed) { $('#status').text('You are subscribed to this channel.'); } else { $('#status').text('You are not subscribed to this channel.'); } } }, error: function () { $('#status').text('An error occurred while checking the subscription status.'); } }); }); }); </script> </html>