wimpyVersion = "v5.0.0"; // // // available at http://www.wimpyplayer.com // // ©2002-2006 plaino // // // // by Mike Gieson // // available at http://www.wimpyplayer.com // // ©2002-2006 plaino // // // // // // // ///////////////////////////////////////////////////////////////// // // // INSTALLATION: // // // ///////////////////////////////////////////////////////////////// // // Upload wimpy.php and wimpy.swf to the folder that // contains your mp3's. // // USE AT YOUR OWN RISK. // wimpyConfigFile = "wimpyConfigs.xml"; myWimpySWFfilename = "wimpy.swf"; wimpy_auth = "wimpy_auth.php"; media_types = "xml,mp3"; // // // // If you are using multibyte characters (i.e. Chinese, Korean // or non-alpha-numeric characters set useSysCodePage to yes. // useSysCodePage = "yes"; useSysCodePage = "no"; // // httpOption = "https"; httpOption = "http"; // // clearClassCache // Setting clearClassCache to false will optimize performance. By default // Wimpy removes any temporary files that ColdFusion stores. Temporary // files stored by ColdFusion can cause issues when modifying the contents // of your folders. i.e. if you add or remove files from the Wimpy folder, // ColdFusion may not recognize that the contents of the folder have changed, // because ColdFusion sometimes caches information. By default, Wimpy tries // to remove any cached information so that the most up to date information // is available in the player, however if you do not change the contents of // the Wimpy folder oftern, or if you have direct acces to the ColdFusion // admin panel, you may want to set this to false, which will optimize the // performance of the CFM page. clearClassCache = true; ///////////////////////////////////////////////////////////////// // // // DO NOT EDIT BELOW HERE // // // ///////////////////////////////////////////////////////////////// //> datasetup = "filename|artist|album|title|track|comments|genre|seconds|filesize|bitrate|visual"; v14 = Server.OS.Name.substring(0, 3); v13 = Server.ColdFusion.ProductVersion; IF(LCase(v14) EQ "win"){ v33 = "\"; } else { v33 = "/"; } v42 = GetBaseTemplatePath(); v43 = CGI.SERVER_NAME&CGI.PATH_INFO; v21 = ListToArray(v42, v33); v22 = ListToArray(v43, "/"); v41 = v22[ArrayLen(v22)]; ArrayDeleteAt(v21, ArrayLen(v21)); ArrayDeleteAt(v22, ArrayLen(v22)); v10 = ArrayToList(v21, v33); v12 = ArrayToList(v22, "/"); v11 = httpOption&"://"&v12; v43 = httpOption&"://"&v43; v44 = v10&v33; v23 = v11&"/"; wimpyApp = v43; wimpySwf = v11&"/"&myWimpySWFfilename; myConfigFile = v44&wimpyConfigFile; if(FileExists(myConfigFile)){ v37 = true; } else { v37 = false; } function v19(v34){ v25 = ReplaceNoCase (URLDecode(v34), v10, v11); v26 = ReplaceNoCase (v25, v33, "/", "All"); return v26; return httpOption&"://"&v30; } function f3(theURL){ v25 = ReplaceNoCase (URLDecode(theURL), v11, v10); v26 = ReplaceNoCase (v25, "/", v33, "All"); return v26; } function f2(v34){ return ListLast(Replace(URLDecode(v34), v33, "/"), "/"); } function v4(v18){ var v17 = createObject("java", "java.io.File"); v17.init(JavaCast("string", v18)); return v17.length(); } SetVariable(trim(v24.wimpyConfigs.XmlChildren[i].XmlName), trim(v24.wimpyConfigs.XmlChildren[i].XmlText)); if(not IsDefined("wimpySwf")){ wimpySwf = v11&"/"&myWimpySWFfilename; } if(not IsDefined("wimpyApp")){ wimpyApp = v43; } if(not IsDefined("wimpySkin")){ wimpySkin = ""; } if(not IsDefined("tptBkgd")){ tptBkgd = "yes"; } if(not IsDefined("bkgdColor")){ bkgdColor = "000000"; } if(not IsDefined("startDir")){ startDir = ""; } if(not IsDefined("hide_folders")){ hide_folders = "_notes,goodies,playlister_output,skins,getid3,_private,_private,_vti_bin,_vti_cnf,_vti_pvt,_vti_txt,cgi-bin"; } if(not IsDefined("hide_files")){ hide_files = "skin.xml,wimpyConfigs.xml,wimpyAVConfigs.xml,wimpy.swf,wimpyAV.swf,wasp.swf,wimpy_button.swf"; } if(not IsDefined("wimpyHTMLpageTitle")){ wimpyHTMLpageTitle = "Wimpy Player"; } if(not IsDefined("getMyid3info")){ getMyid3info = "no"; } if(not IsDefined("ecommerce")){ ecommerce = "no"; } if(not IsDefined("displayWidth")){ displayWidth = 0; } if(not IsDefined("displayHeight")){ displayHeight = 0; } if(not IsDefined("wimpySkin")){ wimpySkin = ""; } if(not IsDefined("defaultVisualExt")){ defaultVisualExt = "jpg"; } if(not IsDefined("defaultVisualBaseName")){ defaultVisualBaseName = "coverart"; } if(not IsDefined("limitPlaytime")){ limitPlaytime = "no"; } if(not IsDefined("limitPlaytimeSeconds")){ limitPlaytimeSeconds = "0"; } if(ecommerce EQ "yes"){ getMyid3info="yes"; forcedownload="no"; displayDownloadButton="yes"; } v38 = false; v29 = false; displayWidth = "480"; displayHeight = "140"; if(url.action EQ "v31"){ v29 = true; } if(v38 EQ true){ v24 = XmlParse(CFHTTP.FileContent); displayWidth = v24.skin.bkgd_main.xmlAttributes.width; displayHeight = v24.skin.bkgd_main.xmlAttributes.height; } v39 = false; if(not startDir EQ ""){ v10 = startDir; v44 = v10&v33; serveMP3 = "yes"; v39 = true; }

ERROR - You have requested that Wimpy read ID3 tags, however, the ID3 tag reader program "Helliker" has not been installed properly. Please see the helliker readme.txt file for how to install the Helliker. - OR - Set the "getMyid3info" option to "no"

SELECT name FROM classDir WHERE name like '%wimpy%' for (x=1; x lt ArrayLen(getMP3s); x=x+1){ artist = '#name#'; title = '#name#'; album = ''; track = ''; comments = ''; genre = ''; seconds = ''; bitrate = ''; visual = ''; id3Reader.init("#v44##name#"); artist = id3Reader.getArtist(); title = id3Reader.getTitle(); album = id3Reader.getAlbum(); track = id3Reader.getTrack(); comments = id3Reader.getComment(); genre = id3Reader.getGenre(); seconds = id3Reader.getPlayingTime(); bitrate = id3Reader.getBitRate(); v15 = v44&replaceNoCase(name,'.mp3','.jpg',"one"); if (FileExists(v15)){ if(v39 eq true){ visual = wimpyApp & "?action=getCoverart&theFile=" & v19(v15); } else { visual = v19(v15); } } else { visual = ""; } artist = ''; title = replaceNoCase(name,'.mp3','',"one"); album = ''; track = ''; comments = ''; genre = ''; seconds = ''; bitrate = ''; v15 = v44&replaceNoCase(name,'.mp3','.jpg',"one"); if (FileExists(v15)){ if(v39 eq true){ visual = wimpyApp & "?action=getCoverart&theFile=" & v19(v15); } else { visual = v19(v15); } } else { visual = ""; } artist = ''; title = ''; album = ''; track = ''; comments = ''; genre = ''; seconds = ''; bitrate = ''; v15 = v44&replaceNoCase(name,'.mp3','.jpg',"one"); if (FileExists(v15)){ if(v39 eq true){ visual = wimpyApp & "?action=getCoverart&theFile=" & v19(v15); } else { visual = v19(v15); } } else { visual = ""; } v30 = "&item" & row & "="; v30 = v30 & URLEncodedFormat(v19(v44 & name)) & "|"; v30 = v30 & URLEncodedFormat(artist) & "|"; v30 = v30 & URLEncodedFormat(album) & "|"; v30 = v30 & URLEncodedFormat(title) & "|"; v30 = v30 & URLEncodedFormat(track) & "|"; v30 = v30 & URLEncodedFormat(comments) & "|"; v30 = v30 & URLEncodedFormat(genre) & "|"; v30 = v30 & seconds & "|"; if (not compare(Type,'File')){ v30 = v30 & v4(v44 & name) & "|"; } else { v30 = v30 & "|"; } v30 = v30 & bitrate & "|"; v30 = v30 & URLEncodedFormat(visual) & "|"; #v30# v15 = v44&defaultVisualBaseName&"."&defaultVisualExt; if (FileExists(v15)){ if(v39 eq true){ visualURL = wimpyApp & "?action=getCoverart&theFile=" & v19(v15); } else { visualURL = v19(v15); } v30 = v30 & "&visualURL=" & URLEncodedFormat(visualURL); } v30 = v30 & "&totalitems=" & row; v30 = v30 & "&datasetup=" & datasetup; #v30# #wimpyVersion# v28 = wimpySwf; if(v37 EQ true){ v28 = v28&"?wimpyConfigs="&v11&"/"&wimpyConfigFile; } else { v28 = v28&"?wimpyApp="&wimpyApp; } if(bkgdColor EQ ""){ bkgdColor = "000000"; } if(tptBkgd EQ "yes"){ v40 = true; } else { v40 = false; } if(v40){ v35 = "wmode=""transparent"" "; v36 = ""; } else { v35 = ""; v36 = ""; } #wimpyHTMLpageTitle#
#v36#