whoami7 - Manager
:
/
home
/
bleuhbh
/
www
/
root
/
public
/
newRadio
/
Upload File:
files >> /home/bleuhbh/www/root/public/newRadio/webradioSave5seconRefresh.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'); header("Refresh: 10"); // Fonction pour loguer les messages dans la console JS $logFile = "./" . date('Y_m_d_H_i_s_') . "streamNewStar.log"; $userAgent = $_SERVER['HTTP_USER_AGENT']; function logMessage($message) { global $logFile; global $userAgent; $timestamp = date('Y-m-d H:i:s'); file_put_contents($logFile, "[$timestamp] $userAgent $message\n", FILE_APPEND); } $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