ȸ¿ø°¡ÀԡžÆÀ̵ð/ºñ¹øã±â
ȨÀ¸·Î


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

}


?>
ÃßõÃßõ : 347 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
365
jQuery.get() HTTP GET ¹æ½Ä Ajax ¿äû
364
jQuery.post(), Ajax HTTP POST ¹æ½Ä ¿äû
363
jQuery.getJSON, JSON µ¥ÀÌÅ͸¦ ·Îµå
362
jQuery length¿Í slideToggle ¿¹Á¦
361
[CSS] before¿Í after ¼±ÅÃÀÚ¸¦ ÀÌ¿ëÇÏ¿© Float ¼Ó¼º ÇØÁ¦
360
jQuery toggleClass() Methods
359
jQuery stop(),Callback,Chaining
358
jQuery Effects - Animation
357
jQuery Effects - Sliding
356
jQuery fadeIn(), fadeOut(), fadeToggle(), fadeTo()
355
jQuery hide(), show(), toggle()
354
jquery trigger(), ÇÔ¼ö ½ÇÇà½ÃÅ°±â
353
Æú´õ¾ÈÀÇ ÆÄÀÏ °¡Áö°í ³î±â
352
ÆÄÀ̽㿡¼­ À¯´ÏÄÚµå ½ºÆ®¸² ´Ù·ç±â
351
Python 2.x ÇÑ±Û ÀÎÄÚµù °ü·Ã Á¤¸®
350
htmlspecialchars, entity decode
349
Php : Finding Chrome and Safari Browsers
348
[Shoutcast] jPlayer and Shoutcast Configuration
347
[Shoutcast] ÇöÀç Ç÷¹À̵Ǵ °î¸í ½ºÅ©¸³Æ® PHP
[Shoutcast] ½ºÆ®¸®¹Ö ³ë·¡Á¦¸ñÀ» º¯°æ ½ºÅ©¸³Æ®
345
Shoutcast PHP Scripts
344
FTP¿¡¼­ »èÁ¦ ¾ÈµÇ´Â ÆÄÀÏÀ̳ª Æú´õ »èÁ¦Çϱâ
343
DAUM ¿ìÆí¹øÈ£ ¼­ºñ½º È°¿ëÇϱâ
342
jquery checkbox Àüü ¼±ÅÃ, Àüü ÇØÁ¦, üũ °ª ÃßÃâ
341
Setting .htaccess to allow PHP to be accessed with .xml extension
340
jQuery API: Manipulation, Events, Effects, Internals, Utilities
339
[Android] Intent È°¿ë ¿¹½Ã
338
HTML5 °ü·Ã À¯¿ëÇÑ ·¹ÆÛ(ÂüÁ¶) »çÀÌÆ®
337
IE6~7 ¹®Á¦ÇØ°á
336
³ª´®°íµñ ±¸±Û À¥ÆùÆ®(Webfont) »ç¿ëÇϱâ
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.