whoami7 - Manager
:
/
home
/
bleuhbh
/
www
/
root
/
public
/
newRadio
/
Upload File:
files >> /home/bleuhbh/www/root/public/newRadio/webradioSuperWorking.php
<?php $musicDir = "../../../Musique Louis"; $files = scandir($musicDir); $audioFiles = array_filter($files, function($file) { return preg_match('/\.(mp3|wav|flac)$/i', $file); }); // Output headers header('Content-Type: audio/mp3'); header('Content-Disposition: inline; filename="stream.mp3'); header('Cache-Control: no-cache, no-store, must-revalidate'); header('Pragma: no-cache'); header('Expires: 0'); $fileCount = count($audioFiles); while(True) { $a = rand(0, $fileCount - 1); $randomFile = $musicDir . '/' . $audioFiles[$a]; $command = sprintf( '../../admin/php/ffmpeg/bin/ffmpeg -i %s -f %s -', escapeshellarg($randomFile), 'mp3' ); passthru($command); } ?>
Copyright ©2021 || Defacer Indonesia