 |
|
|  |
| [Shoutcast] 스트리밍 노래제목을 변경 스크립트 |
|
|
 |
10년 전 |
<?php
//config part
$radiodj_password = "radiodj password"; //radiodj password
$shoutcast_ip = "localhost"; // Server Address
$shoutcast_port = "8000"; // Server Port
$shoutcast_pass = "admin_password"; // Admin Password
//send title
if ((isset($_POST["xpwd"])) && (isset($_POST["title"]))) {
$xpwd = stripcslashes($_POST["xpwd"]);
if ($xpwd == $radiodj_password) {
$data = stripcslashes($_POST["title"]);
$data = rawurlencode($data);
$fp = @fsockopen($shoutcast_ip, $shoutcast_port, $errno, $errstr, 4);
if ($fp) {
fputs($fp, "GET /admin.cgi?pass=" . $shoutcast_pass . "&mode=updinfo&song=" . $data . " HTTP/1.0\r\n");
fputs($fp, "User-Agent: Mozilla\r\n\r\n");
fclose($fp);
echo "노래 제목이 업데이트되었습니다.";
} else
echo "서버에 접속할 수 없습니다.";
} else
echo "! 패스워드가 틀립니다.";
} else {
echo "잘못된 접속입니다.";
}
?>
|
|
추천 : 573 |
추천
목록
|
|
|  |
|