OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
3-31-025chanakya
/
reels
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/31/2025 06:36:42 AM
rwxr-xr-x
📁
assets
-
03/26/2025 04:15:54 AM
rwxr-xr-x
📄
comment.php
441 bytes
03/26/2025 03:48:11 AM
rw-r--r--
📄
db.php
252 bytes
03/26/2025 03:48:11 AM
rw-r--r--
📄
fetch_videos.php
639 bytes
03/26/2025 03:48:11 AM
rw-r--r--
📄
index.php
2.11 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
like.php
285 bytes
03/26/2025 03:48:11 AM
rw-r--r--
📄
upload.php
1.52 KB
03/26/2025 03:48:11 AM
rw-r--r--
📁
uploads
-
03/26/2025 04:20:08 AM
rwxr-xr-x
Editing: index.php
Close
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Reels</title> <style> .video-container { margin-bottom: 20px; text-align: center; } video { width: 100%; max-width: 500px; margin-bottom: 10px; } .actions button { margin: 5px; } .comments { margin-top: 10px; } </style> </head> <body> <h1>Reels</h1> <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="file" name="video" required> <button type="submit">Upload</button> </form> <div id="reels"> <?php include 'fetch_videos.php'; ?> </div> <script> function likeVideo(videoId) { fetch('like_video.php', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: 'video_id=' + videoId }).then(response => response.text()) .then(data => alert(data)); } function showCommentBox(videoId) { const commentBox = document.createElement('div'); commentBox.innerHTML = ` <input type="text" id="comment-input-${videoId}" placeholder="Write a comment..."> <button onclick="postComment(${videoId})">Post</button> `; document.getElementById(`comments-${videoId}`).appendChild(commentBox); } function postComment(videoId) { const comment = document.getElementById(`comment-input-${videoId}`).value; fetch('comment_video.php', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: 'video_id=' + videoId + '&comment=' + encodeURIComponent(comment) }).then(response => response.text()) .then(data => alert(data)); } </script> </body> </html>