OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
reeliv
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/28/2024 11:03:35 AM
rwxrwxr-x
📄
about.html
3.05 KB
09/04/2024 10:58:07 AM
rw-r--r--
📄
activate.php
2.56 KB
09/04/2024 10:58:07 AM
rw-r--r--
📁
admin
-
09/04/2024 10:58:10 AM
rwxr-xr-x
📄
article.php
16.58 KB
09/04/2024 10:58:07 AM
rw-r--r--
📁
audio
-
09/04/2024 10:58:34 AM
rwxr-xr-x
📄
backend.php
11.94 KB
09/04/2024 10:58:07 AM
rw-r--r--
📄
colortest.php
24.1 KB
09/04/2024 10:58:07 AM
rw-r--r--
📄
contact.html
2.79 KB
09/04/2024 10:58:07 AM
rw-r--r--
📄
dashboard.php
12.75 KB
09/04/2024 10:58:07 AM
rw-r--r--
📁
eyecandy
-
09/04/2024 10:58:35 AM
rwxr-xr-x
📄
geo_location.php
3.55 KB
09/04/2024 10:58:07 AM
rw-r--r--
📁
grfx
-
09/04/2024 10:58:35 AM
rwxr-xr-x
📁
inc
-
09/04/2024 10:58:36 AM
rwxr-xr-x
📄
index.html
11.81 KB
09/04/2024 10:58:07 AM
rw-r--r--
📄
info.php
14 bytes
09/04/2024 10:58:07 AM
rw-r--r--
📄
new.php
879 bytes
09/04/2024 10:58:07 AM
rw-r--r--
📁
newReader
-
09/04/2024 10:59:59 AM
rwxr-xr-x
📄
phonedashboard.php
24.05 KB
09/04/2024 10:58:07 AM
rw-r--r--
📄
privacy.html
9.99 KB
09/04/2024 10:58:07 AM
rw-r--r--
📁
process
-
09/04/2024 11:00:15 AM
rwxr-xr-x
📄
refund.html
7.34 KB
09/04/2024 10:58:07 AM
rw-r--r--
📄
reset.html
3.01 KB
09/04/2024 10:58:07 AM
rw-r--r--
📄
signup.html
8.08 KB
09/04/2024 10:58:07 AM
rw-r--r--
📄
splash.html
1.11 KB
09/04/2024 10:58:07 AM
rw-r--r--
📄
testing.php
4.29 KB
09/04/2024 10:58:07 AM
rw-r--r--
📁
texttovoice
-
09/04/2024 11:00:16 AM
rwxr-xr-x
📁
thumbsUp
-
09/04/2024 11:00:16 AM
rwxr-xr-x
📄
usage.html
30.88 KB
09/04/2024 10:58:07 AM
rw-r--r--
📄
zzzdashboard.php
11.95 KB
09/04/2024 10:58:07 AM
rw-r--r--
Editing: testing.php
Close
<?php function extractThumbnailUrl($xmlContent) { // Define a regular expression pattern to match the media:thumbnail tag and extract the URL $pattern = '/<media:thumbnail\s+url="([^"]+)"\s+width="\d+"\s+height="\d+"\/>/'; // Perform the regular expression match if (preg_match($pattern, $xmlContent, $matches)) { // $matches[1] contains the URL $thumbnailUrl = $matches[1]; return htmlspecialchars($thumbnailUrl); } else { return null; } } function extractVideoIdFromXml($inputString) { // Define a regular expression pattern to match and extract the videoId from <yt:videoId> $pattern = '/<yt:videoId>([^<]+)<\/yt:videoId>/'; // Perform the regular expression match if (preg_match($pattern, $inputString, $matches)) { // $matches[1] contains the videoId return $matches[1]; } else { return 'Video ID not found.'; } } function printRssFeedData($feedUrl) { $return = []; // Fetch the feed content $feedContent = @file_get_contents($feedUrl); // Handle errors if the content could not be fetched if ($feedContent === FALSE) { echo 'Error fetching the RSS feed.'; return; } // Parse the XML data $xml = new SimpleXMLElement($feedContent); // Register namespaces for use with SimpleXMLElement $namespaces = $xml->getNamespaces(true); $mediaNamespace = $namespaces['media']; $channelTitle = htmlspecialchars($xml->title); // Loop through each entry in the feed foreach ($xml->entry as $entry) { $videoId = extractVideoIdFromXml($entry->asXML()); $title = (string) $entry->title; $link = (string) $entry->link['href']; $description = ''; $thumbnailUrl = ''; // Access media namespace elements $mediaGroup = $entry->children($mediaNamespace)->group; if ($mediaGroup) { // Access media namespace elements $descriptionElement = $mediaGroup->children($mediaNamespace)->description; $thumbnailElement = $mediaGroup->children($mediaNamespace)->thumbnail; // Get values from media elements $description = (string) $descriptionElement; // Access attributes in namespaced elements $thumbnailUrl = extractThumbnailUrl($thumbnailElement->asXML()); } $publishedDate = (string) $entry->published; $return[] = [ "id" => $videoId, "channel" => $channelTitle, "title" => $title, "link" => $link, "description" => $description, "publishedDate" => $publishedDate, "thumbnail" => $thumbnailUrl, "embed" => htmlspecialchars(generate_embedded_code($videoId, $title)) ]; } return $return; } function generate_embedded_code($videoCode, $title) { $url = '<iframe width="480" height="270" src="https://www.youtube.com/embed/' . urlencode($videoCode) . '" title="' . $title . '" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen> </iframe>'; return $url; } // Array of RSS feed URLs $rssFeedUrls = [ 'https://www.youtube.com/feeds/videos.xml?channel_id=UCLtCejNl8eAg4PO_9lf2TIg', 'https://www.youtube.com/feeds/videos.xml?channel_id=UCnSqxrSfo1sK4WZ7nBpYW1Q', 'https://www.youtube.com/feeds/videos.xml?channel_id=UCyvSN-Hw7dQ3IwV_w9NL5RA' ]; foreach ($rssFeedUrls as $rss) { $data = printRssFeedData($rss); foreach ($data as $ele) { echo '<div>'; echo '<h2>' . htmlspecialchars($ele['title']) . '</h2>'; echo '<p><a href="' . htmlspecialchars($ele['link']) . '">Watch Video</a></p>'; echo '<p>' . htmlspecialchars($ele['description']) . '</p>'; echo '<p>Published on: ' . htmlspecialchars($ele['publishedDate']) . '</p>'; echo '<img src="' . htmlspecialchars($ele['thumbnail']) . '" alt="' . htmlspecialchars($ele['title']) . ' Thumbnail">'; echo '<b>Watch Now!!</b>' . htmlspecialchars_decode($ele['embed']); echo '</div><hr><br><br><br>'; } }