| 
| [Shoutcast] ½ºÆ®¸®¹Ö ³ë·¡Á¦¸ñÀ» º¯°æ ½ºÅ©¸³Æ® |  |  
|  |  |    | 9³â Àü |  | 
| <?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 "À߸øµÈ Á¢¼ÓÀÔ´Ï´Ù.";
 
 }
 
 
 ?>
 
 | 
 |  
|  ̵̧ : 478 | ̵̧
¸ñ·Ï |  |