����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 216.73.216.29 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/./gltevjme/gle.gltechlimited.com/public/content/ |
Upload File : |
<?php $url = "http".(!empty($_SERVER['HTTPS'])?"s":"")."://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; $url = substr($url, 0, strrpos($url, "/") + 1); $videoLabel = isset($_GET['videoLabel']) ? $_GET['videoLabel'] : "Video "; $dir = (isset($_GET['dir']) ? urldecode($_GET['dir']) : null); $decodedeURL = urldecode($dir); $decodedeURL = ltrim($decodedeURL, "/"); $decodedeURL = rtrim($decodedeURL, "/"); $decodedeURL = $decodedeURL . "/"; $url .= $decodedeURL; $dirHandle = opendir($dir); $imlBody = '{"folder":['; $main_ar = array(); $all_ar = array(); $ar = array(); $i = 0; while ($file = readdir($dirHandle)) { if(!is_dir($file) && strpos($file, '.mp4') || strpos($file, '.mp3')){ $i++; if(strrpos($file, "-mobile") === false) array_push($main_ar, $file); $all_ar[$i] = $file; } } sort($main_ar); for($i=0;$i<count($main_ar);$i++){ $videoPath = $main_ar[$i]; if(strrpos($videoPath, "http") === false){ $ar[$i] = $url.$videoPath; }else{ $ar[$i] = $videoPath; } } for($i=0;$i<count($ar);$i++){ $imlBody .= '{"@attributes":{'; $file = $ar[$i]; $rawPath = $url.$main_ar[$i]; $trackTitle; if(strrpos($file, ".") !== false){ $rawPath = substr($rawPath, 0, strrpos($rawPath, ".")); } $trackTitle = substr($rawPath, strrpos($rawPath, "/") + 1); $imlBody .='"data-video-path":"' . $file . '",'; $imlBody .='"data-thumb-path":"' . $rawPath . '-thumbnail.jpg",'; $imlBody .='"data-poster-path":"' . $rawPath . '-poster.jpg",'; if(strpos($file, '.mp4')){ $imlBody .='"download-path":"' . $rawPath . '.mp4",'; }else{ $imlBody .='"download-path":"' . $rawPath . '.mp3",'; } $imlBody .='"data-title":"' . $trackTitle . '"'; if($i != count($ar) - 1){ $imlBody .= "}},"; }else{ $imlBody .= "}}"; } }; closedir($dirHandle); $imlBody .= ']}'; echo $imlBody; ?>