´ç½Å¿¡°Ô·Î ¶°³ª´Â ²Þ¼Ó¿©Çà - ²Þ¼Ó³ª¶ó(http://www.inyourdream.net)
ID¿Í Password¸¦ ÀÔ·ÂÇϼ¼¿ä.
ÀÔ±¹Çϱâ
|
¿µÁÖ±Ç ½Åû
¸öºÎ¸² °ñ¶ó°ñ¶ó
¼Ò±Ù¼Ò±Ù
µµ¶õµµ¶õ
³«¼¸¶´ç
Âø°¢ÇѾÆÀÌ
¼ýÀÚ¸ÂÃß±â
¼Ò¿øºô±â
ÈçÀû³²±â±â
²Þ¼Ó¿©Çà
Ä£±¸Áý ³î·¯°¡±â
¸ðµÎµå¸²´ÔÀÇ È¨
î¤éÞ´ÔÀÇ È¨
Çö¿ì´ÔÀÇ È¨
º°¾ÆÇØ´ÔÀÇ È¨
ÇÞ»ì´ÔÀÇ È¨
À̳ª´Ï´ÔÀÇ È¨
À¯¸®¾Ë´ÔÀÇ È¨
³È³ÈÀÌ´ÔÀÇ È¨
²ÀÁö´ÔÀÇ È¨
´ë¼º´ÔÀÇ È¨
¼öÁ¤ÇϽǶ§´Â ÇʼöÇ׸ñÀ» ¸ðµÎ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.
À̸§
*
°øÁö»çÇ×
ºñ°ø°³
HTML »ç¿ë
Á¦¸ñ
*
¼±ÅÃ
ÀÚÀÛ
»ç¶û
À¯¸Ó
ÀÚÀ¯
̵̧
¾Ë¸²
Áú¹®
±âŸ
³»¿ë
*
XMLÀΰ¡ ¸Õ°¡¸¦ ÇØ¾ßµÇ´Â°Í °°Àºµð... ÄÄÆÛ³ÍÆ®µµ ¼³Ä¡ÇÏ°í(Á¤È®ÇÑÁö´Â ¸ð¸£°ÚÁö¸¸)... ´Ù Çغôµ𠽺Ʈ¸²ÀÌ Á×¾ú´Ù°í ³ª¿À³»¿ä ¤Ð.¤Ð ´ä Á» ÁÖ¼¼¿ä.. ¤Ñ¤Ñ;;; http://on-air.co.kr/shoutcast/ <%@LANGUAGE=JavaScript%> <% // // This is a sample .ASP page written in Server Side JavaScript that will // allow you to retrieve XML stats from ShoutCast server and use them to // dynamically display song titles and song history. There is much more info in // ShoutCast XML than song titles and song history. If you figure out this script, // you'll be easily able to obtain any information ShoutCast provides. // // You can access ShoutCast XML stats by hitting this url with your browser: // http://my.server.ip:port/admin.cgi?pass=mypass&mode=viewxml // // Author: Janis Braslins [psi@bassdrive.com] [psilocybe on EFNet] // Date: 10/05/2000 // // Revisions: // // 01/07/2001 -- Bug fixes for ShoutCast version 1.8.0 // All modifications are marked in red. // You can still use modified version with previous // versions of ShoutCast. // // 03/18/2001 -- Replaced the VBScript URLDecode function with a // simple JavaScript function which uses // decodeURIComponent method. // // USE THIS SCRIPT ANY WAY YOU WANT IT! COPY IT, CLAIM YOU WROTE IT, DO WHATEVER // YOU PLEASE. // function URLDecode(psURL) { var sURL = new String(psURL); var sResult = ""; try { sResult = decodeURIComponent(sURL); } catch (e) { sResult = "....."; } return sResult; } // Configure your stuff here (i.g. Server IP, Port, Password etc.) var sServer = "61.72.94.26"; var sPort = "8000"; var sPass = "changeme"; var sBackURL = "/"; var sPageTitle = "BassDrive - Track History"; // This text will be displayed if for some reason we could not obtain information // form ShoutCast server. var sDownStream = "The stream is down ;("; // No configuration stuff beyond this point. var sTitle = ""; Response.Expires = -1; var bContinue = true; // Ok, we are absorbing all exceptions here, you dont want your page to blow up // just because the ShoutCast server is down, or something screwed up somewhere // in the fabric of space. try { // We use Microsoft XML DOM to parse through stats XML ShoutCast server gives us. var oXML = Server.CreateObject("Msxml2.DomDocument"); oXML.async = false; // We need this date in URL to avoid stupid caching issues Microsoft XMLHTTP has. var oDate = new Date(); var sDate = Server.URLEncode(oDate.toUTCString()); var sURL = "http://" + sServer + ":" + sPort + "/admin.cgi?pass=" + Server.URLEncode(sPass) + "&mode=viewxml&date=" + sDate; // We use Microsoft XMLHTTP to retreive the XML with stats from ShoutCast server. var oTrans = Server.CreateObject("Msxml2.ServerXMLHTTP"); oTrans.open("GET", sURL, false); oTrans.send(oXML); // Now, for some reason DTD of shoutcast XML screws up the Microsoft XML parser. // To avoid this, we just gonna strip all this header crap and leave only the // juicy stuff. var sXML = new String(oTrans.responseText); sXML = sXML.substr(sXML.indexOf("
")); oXML.loadXML(sXML); var oDoc = oXML.documentElement; // Obtaining the title of the currently playing song. var sTitle = new String(oDoc.selectSingleNode("//SONGTITLE").text); sTitle = URLDecode(sTitle); // Here we strip all the annoying track numbers in front of song titles. // i.e. "01 - Andy C - Titan" or "01. Andy C - Titan" etc will be transformed // into "Andy C - Titan" sTitle = sTitle.replace(/^[0-9]+[\.]+\s/i, ""); sTitle = sTitle.replace(/^[0-9]+[\s-]+\s/i, ""); // Encoding the song name, so weird characters dont break HTML. var sTitle = Server.HTMLEncode(sTitle); } catch (e) { sTitle = Server.HTMLEncode(sDownStream); bContinue = false; } %>
<%=sPageTitle%>
Currently Playing:
<%=sTitle%>
History:
<% // Ok, lets check if we gont the info we needed from the ShoutCast server if (bContinue) { // We have the stuff, lets build the history ... try { // Getting the number of songs in History. // First song is the currently playing song, so we gonna start our // loop from the second song (index of 1) var oSongs = oDoc.selectNodes("//SONG"); i = oSongs.length; if (i > 1) { for (n=1; n < oSongs.length; n++) { var oSong = oSongs.item(n); // Ok, lets get the song title ... var sTitle = new String(oSong.selectSingleNode("TITLE").text); sTitle = URLDecode(sTitle); // Lets clean up the title, as we do above. sTitle = sTitle.replace(/^[0-9]+[\.]+\s/i, ""); sTitle = sTitle.replace(/^[0-9]+[\s-]+\s/i, ""); // Encode it ... var sTitle = Server.HTMLEncode(sTitle); %>
<%=sTitle%>
<% } } } catch (e) { // Do Nothing } } %>
[ Back ]
Ãß°¡ÇÒ À̹ÌÁö¸¦ ÀÔ·ÂÇϼ¼¿ä.
À̹ÌÁö 1
À̹ÌÁö¼³¸í 1
Ãß°¡ÇÒ ÀڷḦ ÀÔ·ÂÇϼ¼¿ä.
ÀÚ·á 1
ÀÚ·á¼³¸í 1
Ãß°¡ÇÒ ½ÎÀÌÆ®¸¦ ÀÔ·ÂÇϼ¼¿ä.
°ü·Ã½ÎÀÌÆ® 1
½ÎÀÌÆ®¼³¸í 1
Password
*