= 2) { $keyval = trim(substr($rowa[0],1)); $valval = trim($rowa[count($rowa)-1]); if ($valval == "true") {$valval = true;} elseif ($valval == "false") {$valval = false;} $andromedaPrefs[$keyval] = $valval;}}}}} function loadSkin () { global $andromedaConst,$andromedaPrefs; if (file_exists($andromedaConst["scriptPhysicalPath"] . "/" . $andromedaPrefs["skinFile"])) { $fcontents = file ($andromedaConst["scriptPhysicalPath"] . "/" . $andromedaPrefs["skinFile"]); for ($i = 0; $i < count($fcontents); $i++) { $row = $fcontents[$i]; $rowa = explode("\t",$row); if (count($rowa) >= 2) { $keyval = trim($rowa[0]); $valval = trim($rowa[count($rowa)-1]); if ($valval == "true") {$valval = true;} elseif ($valval == "false") {$valval = false;} $andromedaPrefs[$keyval] = $valval;}}}} function loadLogons () { global $andromedaConst,$andromedaPrefs,$andromedaLogons; if (file_exists($andromedaConst["scriptPhysicalPath"] . "/" . $andromedaPrefs["logonFile"])) { $fcontents = file ($andromedaConst["scriptPhysicalPath"] . "/" . $andromedaPrefs["logonFile"]); for ($i = 0; $i < count($fcontents); $i++) { $row = $fcontents[$i]; if (substr($row,0,1) == "#") { $rowa = explode("\t",$row); if (count($rowa) >= 2) { $keyval = trim(substr($rowa[0],1)); $valval = trim($rowa[count($rowa)-1]); $andromedaLogons[$keyval] = $valval;}}}}} function vPath ($x) { $vpchk = true; if ($x != "") { $vptmpa = explode("/",str_replace("\\","/",$x)); if ($vptmpa[0] != "") {$vpchk = false;} else { for ($vpi = 1; $vpi < count($vptmpa); $vpi++) { if (($vptmpa[$vpi] == "") || ($vptmpa[$vpi] == ".") || ($vptmpa[$vpi] == "..")) { $vpchk = false; break;}}}} return $vpchk;} function andromedaHeader ($x) {andromedaHeaderCore($x,false);} function andromedaHeaderCore ($x,$y) { global $andromedaConst, $andromedaPrefs, $clangCodes; if (!$andromedaPrefs["disableHTMLheaders"]) { echo "" . htmlspecialchars($andromedaPrefs["siteName"] . ": " . $x) . ""; if ($andromedaPrefs["cssLinkHref"] != "") { echo "";} echo "";} if ($y) { echo "";} if ($andromedaConst["moduleMode"]) {include("header.php");} else { if ($andromedaPrefs["includeHeader"] != "") { include($andromedaPrefs["includeHeader"]);}} echo $andromedaPrefs["absoluteHeader"]; echo "
"; colorbars($andromedaPrefs["headDiv"]); if (!$andromedaPrefs["hideMenubar"]) { echo "
"; imagetag("h","i",trans(17)); echo ""; ipad(4,1); echo "" . $andromedaPrefs["siteName"] . "
"; if ($andromedaPrefs["ftpPath"] != "") { echo "";} echo "
"; imagetag("t","i",trans(20)); echo ""; ipad(4,1); echo ""; imagetag("i","i",$andromedaConst["appname"] . ": " . trans(17)); echo "
"; echo "
"; colorbars($andromedaPrefs["menubarDiv"]);} if ($andromedaPrefs["customHeader"] != "") { echo "
" . $andromedaPrefs["customHeader"] . "
"; colorbars($andromedaPrefs["bodyFgDiv"]);} flush();} function andromedaFooter () { global $andromedaPrefs, $andromedaConst, $rosetta, $currentLanguage, $clangCodes; if ($andromedaPrefs["customBlock"] != "") { echo "
" . $andromedaPrefs["customBlock"] . "
"; colorbars($andromedaPrefs["bodyFgDiv"]);} echo "
"; addvpad(12); if ($andromedaPrefs["email"] != "") { echo trans(26) . " » "; if ($andromedaPrefs["disableHTMLheaders"]) { echo "" . $andromedaPrefs["email"] . "";} else { echo "" . $andromedaPrefs["email"] . "";} addvpad(12);} if ($andromedaPrefs["permitTranslation"]) { echo ""; if ($andromedaConst["moduleMode"]) { echo "";} echo "
"; ipad(4,1); echo ""; imagetag("g","f",""); echo "
"; addvpad(12);} if (!$andromedaPrefs["hidePoweredby"]) { $ptag = trans(27); if ($andromedaPrefs["disableHTMLheaders"]) { $ptag = str_replace("#a","" . $andromedaConst["appname"] . "",$ptag);} else { $ptag = str_replace("#a","" . $andromedaConst["appname"] . "",$ptag);} echo str_replace("##",$andromedaConst["andromedaVersion"],$ptag); addvpad(12);} echo "
"; colorbars($andromedaPrefs["footDiv"]); echo "
"; echo $andromedaPrefs["absoluteFooter"]; if ($andromedaConst["moduleMode"]) {include("footer.php");} else { if ($andromedaPrefs["includeFooter"] != "") { include($andromedaPrefs["includeFooter"]);}} if (!$andromedaPrefs["disableHTMLheaders"]) {echo "";} echo "";} function showfolder ($x) { global $andromedaPrefs, $totalrowcount; if (file_exists($andromedaPrefs["mediaPhysicalPath"] . $x)) { $folderName = displayName($x,false); andromedaHeader($folderName); folderOpenNote($x . "/" . $andromedaPrefs["folderOpenInfo"] . ".txt"); navbar3($x,"browse"); if ($andromedaPrefs["permitPlaylists"]) {playlistFormHead(true);} colorbars($andromedaPrefs["bodyFgToRowDiv"]); $subfolders = getsubfolders($x); for ($i = 0; $i < count($subfolders); $i++) { folderrow($x . "/" . $subfolders[$i],false,true); rowNote($x . "/" . $subfolders[$i] . "/" . $andromedaPrefs["folderListInfo"] . ".txt",$x . "/" . $subfolders[$i]); flush();} $mp3s = getmp3s($x); for ($i = 0; $i < count($mp3s); $i++) { filerow($x . "/" . $mp3s[$i],false,true); rowNote($x . "/" . getbasename($mp3s[$i]) . ".txt",""); flush();} colorbars($andromedaPrefs["rowToBodyFgDiv"]); if ($andromedaPrefs["permitPlaylists"]) {playlistFormFoot(true);} displayAMG($folderName,isAlbum($x)); andromedaFooter();} else {fourOfour ();}} function fourOfour () { global $andromedaPrefs; andromedaHeader(trans(40)); echo "
"; if ($andromedaPrefs["disableHTMLheaders"]) {echo "";} echo trans(40) . ". " . trans(43) . ", "; if ($andromedaPrefs["disableHTMLheaders"]) { echo "" . trans(42) . "";} else { echo "" . trans(42) . "";} echo "."; if ($andromedaPrefs["disableHTMLheaders"]) {echo "";} echo "
"; colorbars($andromedaPrefs["bodyFgDiv"]); andromedaFooter();} function navbar3 ($x,$y) { global $andromedaConst, $andromedaPrefs, $ckplaylist; if ($andromedaPrefs["permitSearch"]) { if ($y == "search") {searchbar($x);} else {searchbar("");} colorbars($andromedaPrefs["bodyFgDiv"]);} if (!(($x == "") && ($y == "browse"))) { echo "
"; imagetag("o","i",""); echo ""; drill2(parentFolder($x),2); echo "
"; colorbars($andromedaPrefs["bodyFgDiv"]);} if ($y == "browse") { if ($x == "") { $sidestep = false;} else { $sidestep = (subfolderCount(parentFolder($x)) > 1);} if ($andromedaPrefs["playLinks"]) {$playalbum = playable($x);}} echo "
"; if (($x == "") && ($y == "browse")) { echo "";} if ($sidestep) { echo ""; if ($andromedaConst["moduleMode"]) { echo "";} echo "";} if (($x == "") && ($y == "browse")) { echo "";} elseif ($y == "search") { echo "";} elseif ($y == "playlist") { echo "";} else { if ($sidestep) { echo "";} else { echo "";}} if ($sidestep) {echo "";} if ($andromedaPrefs["folderAux1"] != "") { echo "";} if (($y == "playlist") && ($ckplaylist != "") && $andromedaPrefs["playLinks"]) { echo "";} if ($playalbum) { echo "";} if (!$andromedaPrefs["hideMetasearch"]) { if ($x == "") { $metadisplay = $andromedaPrefs["mediaPhysicalPath"];} else {$metadisplay = $x;} if ($y == "browse") { $metapath = "/" . $andromedaPrefs["rootName"] . $x;} else { $metapath = "/" . $andromedaPrefs["rootName"] . "/" . $x;} echo ""; echo "";} echo "
"; imagetag("o","i",""); echo "
" . $andromedaPrefs["rootName"] . "" . "[" . $x . "] " . trans(37) . "" . $x . ""; ipad(4,1); echo ""; imagetag("g","f",""); echo "" . displayName($x,false) . ""; ipad(4,1); echo ""; imagetag ("q","i","discuss"); echo ""; ipad(4,1); echo ""; imagetag("p","i",trans(11)); echo ""; ipad(4,1); echo ""; playFolderButton($x); echo ""; ipad(4,1); echo ""; imagetag("k","i",$andromedaConst["appname"] . ": " . displayname($metadisplay,false)); echo "
"; flush();} function folderOpenNote ($x) { global $andromedaPrefs, $currentLanguage; if ($andromedaPrefs["globalAnnotations"] || ($andromedaPrefs["defaultLanguage"] == $currentLanguage)) { if (file_exists($andromedaPrefs["mediaPhysicalPath"] . parentFolder($x) . "/" . $andromedaPrefs["folderOpenImage"] . ".jpg")) { $folderImageExt = ".jpg";} elseif (file_exists($andromedaPrefs["mediaPhysicalPath"] . parentFolder($x) . "/" . $andromedaPrefs["folderOpenImage"] . ".gif")) { $folderImageExt = ".gif";} if (file_exists($andromedaPrefs["mediaPhysicalPath"] . $x)) { $fd = fopen($andromedaPrefs["mediaPhysicalPath"] . $x, "r"); $note = fread($fd, filesize($andromedaPrefs["mediaPhysicalPath"] . $x)); fclose ($fd);} if (($folderImageExt != "") || ($note != "")) { echo ""; if ($note != "") { echo "";} if ($folderImageExt != "") { if ($andromedaPrefs["folderOpenImageDims"] != "") { $ittmpa = explode(",",$andromedaPrefs["folderOpenImageDims"]); $imgdimtag = " width=" . $ittmpa[0] . " height=" . $ittmpa[1];} else { $imgdimtag = "";} echo "";} echo "
" . $note ."
"; colorbars($andromedaPrefs["bodyFgDiv"]);}}} function folderrow ($x,$d,$m) { global $andromedaPrefs,$totalrowcount; $totalrowcount = $totalrowcount + 1; $mysubfolderCount = subfolderCount($x); $myfileCount = fileCount($x); if ($totalrowcount != 1) {colorBars($andromedaPrefs["rowDiv"]);} echo "
"; if ($d) { drill2(parentFolder($x),1); addvpad(8);} echo ""; if ($andromedaPrefs["permitPlaylists"]) { echo "";} echo "
"; imagetag("c","i",""); echo ""; if (($andromedaPrefs["disableHTMLheaders"] || ($andromedaPrefs["rowLinkColor"] != $andromedaPrefs["bodyLinkColor"])) && $andromedaPrefs["rowLinkColor"] != "") { echo "" . displayName($x,false) . "";} else { echo "" . displayName($x,false) . "";} if ($andromedaPrefs["displayNew"]) {echo displaynew(newestfile($x));} echo "
"; if (($mysubfolderCount == 0) && ($myfileCount == 0)) { $desc2 = " ";} if (($mysubfolderCount > 1) && ($myfileCount == 0)) { $desc2 = $mysubfolderCount . " " . trans(5); $link2 = folderLink($x);} if (($mysubfolderCount == 0) && ($myfileCount > 0)) { $desc2 = $myfileCount . " " . ifps2($myfileCount,trans(2),trans(3)); $link2 = folderLink($x);} if (($mysubfolderCount > 0) && ($myfileCount > 0)) { $desc2 = $mysubfolderCount . " ". ifps2($mysubfolderCount,trans(4),trans(5)) . ", " . $myfileCount . " " . ifps2($myfileCount,trans(2),trans(3)); $link2 = folderLink($x);} if (($mysubfolderCount == 1) && ($myfileCount == 0)) { $tyty = getsubfolders($x); $desc2 = displayName($tyty[0],false); $link2 = folderLink($x . "/" . $tyty[0]);} if ($link2 != "") { if (($andromedaPrefs["disableHTMLheaders"] || ($andromedaPrefs["rowLinkColor"] != $andromedaPrefs["bodyLinkColor"])) && $andromedaPrefs["rowLinkColor"] != "") { $desc2 = "" . $desc2 . "";} else { $desc2 = "" . $desc2 . "";}} else { $desc2 = "" . $desc2 . "";} if ($andromedaPrefs["playLinks"]) { if (playable($x)) { echo "
"; echo $desc2; echo ""; ipad(4,1); echo ""; playFolderButton($x); echo "
";} else {echo $desc2;}} else {echo $desc2;} echo "
";} function filerow ($x,$d,$m) { global $andromedaConst, $andromedaPrefs, $totalrowcount, $filerowcount, $fileTypes; $thisfiletype = strtolower(getextention($x)); $thisfilesize = filesize($andromedaPrefs["mediaPhysicalPath"] . $x); if ($andromedaPrefs["getID3info"] && ($thisfiletype == "mp3") && ($thisfilesize > 0)) { $fp = fopen($andromedaPrefs["mediaPhysicalPath"] . $x,"rb"); $mp3Length = ""; $mp3Album = ""; $mp3Artist = ""; $mp3TrackName = ""; $mp3Quality = ""; $fpp = 0; for ($i = 0; $i <= 9; $i++) {$bb[$i] = ord(fread($fp,1));} $fpp = $fpp + 10; $validID3v2header = (($bb[0] == 73) && ($bb[1] == 68) && ($bb[2] == 51) && ($bb[3] < 255) && ($bb[4] < 255) && ($bb[5] == ($bb[5] & 240)) && ($bb[6] == 0) && ($bb[7] < 128) && ($bb[8] < 128) && ($bb[9] < 128)); if ($validID3v2header) { $ID3size = $bb[7] * 128 * 128 + $bb[8] * 128 + $bb[9]; $extendedHeader = ($bb[5] & 64) / 64; $footerPresent = ($bb[5] & 16) / 16; $totalID3size = 10 + $ID3size + $footerPresent * 10; if ($extendedHeader == 1) { for ($i = 0; $i <= 5; $i++) {$bb[$i] = ord(fread($fp,1));} $fpp = $fpp + 6; $extendedHeaderSize = $bb[1] * 128 * 128 + $bb[2] * 128 + $bb[3]; fseek($fp,10 + $extendedHeaderSize); $fpp = 10 + $extendedHeaderSize;} for ($i = 0; $i <= 9; $i++) {$bb[$i] = ord(fread($fp,1));} $fpp = $fpp + 10; while (((($bb[0] >= 48) && ($bb[0] <= 57)) || (($bb[0] >= 65) && ($bb[0] <= 90))) && ((($bb[1] >= 48) && ($bb[1] <= 57)) || (($bb[1] >= 65) && ($bb[1] <= 90))) && ((($bb[2] >= 48) && ($bb[2] <= 57)) || (($bb[2] >= 65) && ($bb[2] <= 90))) && ((($bb[3] >= 48) && ($bb[3] <= 57)) || (($bb[3] >= 65) && ($bb[3] <= 90))) && ($bb[4] == 0) && ($bb[5] < 128) && ($bb[6] < 128) && ($bb[7] < 128)) { $ID3frameID = chr($bb[0]) . chr($bb[1]) . chr($bb[2]) . chr($bb[3]); $ID3frameSize = $bb[5] * 128 * 128 + $bb[6] * 128 + $bb[7]; if ($ID3frameSize > 0) { $ID3frameVal = fread($fp,$ID3frameSize); $ID3frameVal = substr($ID3frameVal,1,strlen($ID3frameVal)-1); $fpp = $fpp + $ID3frameSize;} else {$ID3frameVal = "";} if ($ID3frameID == "TLEN") {$mp3Length = $ID3frameVal / 1000;} #elseif ($ID3frameID == "TCON") {$mp3Genre = $ID3frameVal;} #elseif ($ID3frameID == "TRCK") {$mp3TrackNumber = $ID3frameVal;} elseif ($ID3frameID == "TALB") {$mp3Album = $ID3frameVal;} elseif ($ID3frameID == "TPE1") {$mp3Artist = $ID3frameVal;} elseif ($ID3frameID == "TIT2") {$mp3TrackName = $ID3frameVal;} for ($i = 0; $i <= 9; $i++) {$bb[$i] = ord(fread($fp,1));} $fpp = $fpp + 10;} $offset = $totalID3size - $fpp; if ($offset >= 0) { fseek($fp,$totalID3size); $fpp = $totalID3size; for ($i = 0; $i <= 3; $i++) {$bb[$i] = ord(fread($fp,1));} $fpp = $fpp + 4;} else { for ($i = 1; $i <= (-1 * $offset); $i++) { $bb[$i-1] = $bb[10 + $offset + $i - 1];} if ((4 + $offset) > 0) { for ($i = (-1 * $offset); $i <= 3; $i++) { $bb[$i] = ord(fread($fp,1)); $fpp = $fpp + 1;}}}} $cbr = true; for ($xox = 1; $xox <= ($andromedaPrefs["vbrScanCount"] + $andromedaPrefs["vbrSkipCount"]); $xox++) { $mpegVersion = ($bb[1] & 24) / 8; $layer = ($bb[1] & 6) / 2; $protection = ($bb[1] & 1); $bitrate = ($bb[2] & 240) / 16; $samplefrequency = ($bb[2] & 12) / 4; $padded = ($bb[2] & 2) / 2; $channelMode = ($bb[3] & 192) / 64; $validMP3frame = (($bb[0] == 255) && ($bb[1] >= 224) && ($mpegVersion != 1) && ($layer != 0) && ($bitrate != 0) && ($bitrate != 15) && ($samplefrequency != 3)); if ($validMP3frame) { if ($mpegVersion == 3) { if ($layer == 3) {$column = 1;} elseif ($layer == 2) {$column = 2;} elseif ($layer == 1) {$column = 3;} if ($samplefrequency == 0) {$samplefrequencyD = 44100;} elseif ($samplefrequency == 1) {$samplefrequencyD = 48000;} elseif ($samplefrequency == 2) {$samplefrequencyD = 32000;}} elseif ($mpegVersion == 2) { if ($layer == 3) {$column = 4;} elseif ($layer == 2) {$column = 5;} elseif ($layer == 1) {$column = 5;} if ($samplefrequency == 0) {$samplefrequencyD = 22050;} elseif ($samplefrequency == 1) {$samplefrequencyD = 24000;} elseif ($samplefrequency == 2) {$samplefrequencyD = 16000;}} elseif ($mpegVersion == 0) { if ($layer == 3) {$column = 4;} elseif ($layer == 2) {$column = 5;} elseif ($layer == 1) {$column = 5;} if ($samplefrequency == 0) {$samplefrequencyD = 11025;} elseif ($samplefrequency == 1) {$samplefrequencyD = 12000;} elseif ($samplefrequency == 2) {$samplefrequencyD = 8000;}} $bitrateDataA = array(32,32,32,32,8,64,48,40,48,16,96,56,48,56,24,128,64,56,64,32,160,80,64,80,40,192,96,80,96,48,224,112,96,112,56,256,128,112,128,64,288,160,128,144,80,320,192,160,160,96,352,224,192,176,112,384,256,224,192,128,416,320,256,224,144,448,384,320,256,160); $bitrateD = $bitrateDataA[($bitrate - 1) * 5 + $column - 1]; if (($bitrateD != $prevbitrateD) && ($prevbitrateD != "")) { $cbr = false;} $prevbitrateD = $bitrateD; if ($channelMode == 0) {$channelModeD = "Stereo";} elseif ($channelMode == 1) {$channelModeD = "Joint Stereo";} elseif ($channelMode == 2) {$channelModeD = "Dual Channel";} elseif ($channelMode == 3) {$channelModeD = "Single channel (Mono)";} if (($layer == 1) || ($layer == 2)) { $framesize = floor((144 * 1000 * $bitrateD) / $samplefrequencyD) + $padded;} elseif ($layer == 3) { $framesize = floor(12 * 1000 * $bitrateD / $samplefrequencyD + $padded) * 4;} if ($xox > $andromedaPrefs["vbrSkipCount"]) {$avgbitrateD += $bitrateD;} if (($xox >= $andromedaPrefs["cbrCutoff"]) && $cbr) {break;}} else { $bitrateD = ""; break;} if ($xox == 1) { if ($validID3v2header) {$cursor = $framesize-4;} else {$cursor = $framesize-10;}} else {$cursor = $framesize-4;} if ($fpp + $cursor < $thisfilesize) { $skip = ord(fread($fp,$cursor)); $fpp = $fpp + $cursor; for ($i = 0; $i <= 3; $i++) { $bb[$i] = ord(fread($fp,1));} $fpp = $fpp + 4;} else {break;}} if ($bitrateD != "") { if ($cbr) { if ($mp3Length == "") { $mp3Length = round($thisfilesize / ($bitrateD * 1000 / 8));} $mp3Quality = $bitrateD . " Kbit/s";} else { if ($mp3Length == "") { $mp3Length = round($thisfilesize / ($avgbitrateD/($xox-1-$andromedaPrefs["vbrSkipCount"]) * 1000 / 8));} $mp3Quality = round($avgbitrateD/($xox-1-$andromedaPrefs["vbrSkipCount"])) . " Kbit/s VBR";}} #$mp3Quality = $bitrateD . " Kbit/s " . $samplefrequencyD . " Hz " . $channelModeD; if (!$andromedaPrefs["skipID3v1"] && ($mp3TrackName == "")) { fseek($fp,$thisfilesize - 128); $id3v1tag = strtoupper(fread($fp,3)); if (($id3v1tag == "ID3") || ($id3v1tag == "TAG")) { $id3v1Title = trim(fread($fp,30)); $id3v1Artist = trim(fread($fp,30)); $id3v1Album = trim(fread($fp,30)); $id3v1Year = trim(fread($fp,4)); $id3v1Comment = trim(fread($fp,28)); $id3v12skip = ord(fread($fp,1)); $id3v12number = ord(fread($fp,1)); $id3v1Genre = ord(fread($fp,1)); #if ($mp3Genre == "") {$mp3Genre = $id3v1Genre;} #if ($mp3TrackNumber == "") {$mp3TrackNumber = $id3v12number;} if ($mp3Album == "") {$mp3Album = $id3v1Album;} if ($mp3Artist == "") {$mp3Artist = $id3v1Artist;} if ($mp3TrackName == "") {$mp3TrackName = $id3v1Title;}}} if (substr($mp3Album,0,2) == "") {$mp3Album = substr($mp3Album,2);} if (substr($mp3Artist,0,2) == "") {$mp3Artist = substr($mp3Artist,2);} if (substr($mp3TrackName,0,2) == "") {$mp3TrackName = substr($mp3TrackName,2);} fclose($fp);} switch ($fileTypes[$thisfiletype]) { case "audio": $fileicon = "a"; break; case "video": $fileicon = "v"; break; case "playlist": $fileicon = "l"; break;} $totalrowcount = $totalrowcount + 1; $filerowcount = $filerowcount + 1; if ($totalrowcount != 1) {colorBars($andromedaPrefs["rowDiv"]);} echo "
"; if ($d) { drill2(parentFolder($x),1); addvpad(8);} echo ""; if ($andromedaPrefs["permitPlaylists"]) { echo "";} echo "
"; if ($andromedaPrefs["fileLinks"]) { if ($andromedaConst["localUser"] && $andromedaPrefs["localFilePlayback"]) { $filepath = $andromedaPrefs["mediaPhysicalPath"] . $x;} else { $filepath = mkMediaWebPath($x);} echo ""; imagetag($fileicon,"i",""); echo "";} else {imagetag($fileicon,"i","");} echo ""; if ($andromedaPrefs["fileCount"]) { echo "
" . $filerowcount . "."; ipad(4,1); echo "";} if ($andromedaPrefs["fileLinks"]) { if (($andromedaPrefs["disableHTMLheaders"] || ($andromedaPrefs["rowLinkColor"] != $andromedaPrefs["bodyLinkColor"])) && $andromedaPrefs["rowLinkColor"] != "") { echo ""; if ($mp3TrackName != "") {echo $mp3TrackName;} else {echo displayName($x,true);} echo "";} else { echo ""; if ($mp3TrackName != "") {echo $mp3TrackName;} else {echo displayName($x,true);} echo "";}} else { echo ""; if ($mp3TrackName != "") {echo $mp3TrackName;} else {echo displayName($x,true);} echo "";} if ($andromedaPrefs["displayNew"]) {displaynew(filemtime($andromedaPrefs["mediaPhysicalPath"] . $x));} if (($mp3Artist != "") || ($mp3Album != "")) { echo "
"; if (($mp3Artist != "") && ($mp3Album != "")) {echo $mp3Artist . " - " . $mp3Album;} else {echo $mp3Artist . $mp3Album;} echo "";} if ($andromedaPrefs["fileCount"]) {echo "
";} echo "
"; if ($andromedaPrefs["playLinks"]) { echo "
"; if (($mp3Length != "") || ($mp3Quality != "")) { if (($mp3Length != "") && ($mp3Quality != "")) {echo sec2time($mp3Length) . " · " . $mp3Quality;} else { if ($mp3Length != "") {echo sec2time($mp3Length);} else {echo $mp3Quality;}} echo " · ";} echo byteCount($thisfilesize) . " · " . strtoupper($thisfiletype) . ""; ipad(4,1); echo ""; imagetag("p","i",""); echo "
";} else { echo ""; if (($mp3Length != "") || ($mp3Quality != "")) { if (($mp3Length != "") && ($mp3Quality != "")) {echo sec2time($mp3Length) . " · " . $mp3Quality;} else { if ($mp3Length != "") {echo sec2time($mp3Length);} else {echo $mp3Quality;}} echo " · ";} echo byteCount($thisfilesize) . " " . strtoupper($thisfiletype) . "";} echo "
";} function rowNote ($x,$i) { global $andromedaPrefs, $totalrowcount, $currentLanguage; if ($andromedaPrefs["globalAnnotations"] || ($andromedaPrefs["defaultLanguage"] == $currentLanguage)) { if ($i != "") { if (file_exists($andromedaPrefs["mediaPhysicalPath"] . $i . "/" . $andromedaPrefs["folderListImage"] . ".jpg")) { $folderImageExt = ".jpg";} elseif (file_exists($andromedaPrefs["mediaPhysicalPath"] . $i . "/". $andromedaPrefs["folderListImage"] . ".gif")) { $folderImageExt = ".gif";}} if (file_exists($andromedaPrefs["mediaPhysicalPath"] . $x)) { $fd = fopen($andromedaPrefs["mediaPhysicalPath"] . $x, "r"); $note = fread($fd, filesize($andromedaPrefs["mediaPhysicalPath"] . $x)); fclose ($fd);} if (($folderImageExt != "") || ($note != "")) { echo "
"; ipad(30,1); echo ""; if ($folderImageExt != "") { if ($andromedaPrefs["folderListImageDims"] != "") { $ittmpa = explode(",",$andromedaPrefs["folderListImageDims"]); $imgdimtag = " width=" . $ittmpa[0] . " height=" . $ittmpa[1];} else { $imgdimtag = "";} echo "
";} if ($note != "") { echo "" . $note . "";} echo "
"; colorbar($andromedaPrefs["siteWidth"],"6",switchrow($totalrowcount,$andromedaPrefs["rowColor1"],$andromedaPrefs["rowColor2"]));}}} function searchbar ($s) { global $andromedaConst, $andromedaPrefs, $sm; echo "
"; if ($andromedaConst["moduleMode"]) { echo "";} echo ""; if ($andromedaPrefs["compactSearch"]) { echo "";} echo ""; if (!$andromedaPrefs["compactSearch"]) { echo "";} echo "
" . trans(13) . " " . $andromedaPrefs["siteName"] . ""; ipad(4,1); echo ""; ipad(4,1); echo ""; ipad(4,1); echo ""; imagetag("g","f",""); echo "
";} if ((abs(filesize(__FILE__) - strlen($andromedaPrefsFileName) - 117334 + 18) > 1) && (abs(filesize(__FILE__) - strlen($andromedaPrefsFileName) - 117334 + 1737 + 18) > 1)) {exit();} function displayAMG ($n,$a) { global $andromedaPrefs; if ($andromedaPrefs["displayAMG"]) { echo "
" . trans(13) . " allmusic.com"; ipad(4,1); echo ""; ipad(4,1); echo ""; ipad(4,1); echo ""; imagetag("g","f",""); echo "
"; colorbars($andromedaPrefs["bodyFgDiv"]);}} function search ($s,$sm) { global $andromedaPrefs,$totalrowcount; andromedaHeader("[" . $s . "] " . trans(37)); navbar3($s,"search"); if ($andromedaPrefs["permitPlaylists"]) {playlistFormHead(true);} colorbars($andromedaPrefs["bodyFgToRowDiv"]); if (strlen(trim($s)) > 1) { if (($sm == "fo") || ($sm == "ff") || ($sm == "")) {searchFolders("","/" . $s . "/i");} if (($sm == "fi") || ($sm == "ff") || ($sm == "")) {searchFiles("","/" . $s . "/i");} if ($totalrowcount == 0) { echo "
"; addvpad(48); echo "" . trans(39) . ""; addvpad(48); echo "
";} colorbars($andromedaPrefs["rowToBodyFgDiv"]); if ($andromedaPrefs["permitPlaylists"]) {playlistFormFoot(true);}} else { echo "
"; addvpad(48); echo "" . trans(38) . ""; addvpad(48); echo "
"; colorbars($andromedaPrefs["rowToBodyFgDiv"]); if ($andromedaPrefs["permitPlaylists"]) {playlistFormFoot(true);}} displayAMG($s,false); andromedaFooter();} function searchFolders ($x,$s) { global $andromedaPrefs; $subfolders = getsubfolders($x); for ($i = 0; $i < count($subfolders); $i++) { if (preg_match($s,str_replace("_"," ",$subfolders[$i]))) { folderrow($x . "/" . $subfolders[$i],true,true); flush();} searchFolders($x . "/" . $subfolders[$i],$s);}} function searchFiles ($x,$s) { global $andromedaPrefs; $mp3s = getmp3s($x); for ($i = 0; $i < count($mp3s); $i++) { if (preg_match($s,str_replace("_"," ",$mp3s[$i]))) { filerow($x . "/" . $mp3s[$i],true,true); flush();}} $subfolders = getsubfolders($x); for ($i = 0; $i < count($subfolders); $i++) { searchFiles($x . "/" . $subfolders[$i],$s);}} function playlistFormHead ($x) { global $andromedaConst, $andromedaPrefs; if ($x) {$m = 1;} else {$m = 0;} echo ""; if (strtolower($andromedaPrefs["playSelectionMode"]) == "post") { $playlistFormMethod = "post";} elseif (strtolower($andromedaPrefs["playSelectionMode"]) == "get") { $playlistFormMethod = "get";} else { $playlistFormMethod = "post";} echo "
"; if ($andromedaConst["moduleMode"]) { echo "";} if ($andromedaPrefs["usePlaylistIcons"]) { echo "";} echo "
";} function playlistFormFoot ($x) { global $andromedaPrefs, $totalrowcount, $ckplaylist; if (($totalrowcount > 0) || ($ckplaylist != "")) { $plb = $andromedaPrefs["usePlaylistIcons"]; echo "
"; echo ""; if ($totalrowcount > 0) { echo "";} if (strtolower($andromedaPrefs["playSelectionMode"]) == "post") { $playSelectionButton = true;} elseif (strtolower($andromedaPrefs["playSelectionMode"]) == "get") { $playSelectionButton = true;} else { $playSelectionButton = false;} if (($totalrowcount > 0) && ($andromedaPrefs["playLinks"]) && ($playSelectionButton)) { echo ""; echo "";} if ($x && $totalrowcount > 0) { echo ""; echo "";} if (($x == false) && ($totalrowcount > 0)) { echo ""; echo "";} if ($x && ($ckplaylist != "")) { echo ""; echo "";} if (($totalrowcount > 0) && ($ckplaylist != "")) { $plbnote = trans(12); $plbnote = str_replace("##",round((strlen($ckplaylist)/($andromedaPrefs["cBlockCount"]*$andromedaPrefs["cBlockSize"]))*100),$plbnote); echo "";} echo "
"; if ($plb) { echo ""; echo "";} echo ""; ipad(8,1); echo ""; if ($plb) { echo ""; echo "";} echo ""; ipad(8,1); echo ""; if ($plb) { echo ""; echo "";} echo ""; ipad(8,1); echo ""; if ($plb) { echo ""; echo "";} echo ""; ipad(8,1); echo "" . $plbnote . "
"; echo "
"; colorbars($andromedaPrefs["bodyFgDiv"]);} echo "
";} function displayPlaylist ($x) { global $andromedaPrefs, $ckplaylist, $totalrowcount; andromedaHeader(trans(44)); navbar3(trans(44),"playlist"); playlistFormHead(false); colorbars($andromedaPrefs["bodyFgToRowDiv"]); $xtmpa = explode("\n",$ckplaylist); for ($xi = 0; $xi < count($xtmpa)-1; $xi++) { if (substr($xtmpa[$xi],0,1) == "o") {folderrow(substr($xtmpa[$xi],1),true,false);} if (substr($xtmpa[$xi],0,1) == "i") {filerow(substr($xtmpa[$xi],1),true,false);}} colorbars($andromedaPrefs["rowToBodyFgDiv"]); playlistFormFoot(false); displayAMG("",false); andromedaFooter();} function readPlaylist ($x) { global $andromedaPrefs; $rtmp = ""; for ($rpi = 1; $rpi <= $andromedaPrefs["cBlockCount"]; $rpi++) { $rtmp2 = $x . $rpi; global $$rtmp2; $rtmp = $rtmp . fixgpc($$rtmp2);} return($rtmp);} function writePlaylist ($x) { global $andromedaPrefs, $ckplaylist; for ($rpi = 1; $rpi <= $andromedaPrefs["cBlockCount"]; $rpi++) { $rpitmp = substr($ckplaylist,(($rpi-1)*$andromedaPrefs["cBlockSize"]), $andromedaPrefs["cBlockSize"]); if ($rpi == $andromedaPrefs["cBlockCount"]) { $rpitmp = substr($rpitmp,0,strrpos($rpitmp,"\n")+1);} setcookie($x . $rpi, $rpitmp);}} function playFolder ($x) { global $andromedaPrefs,$totalrowcount; if (file_exists($andromedaPrefs["mediaPhysicalPath"] . $x)) { playFolder2($x); if ($totalrowcount == 0) { Header("Location: " . andrlink("?q=f&f=",$x));}} else {fourOfour();}} function playable ($x) { global $andromedaPrefs; $pinme = false; $tmp = $andromedaPrefs["mediaPhysicalPath"] . $x; $handle=opendir($tmp); while ($file = readdir($handle)) { if (is_file("$tmp/$file")) { if (legalFile($file)) { $pinme = true; break;}}} closedir($handle); if (!$pinme) { $tmp = $andromedaPrefs["mediaPhysicalPath"] . $x; $handle=opendir($tmp); while ($file = readdir($handle)) { if (is_dir("$tmp/$file") && $file != "." && $file != "..") { if (legalFolder($file)) { if (playable($x . "/" . $file)) { $pinme = true; break;}}}} closedir($handle);} return($pinme);} function playFolder2 ($x) { global $andromedaPrefs, $totalrowcount; $subfolders = getsubfolders($x); for ($i = 0; $i < count($subfolders); $i++) { playFolder2($x . "/" . $subfolders[$i]); if ($totalrowcount == $andromedaPrefs["maxPlaylistTracks"]) {break;}} $mp3s = getmp3s($x); for ($i = 0; $i < count($mp3s); $i++) { playlistRow($x . "/" . $mp3s[$i]); if ($totalrowcount == $andromedaPrefs["maxPlaylistTracks"]) {break;}} if (count($mp3s) > 0) {flush();}} function playlistHeader () { global $andromedaConst, $andromedaPrefs, $ckServerName, $plrpre; Header('Cache-Control: private'); Header("Content-Type: " . $andromedaPrefs["playlistMime"]); switch (strtolower($andromedaPrefs["playlistMime"])) { case "audio/x-mpegurl": $fext = "m3u"; break; case "audio/x-pn-realaudio": $fext = "ram"; break; default: $fext = "";} if ($fext != "") { Header("Content-Disposition: inline; filename=playlist." . $fext);} if ($andromedaPrefs["includeEXTM3U"]) {echo "#EXTM3U\n";} if (!($andromedaConst["localUser"] && $andromedaPrefs["localFilePlayback"])) { if ($andromedaPrefs["hostAddress"] != "") { $plrpre = $andromedaPrefs["protocol"] . "://" . $andromedaPrefs["hostAddress"];} else { $plrpre = $andromedaPrefs["protocol"] . "://" . $ckServerName;}}} function playlistRow ($x) { global $andromedaConst, $andromedaPrefs, $totalrowcount, $plrpre; if ($totalrowcount == 0) {playlistHeader();} $totalrowcount += 1; if ($andromedaPrefs["includeEXTM3U"]) { echo "#EXTINF:-1," . displayName($x,true) . "\n";} if ($andromedaConst["localUser"] && $andromedaPrefs["localFilePlayback"]) { echo $andromedaPrefs["mediaPhysicalPath"] . $x . "\n";} else { echo $plrpre . mkMediaWebPath($x) . "\n";}} function playPrepList ($x) { global $andromedaPrefs; $xtmpa = explode("\n",$x); for ($xi = 0; $xi < count($xtmpa)-1; $xi++) { if (substr($xtmpa[$xi],0,1) == "o") {playFolder2(substr($xtmpa[$xi],1));} if (substr($xtmpa[$xi],0,1) == "i") {playlistRow(substr($xtmpa[$xi],1));} if ($totalrowcount == $andromedaPrefs["maxPlaylistTracks"]) {break;}}} function imagetag ($x,$m,$t) { global $andromedaPrefs; $ittmpa = explode(",",$andromedaPrefs[$x . "Dimentions"]); imagetag2($x,$ittmpa[0],$ittmpa[1],$t,true,$m,"");} function imagetagE ($x,$m,$t) { global $andromedaPrefs; $ittmpa = explode(",",$andromedaPrefs[$x . "Dimentions"]); imagetag2($x,$ittmpa[0],$ittmpa[1],$t,true,$m,"\\");} function imagetag2 ($x,$a,$b,$t,$c,$m,$e) { global $andromedaPrefs; switch ($m) { case "i": echo " . $e . ";} function displayImage ($dix) { switch ($dix) { case "p": // playButton $imageDataLookup = array(71,73,70,56,57,97,16,0,16,0,162,0,0,51,153,0,102,204,0,51,102,0,255,255,255,0,0,0,255,255,255,0,0,0,0,0,0,33,249,4,1,0,0,5,0,44,0,0,0,0,16,0,16,0,0,3,76,88,170,212,190,176,180,64,107,139,132,10,1,186,39,75,22,0,194,192,121,29,40,141,228,96,162,0,40,118,165,123,210,147,87,219,122,78,187,192,147,192,215,2,14,88,195,140,206,200,34,17,119,205,141,108,121,68,13,25,203,38,233,138,37,69,165,24,194,102,156,140,132,28,23,72,2,0,59); break; case "i": // infoButton $imageDataLookup = array(71,73,70,56,57,97,16,0,16,0,162,0,0,255,255,255,204,204,204,153,153,153,102,102,102,51,51,51,255,255,255,0,0,0,0,0,0,33,249,4,1,0,0,5,0,44,0,0,0,0,16,0,16,0,0,3,64,88,186,220,94,35,142,215,70,8,147,80,53,0,38,129,70,117,24,224,137,14,105,134,140,36,121,151,203,5,166,41,88,53,54,95,177,192,199,156,23,207,21,97,16,86,158,201,3,148,76,110,64,4,146,146,162,177,232,54,193,34,118,155,0,0,59); break; case "h": // homeButton $imageDataLookup = array(71,73,70,56,57,97,16,0,16,0,162,0,0,102,102,153,153,153,204,204,204,255,255,255,255,204,204,204,102,102,102,0,0,0,255,255,255,33,249,4,1,0,0,7,0,44,0,0,0,0,16,0,16,0,0,3,85,120,170,214,190,240,52,65,43,48,209,212,80,74,248,1,198,80,95,65,16,30,40,106,37,49,12,168,42,145,230,208,193,233,197,214,197,219,199,58,1,239,229,195,5,123,53,34,202,118,236,184,148,157,66,176,69,196,5,0,23,73,235,196,245,100,181,156,168,24,43,2,131,62,216,239,162,145,78,55,34,107,199,27,146,0,0,59); break; case "r": // prefsButton $imageDataLookup = array(71,73,70,56,57,97,16,0,16,0,162,0,0,102,102,153,153,153,204,204,204,255,255,255,255,102,102,102,0,0,0,255,255,255,0,0,0,33,249,4,1,0,0,6,0,44,0,0,0,0,16,0,16,0,0,3,80,104,170,213,190,208,52,65,107,139,165,134,205,67,89,153,64,140,99,231,49,66,64,12,108,201,125,161,202,14,43,193,1,211,86,211,228,134,103,186,217,204,22,248,165,100,164,154,47,39,19,210,150,64,36,233,9,192,73,130,78,155,245,170,74,146,170,31,134,201,7,198,20,170,232,95,4,228,184,64,18,0,59); break; case "t": // ftpButton $imageDataLookup = array(71,73,70,56,57,97,16,0,16,0,162,0,0,102,102,153,153,153,204,204,204,255,255,255,255,0,0,0,255,255,255,0,0,0,0,0,0,33,249,4,1,0,0,5,0,44,0,0,0,0,16,0,16,0,0,3,78,88,170,212,190,176,52,65,107,139,164,134,205,3,89,153,176,1,36,208,125,146,56,14,131,186,125,33,7,176,110,0,76,118,73,151,54,62,179,64,90,47,99,11,6,69,55,34,128,242,171,32,113,50,225,232,38,233,52,101,40,130,85,147,67,85,59,83,42,164,81,42,93,34,12,199,121,145,0,0,59); break; case "g": // goButton $imageDataLookup = array(71,73,70,56,57,97,16,0,16,0,162,0,0,102,102,153,153,153,204,204,204,255,255,255,255,0,0,0,255,255,255,0,0,0,0,0,0,33,249,4,1,0,0,5,0,44,0,0,0,0,16,0,16,0,0,3,72,88,170,212,190,176,52,65,107,139,164,134,205,3,89,153,208,141,30,35,146,221,151,1,67,187,177,110,0,76,114,59,188,182,76,215,49,60,204,25,92,207,6,20,249,132,183,226,145,151,156,73,80,29,231,19,42,147,78,71,128,236,7,210,200,122,129,17,144,227,2,73,0,0,59); break; case "q": // discussButton $imageDataLookup = array(71,73,70,56,57,97,16,0,16,0,162,0,0,102,102,153,153,153,204,204,204,255,255,255,255,0,0,0,255,255,255,0,0,0,0,0,0,33,249,4,1,0,0,5,0,44,0,0,0,0,16,0,16,0,0,3,71,88,170,212,190,176,52,65,107,139,164,134,205,3,89,153,208,141,30,35,110,67,151,150,33,186,6,195,10,76,46,23,115,115,86,239,65,126,198,43,224,198,231,10,222,122,52,216,81,8,152,73,72,35,231,19,58,148,78,163,205,15,164,209,236,230,34,32,199,5,146,0,0,59); break; case "a": // audioFile $imageDataLookup = array(71,73,70,56,57,97,26,0,16,0,162,0,0,102,102,51,153,153,102,204,204,153,255,255,204,255,255,255,102,102,102,51,51,51,255,255,255,33,249,4,1,0,0,7,0,44,0,0,0,0,26,0,16,0,0,3,93,120,186,92,254,144,201,121,10,185,152,216,66,187,189,6,246,113,157,244,25,225,21,149,13,97,12,105,70,178,40,58,8,113,16,104,172,242,14,55,28,65,39,234,29,12,186,128,64,152,225,245,144,186,101,40,185,155,149,12,128,172,50,86,124,214,0,129,233,78,101,84,88,176,185,106,185,2,226,146,203,31,87,211,105,140,207,233,61,136,254,193,72,0,0,59); break; case "v": // videoFile $imageDataLookup = array(71,73,70,56,57,97,26,0,16,0,162,0,0,255,255,255,239,239,239,102,102,102,51,51,51,255,255,255,0,0,0,0,0,0,0,0,0,33,249,4,1,0,0,4,0,44,0,0,0,0,26,0,16,0,0,3,78,72,186,44,254,144,201,73,4,184,24,88,65,231,248,32,168,93,92,183,124,65,154,126,218,99,158,131,186,14,89,249,162,50,139,217,102,232,215,47,5,78,165,35,5,9,195,25,48,152,12,20,53,71,95,104,121,139,229,104,187,168,149,136,53,50,165,79,222,203,146,41,139,77,144,180,107,145,0,0,59); break; case "l": // palaylistFile $imageDataLookup = array(71,73,70,56,57,97,26,0,16,0,162,0,0,255,255,255,204,204,204,102,102,102,51,51,51,255,255,255,0,0,0,0,0,0,0,0,0,33,249,4,1,0,0,4,0,44,0,0,0,0,26,0,16,0,0,3,74,72,186,44,254,144,201,73,4,184,24,88,65,231,248,32,168,93,92,183,12,25,134,70,166,130,166,192,75,182,110,0,89,178,70,19,185,154,149,173,222,37,7,52,13,108,144,216,111,39,84,98,138,157,38,145,137,124,56,103,52,233,50,27,10,109,119,22,216,115,167,184,153,139,9,0,59); break; case "o": // folderOpen $imageDataLookup = array(71,73,70,56,57,97,20,0,16,0,162,0,0,255,255,153,153,153,102,224,224,153,204,204,153,255,255,255,102,102,102,255,255,255,0,0,0,33,249,4,1,0,0,6,0,44,0,0,0,0,20,0,16,0,0,3,60,104,186,220,174,37,198,247,138,184,183,80,102,49,150,146,83,12,100,89,126,13,168,74,89,74,188,112,60,10,26,7,220,120,62,215,118,238,143,188,69,193,247,11,4,33,68,157,177,146,196,77,68,171,213,102,74,173,90,167,9,0,59); break; case "c": // folderClosed $imageDataLookup = array(71,73,70,56,57,97,26,0,16,0,162,0,0,255,255,153,224,224,153,255,255,255,102,102,102,255,255,255,0,0,0,0,0,0,0,0,0,33,249,4,1,0,0,4,0,44,0,0,0,0,26,0,16,0,0,3,61,72,186,220,254,111,72,9,235,26,33,231,97,33,214,218,52,117,196,7,158,1,215,13,66,235,190,173,106,13,64,109,223,181,92,209,120,175,123,61,31,137,23,180,253,34,197,219,209,65,76,46,27,162,104,148,68,173,90,175,212,4,0,59); break; case "x": // invisiblePixel $imageDataLookup = array(71,73,70,56,57,97,1,0,1,0,128,0,0,255,255,255,0,0,0,33,249,4,1,0,0,0,0,44,0,0,0,0,1,0,1,0,0,2,2,68,1,0,59); break; case "sa": $imageDataLookup = array(71,73,70,56,57,97,26,0,16,0,162,0,0,255,255,255,204,204,204,153,153,153,102,102,102,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,26,0,16,0,0,3,80,72,186,220,238,33,202,73,107,28,130,4,193,187,255,160,128,105,97,56,96,223,184,149,222,0,172,109,6,179,238,11,170,55,42,2,252,204,225,41,0,166,102,187,201,110,60,162,175,3,108,241,158,75,230,17,20,128,178,68,83,106,145,150,165,94,127,221,175,73,118,42,155,207,232,114,230,193,110,19,18,0,59); break; case "sn": $imageDataLookup = array(71,73,70,56,57,97,25,0,16,0,162,0,0,255,255,255,204,204,204,153,153,153,102,102,102,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,25,0,16,0,0,3,65,72,186,220,206,33,202,73,107,28,36,136,205,187,255,2,166,129,228,39,150,40,119,166,232,218,13,112,44,155,153,9,220,248,61,190,181,55,228,185,157,170,247,178,68,104,66,22,82,89,114,49,125,196,39,47,32,171,90,175,152,135,118,75,72,0,0,59); break; case "ps": $imageDataLookup = array(71,73,70,56,57,97,42,0,16,0,162,0,0,255,255,255,204,204,204,153,153,153,102,102,102,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,42,0,16,0,0,3,91,72,186,220,254,240,133,73,171,189,56,211,161,130,248,96,40,10,195,48,158,39,71,120,104,10,152,109,171,178,113,56,0,111,157,118,186,141,231,61,208,44,248,185,253,96,193,33,209,120,92,242,150,63,28,77,167,76,70,167,212,167,85,74,44,106,123,70,44,248,75,5,136,199,171,238,224,140,14,148,222,240,184,124,78,135,71,238,248,60,33,1,0,59); break; case "pa": $imageDataLookup = array(71,73,70,56,57,97,42,0,16,0,162,0,0,255,255,255,204,204,204,153,153,153,102,102,102,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,42,0,16,0,0,3,102,72,186,220,254,240,133,73,171,189,56,211,161,130,248,32,168,105,97,249,113,132,103,126,217,224,14,215,26,162,170,188,14,0,48,216,50,205,11,23,156,46,99,243,241,54,175,220,11,86,41,118,126,155,156,84,202,164,56,83,208,137,112,170,180,92,107,191,165,242,245,3,25,87,173,174,151,119,54,165,135,235,175,173,245,138,177,159,229,124,153,182,236,251,255,128,129,17,131,132,133,4,9,0,59); break; case "pr": $imageDataLookup = array(71,73,70,56,57,97,42,0,16,0,162,0,0,255,255,255,204,204,204,153,153,153,102,102,102,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,42,0,16,0,0,3,91,72,186,220,254,240,133,73,171,189,56,211,161,130,248,32,168,105,97,249,113,132,103,126,99,182,134,168,250,206,244,28,215,45,102,119,248,52,252,192,160,101,151,234,5,6,128,164,50,57,24,190,110,180,205,114,217,172,16,101,181,160,118,80,3,65,87,185,75,150,247,10,59,175,51,179,149,246,237,186,217,157,173,124,78,167,71,238,248,60,33,1,0,59); break; case "pv": $imageDataLookup = array(71,73,70,56,57,97,42,0,16,0,162,0,0,255,255,255,204,204,204,153,153,153,102,102,102,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,42,0,16,0,0,3,108,72,186,220,254,240,133,73,171,189,56,211,161,130,248,32,168,105,97,249,113,132,103,126,217,224,98,107,136,170,113,233,2,184,91,175,243,46,84,3,156,112,0,139,245,118,27,161,146,104,169,29,107,73,101,238,226,236,248,162,82,102,165,154,242,201,178,94,153,53,118,185,225,8,47,138,239,105,106,189,208,218,245,120,53,162,192,39,242,46,185,62,185,231,3,46,129,130,131,132,133,134,130,17,137,138,139,4,9,0,59); break; case "k": $imageDataLookup = array(71,73,70,56,57,97,16,0,16,0,162,0,0,0,0,0,255,255,255,102,102,153,153,153,204,204,204,255,255,255,255,0,0,0,0,0,0,33,249,4,1,0,0,5,0,44,0,0,0,0,16,0,16,0,0,3,70,88,170,208,190,176,52,66,107,139,160,142,205,7,88,25,209,141,30,35,110,65,26,116,95,136,170,41,39,76,92,60,216,195,156,145,170,76,119,61,223,14,184,234,232,78,36,217,76,50,194,229,62,76,162,18,26,29,9,174,84,6,224,202,213,69,64,142,11,36,1,0,59); break;} for ($i = 0; $i < count($imageDataLookup); $i++) { $binstr = $binstr . chr($imageDataLookup[$i]);} Header("Content-Type: image/gif"); echo $binstr;} function trans ($y) { global $rosetta, $currentLanguage; if ($rosetta[$currentLanguage][$y] != "") { return $rosetta[$currentLanguage][$y];} else { return $rosetta["EN"][$y];}} function sec2time ($x) { $minutes = floor($x / 60); $seconds = round($x - ($minutes * 60)); if ($seconds < 10) {$seconds = "0" . $seconds;} return $minutes . ":" . $seconds;} function andromedaEncode ($x) { $tmp = rawurlencode($x); $tmp = preg_replace("/%2F/i","/",$tmp); $tmp = preg_replace("/%2E/i",".",$tmp); $tmp = preg_replace("/%2D/i","-",$tmp); $tmp = preg_replace("/%5F/i","_",$tmp); return($tmp);} function legalFolder ($x) { global $andromedaPrefs, $folderSkipNames; $lftmp = true; if ($andromedaPrefs["skipPrefix"] != "") { if (substr($x, 0, strlen($andromedaPrefs["skipPrefix"])) == $andromedaPrefs["skipPrefix"]) { $lftmp = false;}} if ($lftmp) { if ($folderSkipNames[$x]) {$lftmp = false;}} return $lftmp;} function legalFile ($x) { global $andromedaPrefs, $fileTypes; $lftmp = true; if ($andromedaPrefs["skipPrefix"] != "") { if (substr($x, 0, strlen($andromedaPrefs["skipPrefix"])) == $andromedaPrefs["skipPrefix"]) { $lftmp = false;}} if ($lftmp) { $isaftmp = $fileTypes[strtolower(getextention($x))]; $lftmp = (($isaftmp == "audio") || ($isaftmp == "video") || ($isaftmp == "playlist"));} return($lftmp);} function subfolderCount ($dir) { global $andromedaPrefs; $sdctotal = 0; $tmp = $andromedaPrefs["mediaPhysicalPath"] . $dir; $handle=opendir($tmp); while ($file = readdir($handle)) { if (is_dir("$tmp/$file") && $file != "." && $file != ".." && legalFolder($file)) { $sdctotal = $sdctotal + 1;}} closedir($handle); return $sdctotal;} function fileCount ($dir) { global $andromedaPrefs; $tfileCount = 0; $tmp = $andromedaPrefs["mediaPhysicalPath"] . $dir; $handle=opendir($tmp); while ($file = readdir($handle)) { if (is_file("$tmp/$file") && legalFile($file)) {$tfileCount = $tfileCount + 1;}} closedir($handle); return $tfileCount;} function getsubfolders ($dir) { global $andromedaPrefs; $tmp = $andromedaPrefs["mediaPhysicalPath"] . $dir; $handle=opendir($tmp); while ($file = readdir($handle)) { if (is_dir("$tmp/$file") && $file != "." && $file != ".." && legalFolder($file)) { $tmp2[] = $file;}} closedir($handle); if ($tmp2) {usort($tmp2,"strcasecmp");} return $tmp2;} function getmp3s ($dir) { global $andromedaPrefs; $tmp = $andromedaPrefs["mediaPhysicalPath"] . $dir; $handle=opendir($tmp); while ($file = readdir($handle)) { if (is_file("$tmp/$file") && legalFile($file)) { $tmp2[] = $file;}} closedir($handle); if ($tmp2) {usort($tmp2,"strcasecmp");} return $tmp2;} function drill2 ($x,$z) { global $andromedaPrefs; if ($z == 1) { $lcolor = $andromedaPrefs["rowLinkColor"]; $tcolor = $andromedaPrefs["rowTextColor"];} elseif ($andromedaPrefs["disableHTMLheaders"]) { $lcolor = $andromedaPrefs["bodyLinkColor"]; $tcolor = $andromedaPrefs["bodyTextColor"];} echo ""; if ($lcolor != "") { echo "" . $andromedaPrefs["rootName"] . " / ";} else { echo "" . $andromedaPrefs["rootName"] . " / ";} $tmpaa = explode("/",$x); $tlp = ""; for ($i = 1; $i <= count($tmpaa)-1; $i++) { $tlp = $tlp . "/" . $tmpaa[$i]; if ($lcolor != "") { echo "" . displayName($tmpaa[$i],false) . " / ";} else { echo "" . displayName($tmpaa[$i],false) . " / ";}} echo "";} function playFolderButton ($plx) { echo ""; imagetag("p","i",trans(11)); echo "";} function andrLink ($x,$y) { global $andromedaConst; if ($andromedaConst["moduleMode"]) { if ($x != "") { return($andromedaConst["scriptFileName"] . "?op=modload&name=" . basename(dirname(__FILE__)) . "&file=" . getbasename(basename(__FILE__)) . "&" . substr($x,1) . str_replace(".","%2E",urlencode($y)));} else { return($andromedaConst["scriptFileName"] . "?op=modload&name=" . basename(dirname(__FILE__)) . "&file=" . getbasename(basename(__FILE__)));}} else { return($andromedaConst["scriptFileName"] . $x . str_replace(".","%2E",urlencode($y)));}} function mkMediaWebPath ($x) { global $andromedaPrefs; return(andromedaEncode($andromedaPrefs["mediaWebPath"] . $x));} function folderLink ($x) { return(andrLink("?q=f&f=",$x));} function isAlbum ($x) { return ((subfolderCount($x) == 0) && (fileCount($x) > 0));} function byteCount ($x) { if ($x >= 1024 * 1000) { return((round(($x*100)/(1024*1024))/100) . " MB");} elseif ($x >= 1000) { return(round($x/1024) . " KB");} else { return($x . " byte");}} function addvpad ($height) { echo "
";} function ipad ($width,$height) { imagetag2 ("x",$width,$height,"",false,"i","");} function colorbar ($cbw, $cbh, $cbc) { echo "
"; ipad (1,1); echo "
";} function colorBars ($cbs) { global $andromedaPrefs; if ($cbs != "") { $cbtmp1a = explode(";",$cbs); echo ""; for ($i = 0; $i < count($cbtmp1a); $i++) { $cbtmp2a = explode(",",$cbtmp1a[$i]); echo "";} echo "
"; ipad(1,$cbtmp2a[1]); echo "
";}} function switchRow($swx,$swcolor1,$swcolor2) { if ($swx % 2 == 0) {return $swcolor1;} else {return $swcolor2;}} function ifps2 ($x,$y,$z) { if ($x == 1) {return ($y);} else {return ($z);}} function displayName ($x,$y) { global $andromedaPrefs; $cfntmp2 = basename($x); if ($y) {$cfntmp2 = getbasename($cfntmp2);} $tknumtrimcodea = explode(",",$andromedaPrefs["tkNumTrimCodes"]); for ($i = 0; $i < count($tknumtrimcodea); $i++) { $trimme = true; for ($j = 0; $j < strlen($tknumtrimcodea[$i]); $j++) { if (substr($tknumtrimcodea[$i],$j,1) == "#") { $trimme = ($trimme && (ord(substr($cfntmp2,$j,1)) >= 48) && (ord(substr($cfntmp2,$j,1)) <= 57));} else { $trimme = ($trimme && (substr($tknumtrimcodea[$i],$j,1) == substr($cfntmp2,$j,1)));} if ($trimme == false) {break;}} if ($trimme) { $cfntmp2 = substr($cfntmp2,strlen($tknumtrimcodea[$i])); break;}} $cfntmp2 = str_replace("_"," ",$cfntmp2); $cfntmp2 = trim($cfntmp2); if (strtolower(substr($cfntmp2,strlen($cfntmp2)-5)) == ", the") { $cfntmp2 = substr($cfntmp2,strlen($cfntmp2)-3) . " " . substr($cfntmp2,0,strlen($cfntmp2)-5);} if (count(explode(" ",$cfntmp2)) == 2) { $spos = strpos($cfntmp2," "); $lword = substr($cfntmp2,0,$spos); $rword = substr($cfntmp2,$spos+1); if (substr($lword,strlen($lword)-1) == ",") { $cfntmp2 = $rword . " " . substr($lword,0,strlen($lword)-1);}} return($cfntmp2);} function limitName ($x) { global $andromedaPrefs; if (strlen($x) < $andromedaPrefs["popupMaxWidth"]) {return ($x);} else {return (chop(substr ($x, 0, ($andromedaPrefs["popupMaxWidth"] - 2))) . "...");}} function ca2s ($x) { for ($i = 0; $i < count($x); $i++) {$tmp .= chr($x[$i]);} return $tmp;} function newestfile ($x) { global $andromedaPrefs; $mp3s = getmp3s($x); for ($i = 0; $i < count($mp3s); $i++) { $fdate = filemtime($andromedaPrefs["mediaPhysicalPath"] . $x . "/" . $mp3s[$i]); if ($fdate > $maxdate) {$maxdate = $fdate;}} $sfold = getsubfolders($x); for ($i = 0; $i < count($sfold); $i++) { $maxsubfiledate = (newestfile($x . "/" . $sfold[$i])); if ($maxsubfiledate > $maxdate) {$maxdate = $maxsubfiledate;}} return ($maxdate);} function displaynew ($x) { global $andromedaPrefs; if ($x > time() - 60 * 60 * 24 * 8) { $fmtFdate = date("m/d/Y",$x); if (date("m/d/Y",time()) == $fmtFdate) { echo " " . str_replace(" "," ",trans(28)) . "";} elseif (date("m/d/Y",time() - 60 * 60 * 24) == $fmtFdate) { echo " " . str_replace(" "," ",trans(29)) . "";} else { for ($i = 2; $i < 7; $i++) { if (date("m/d/Y",time() - 60 * 60 * 24 * $i) == $fmtFdate) { echo " " . str_replace(" "," ",trans(30 + date("w",$x))) . ""; break;}}}}} function getbasename ($x) { return(substr($x,0,strrpos($x,".")));} function getextention ($x) { return(substr($x,strrpos($x,".")+1));} function fixgpc ($x) { if (get_magic_quotes_gpc() == 1) { return (str_replace ("\\\"", "\"", str_replace ("\\'", "'", $x)));} else { return($x);}} function parentFolder ($x) { if ($x == "") {return ("");} else { $tmp = dirname($x); if ($tmp == "/" or $tmp == "\\") {return ("");} else {return ($tmp);}}} error_reporting (E_ALL ^ E_NOTICE); if(function_exists("date_default_timezone_set") and function_exists("date_default_timezone_get")) @date_default_timezone_set(@date_default_timezone_get()); if ($i == "") {$i = $HTTP_GET_VARS["i"];} if ($i == "") {$i = $_GET["i"];} if ($i) {displayImage($i);} else { @set_magic_quotes_runtime(0); if ($SCRIPT_NAME == "") {$SCRIPT_NAME = $HTTP_SERVER_VARS["SCRIPT_NAME"];} if ($SCRIPT_NAME == "") {$SCRIPT_NAME = $_SERVER["SCRIPT_NAME"];} if ($PHP_SELF == "") {$PHP_SELF = $HTTP_SERVER_VARS["PHP_SELF"];} if ($PHP_SELF == "") {$PHP_SELF = $_SERVER["PHP_SELF"];} if ($PATH_TRANSLATED == "") {$PATH_TRANSLATED = $HTTP_SERVER_VARS["PATH_TRANSLATED"];} if ($PATH_TRANSLATED == "") {$PATH_TRANSLATED = $_SERVER["PATH_TRANSLATED"];} if ($SCRIPT_FILENAME == "") {$SCRIPT_FILENAME = $HTTP_SERVER_VARS["SCRIPT_FILENAME"];} if ($SCRIPT_FILENAME == "") {$SCRIPT_FILENAME = $_SERVER["SCRIPT_FILENAME"];} if ($LOCAL_ADDR == "") {$LOCAL_ADDR = $HTTP_SERVER_VARS["LOCAL_ADDR"];} if ($LOCAL_ADDR == "") {$LOCAL_ADDR = $_SERVER["LOCAL_ADDR"];} if ($SERVER_ADDR == "") {$SERVER_ADDR = $HTTP_SERVER_VARS["SERVER_ADDR"];} if ($SERVER_ADDR == "") {$SERVER_ADDR = $_SERVER["SERVER_ADDR"];} if ($SERVER_NAME == "") {$SERVER_NAME = $HTTP_SERVER_VARS["SERVER_NAME"];} if ($SERVER_NAME == "") {$SERVER_NAME = $_SERVER["SERVER_NAME"];} if ($SERVER_PORT == "") {$SERVER_PORT = $HTTP_SERVER_VARS["SERVER_PORT"];} if ($SERVER_PORT == "") {$SERVER_PORT = $_SERVER["SERVER_PORT"];} if ($REMOTE_ADDR == "") {$REMOTE_ADDR = $HTTP_SERVER_VARS["REMOTE_ADDR"];} if ($REMOTE_ADDR == "") {$REMOTE_ADDR = $_SERVER["REMOTE_ADDR"];} if ($LOCAL_ADDR != "") {$ckServerIP = $LOCAL_ADDR;} else {$ckServerIP = $SERVER_ADDR;} if ($SERVER_NAME != "") {$ckServerName = $SERVER_NAME;} else {$ckServerName = $ckServerIP;} if (($SERVER_PORT != "80") && ($SERVER_PORT != "")) {$ckServerName = $ckServerName . ":" . $SERVER_PORT;} if (($SCRIPT_NAME != $PHP_SELF) && ($PHP_SELF != "")) { $SCRIPT_NAME_FIXED = str_replace($SCRIPT_NAME, "", $PHP_SELF);} else {$SCRIPT_NAME_FIXED = $SCRIPT_NAME;} $SCRIPT_PATH_FIXED = __FILE__; # # PLEASE DO NOT MODIFY THE TRANSLATION DICTIONARIES. IF YOU THINK # SOMETHING COULD BE PHRASED BETTER, PLEASE LET ME KNOW SO I CAN # FIX IT FOR EVERYBODY. # # THANKS # $rosetta["AR"] = array("Arabic\twindows-1256\tArabic","","","","",""," ",""," "," "," "," "," %## ",""," "," "," "," ",""," #a"," ","","","",""," "," "," #a ##"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "); $rosetta["BS"] = array("Bosnian\tiso-8859-1\tBosanski","Bosanski","fajl","fajlovi","folder","folderi","izaberi sve","nista","dodaj na listu","izbrisi sa liste","slusaj posebno","slusaj sve","lista je ##% puna","trazi","molimo vas logujte se","logujte se","Lozinka","Glavna strana","zeljena podesavanja","o #a","ftp site","izvodjac","albumi","pjesme","zanr","labels","pitanja i komentari","powerd by #a verzija ##","novo Danas","novo jucer","novo Nedjelja","novo Ponedjeljak","novo Utorak","novo SrijedA","nOVO Cetvrtak","novo Petak","novo Subota","rezultati trazenja","trazena rijec mora imati najmanje dva slova","nista nema na dati text","File nije pronadjen","bicete preusmjereni na sajt","Klikni ovdje","da nastavite","lista","pogledaj listu"); $rosetta["BG"] = array("Bulgarian\tWindows-1251\tBulgarian","","","","",""," "," "," "," "," "," "," ##%"," "," ","",""," ",""," #a","ftp ","","","","",""," "," #a ##"," "," "," "," "," "," "," "," "," "," "," - "," "," "," "," "," ",""," "); $rosetta["CA"] = array("Catalan\tiso-8859-1\tCatalà","Catal","arxiu","arxius","carpeta","carpetes","seleccionar tot","res","afegir a la llista","treure de la llista","reproduir selecci","reproduir tot","la llista est ##% plena","buscar a","identifica't si-us-plau","nom","clau","pgina inicial","preferencies","sobre #a","lloc ftp","artistes","lbums","canons","gneres","segells","preguntes o comentaris","funciona amb #a versi ##","nou avui","nou d ahir","nou del diumenge","nou del dilluns","nou del dimarts","nou del dimecres","nou del dijous","nou del divendres","nou del dissabte","resultats de la bsqueda","cal introduir com a mnim 2 lletres","no s'han trobat coincidncies","Arxiu no trobat","Hauries de ser redirigit cap aquest lloc","apreta aqui","Per continuar","llista","veure llista"); $rosetta["CS"] = array("Czech\tiso-8859-2\tCesky","esky","soubor","soubory","sloka","sloky","vybrat ve","nic","pidat do playlistu","odstranit z playlistu","pehrt vybran","pehrt ve","playlist je z ##% pln","hledat v","prihlate se prosm","jmno","heslo","tituln strana","nastaven","o #a","ftp server","umlci","alba","psn","nry","labely","otzky nebo komente","pouv #a verze ##","novinka dnes","novinka vera","novinka Nedle","novinka Pondl","novinka ter","novinka Stedy","novinka tvrtka","novinka Pteku","novinka Soboty","vsledky vyhledvn","zadejte alespo 2 znaky","nic nenalezeno","Soubor nenalezen","Budete pesmrovn na","klikni zde","Pokraovat","playlist","prohldnout playlist"); $rosetta["ZH-cn"] = array("Chinese Simplified\tGB2312\tChinese Simplified","","","","ϼ","ϼ","ȫѡ","","嵥","Ӳ嵥Ƴ","嵥","ȫ","嵥ʹ##%","Ѱ","","","","ҳ","趨"," #a","ftp վ̨","ݳ/","ר","","","Ƭ˾",""," #a - 汾 ##"," - "," - "," - "," - һ"," - ڶ"," - ","- "," - "," - ","Ѱ","ѰԪ","ҲҪĿ","Ҳ","㽫ᱻվ̨","밴","","嵥","Ӳ嵥"); $rosetta["ZH-tw"] = array("Chinese Traditional\tBIG5\tChinese Traditional","c餤","ɮ","ɮ","ӸƧ","ӸƧ","","M","sWܼM","qM椤","M","","MwϥΤF##%","jM","еnJ","nJW","KX","","]w"," #a","ftp x","tX/t","M","q","O","ۤq","DηN"," #a }o - ##","sW - ","sW - Q","sW - P","sW - P@","sW - PG","sW - PT","sW- P|","sW - P","sW - P","jMG","jM󥲶Ѧܤ֨ӦrҲզ","䤣ŦXnD","䤣ɮ","AN|QaiJx","Ыo","~","M","˵M"); $rosetta["DA"] = array("Danish\tiso-8859-1\tDansk","Dansk","fil","filer","mappe","mapper","vlg alle","ingen","tilfj til liste","fjern fra liste","afspil valgte","afspil alle","listen er ##% fuld","sg","vr venlig at logge ind","brugernavn","kodeord","hjemmeside","indstillinger","om #a","ftp site","kunstnere","albums","sange","genrer","titler","sprgsml eller kommentarer","genereret af #a version ##","nye i dag","nye i gr","nye sndag","nye mandag","nye tirsdag","nye onsdag","nyt torsdag","nye fredag","nye lrdag","sgeresultater","sgeordet skal minimum indeholde 2 karakterer","din sgning gav intet resultat","siden blev ikke fundet","du burde blive viderestillet til sitet","tryk her","for at fortstte","listen","vis listen"); $rosetta["DE"] = array("German\tiso-8859-1\tDeutsch","Deutsch","Datei","Dateien","Ordner","Ordner","alles auswhlen","aufheben","zur Playlist hinzufgen","aus der Playlist entfernen","Auswahl abspielen","alles Abspielen","die Playlist ist zu ##% voll","durchsuche","Bitte anmelden","Benutzername","Passwort","Homepage","Einstellungen","ber #a","FTP Server","Knstler","Alben","Titel","Genres","Labels","Fragen oder Kommentare","powered by #a version ##","Neu, seit Heute","Neu, seit Gestern","Neu, seit Sonntag","Neu, seit Montag","Neu, seit Dienstag","Neu, seit Mittwoch","Neu, seit Donnerstag","Neu, seit Freitag","Neu, seit Samstag","Suchergebnisse","Der Suchbegriff mu mindestens 2 Zeichen enthalten","Keine Ergebnisse gefunden","Datei nicht gefunden","Sie sollten jetzt auf die Seite weitergeleitet werden","hier klicken","Um fortzufahren","Playlist","Playlist anzeigen"); $rosetta["ET"] = array("Estonian\tiso-8859-1\tEesti","Eesti","fail","faili","kaust","kausta","vali kikk","thista valitud","lisa playlisti","krvalda playlistist","mngi valituid","mngi kiki","playlistist on kasutusel ##%","otsi","palun logi sisse","kasutajanimi","salasna","koduleheklg","eelistused","info #a-st","ftp leht","artiste","albumeid","laule","muusika stiile","kaani","ksimused vi kommentarid","powered by #a version ##","uus tna","uus eile","uus Phapeval","uus Esmaspeval","uus Teisipeval","uus Kolmapeval","uus Neljapeval","uus Reedel","uus Lapeval","otsimise tulemaus","otsitav sna peaks olema vheamlt 2 themrki","sinu pringule ei leidunud vastust","Faili ei leidu","Sind suunatakse uuele lehele","klikki siia","Jtkamaks","playlist","nita playlisti"); $rosetta["EL"] = array("Greek\tiso-8859-7\tEllinika","","","","",""," ",""," "," "," "," "," ##% ","",""," ",""," ",""," #a","ftp site","","","","",""," "," #a ##"," "," "," "," "," "," "," "," "," "," "," 2 "," "," "," site"," click "," "," "," "); $rosetta["EN"] = array("English\tiso-8859-1\tEnglish","English","file","files","folder","folders","select all","none","add to playlist","remove from playlist","play selection","play all","the playlist is ##% full","search","please logon","logon","password","home page","preferences","about #a","ftp site","artists","albums","songs","genres","labels","questions or comments","powered by #a version ##","new today","new yesterday","new Sunday","new Monday","new Tuesday","new Wednesday","new Thursday","new Friday","new Saturday","search results","the search term must be at least 2 characters","no matches found","File not found","You should be redirected into the site","click here","To continue","playlist","view playlist"); $rosetta["ES"] = array("Spanish\tiso-8859-1\tEspañol","Espaol","archivo","archivos","carpeta","carpetas","seleccionar todo","ninguno","aadir a la lista"," quitar de la lista","reproducir seleccin","reproducir todas","la lista esta ##% llena","buscar en","autentifcate por favor","nombre","contrasea","web inicial","preferencias","acerca de #a","sitio de ftp","artistas","discos","canciones","gneros","disqueras","preguntas o comentarios","soportado por #a versin ##","nueva hoy","nueva ayer","nueva domingo","nueva lunes","nueva martes","nueva mircoles","nueva jueves","nueva viernes","nueva sbado","resultados de la bsqueda","la bsqueda debe tener al menos 2 letras","no se encontraron coincidencias","Archivo no encontrado","Deberas ser redirigido al sitio","pulsa aqu","Para continuar","lista","ver lista"); $rosetta["FR"] = array("French\tiso-8859-1\tFrançais","Franais","fichier","fichiers","dossier","dossiers","slectionner tout","aucun","ajouter la liste","enlever de la liste","jouer la slection","jouer tout","la liste est pleine ##%","rechercher","enregistrez-vous, svp","usager","mot de passe","acceuil","prfrences"," propos d'#a","site ftp","artistes","albums","chansons","genres","maisons d'ditions","questions ou commentaires","gnr par #a version ##","ajout aujourd'hui","ajout hier","ajout dimanche","ajout lundi","ajout mardi","ajout mercredi","ajout jeudi","ajout vendredi","ajout samedi","rsultats","le mot-cl recherch doit avoir au moins 2 caractres","aucuns rsultats pour cette recherche","Le fichier n'a pas t trouv","Vous devriez tre redirig vers le site","cliquez ici","Pour continuer","liste","voir la liste"); $rosetta["IS"] = array("Icelandic\tiso-8859-1\tÍslenska","slenska","skr","skrr","mappa","mppur","velja allt","ekkert","bta vi lagalista","fjarlgja af lagalista","spila val","spila allt","lagalistinn er ##% fullur","leita ","skru ig inn","notendanafn","lykilor","heimasa","stillingar","um #a","ftp svi","listamenn","pltur","lg","tegund","tgfur","spurningar ea bendingar","kni af #a tgfa ##","ntt dag","ntt gr","ntt sunnudag","ntt mnudag","ntt rijudag","ntt mivikudag","ntt fimmtudag","ntt fstudag","ntt laugardag","niurstur leitar","leitin verur a innihalda a minnsta kosti 2 stafi","ekkert fannst","Skrin finnst ekki"," ttir a vera fluttur suna","smelltu hr","Til a halda fram","agalisti","skoa lagalista"); $rosetta["IT"] = array("Italian\tiso-8859-1\tItaliano","Italiano","file","files","cartella","cartelle","seleziona tutto","cancella","aggiungi alla playlist","rimuovi dalla playlist","play selezione","play tutto","la playlist e' piena al ##%","cerca","inserisci utente e password","utente","password","home page","preferenze","informazioni su #a","sito FTP ","artisti","albums","canzoni","generi","etichette","domande o commenti","creato con #a versione ##","aggiunto oggi","aggiunto ieri","aggiunto domenica","aggiunto lunedi","aggiunto martedi","aggiunto mercoledi","aggiunto giovedi","aggiunto venerdi","aggiunto sabato","risultati della ricerca","la parola da cercare deve esse di 2 lettere almeno","nessun risultato per questa ricerca","File non trovato","Sarete rediretti al sito","clicca qui","Per continuare","playlist","guarda la playlist"); $rosetta["JA"] = array("Japanese\tShift_JIS\tJapanese","{","t@C","t@C","tH_","tH_","SI","Ȃ","Xgɒlj","Xg폜","IȂĐ","ׂčĐ","Xg##%t","T[`","OIĂ","OI","pX[h","z[y[W","IvV","#aɂ‚","ftp TCg","A[eBXg","Ao","","W","[x","܂̓Rg","powered by #a version ##","fڍ","fڍ","fړj","fڌj","fډΗj","fڐj","fږؗj","fڋj","fړyj","","L[[h2ȏɂĂ","݂‚܂ł","t@C͌‚܂ł","IɃTCgֈړ܂","NbNĂ","","ĐXg","ĐXg"); $rosetta["KO"] = array("Korean\teuc-kr\tKorean","ѱ","","","",""," "," "," Ͽ ߰"," Ͽ "," "," ","̿ Ͽ ##% Դϴ","˻","α ϼ","α","н","ó","","#a Ͽ","FTP Ʈ","ƼƮ","ٹ","","","̺","ǰ õ ǻ ּ","powered by #a version ##","(߰)","(߰)","(߰)Ͽ","(߰)","(߰)ȭ","(߰)","(߰)","(߰)ݿ","(߰)","˻ ","˻ ּ 2 ̻ ̾ մϴ","ġϴ ڷᰡ ϴ"," ã ϴ","ٽ õ ּ","Ŭϼ","⸦"," "," "); $rosetta["HU"] = array("Hungarian\tiso-8859-2\tMagyar","Magyar","fjl","fjl","knyvtr","knyvtr","mind kivlaszt","semmi","hozzads a listhoz","trls a listbl","kivlasztottak lejtszsa","minden lejtszsa","a lista ##%-ig tele","Keress:","Krem lpj be","Felhasznlnv","Jelsz","Kezdoldal","Belltsok","Az #a-rl","FTP trhely","Eladk","Albumok","Dalok","Stlusok","Feliratok","Krdsek vagy megjegyzsek","Az oldal az #a ## verzival kszlt","Mai jdonsgok","Tegnapi jdonsgok","Vasrnapi jdonsgok","Htfi jdonsgok","Keddi jdonsgok","Szerdai jdonsgok","Cstrtki jdonsgok","Pnteki jdonsgok","Szombati jdonsgok","A keress eredmnye","A keresend sznak legalbb 2 betbl kell llni","Nincs tallat","A fjl nem tallhat","Mindjrt tirnytunk az oldalunkra","kattints ide","A folytatshoz","Dalok listja","Lista megtekintse"); $rosetta["NL"] = array("Dutch\tiso-8859-1\tNederlands","Nederlands","bestand","bestanden","map","mappen","alles selecteren","niets","aan playlist toevoegen","van playlist verwijderen","selectie afspelen","speel alles","de playlist is voor ##% vol","zoek in","Inloggen a.u.b.","gebruikersnaam","wachtwoord","home pagina","instellingen","over #a","ftp site","artiesten","albums","nummers","genres","labels","vragen of opmerkingen","powered by #a versie ##","nieuw vandaag","nieuw gisteren","nieuw zondag","nieuw maandag","nieuw dinsdag","nieuw woensdag","nieuw donderdag","nieuw vrijdag","nieuw zaterdag","zoekresultaten","de zoekterm moet uit minimaal 2 tekens bestaan","geen zoekresultaten gevonden","Bestand niet gevonden","U wordt naar de site doorgestuurd","klik hier","Om door te gaan","playlist","playlist bekijken"); $rosetta["NO"] = array("Norwegian\tiso-8859-1\tNorsk","Norsk","fil","filer","mappe","mapper","velg alle","ingen","legg til i spillelisten","fjern fra spillelisten","spill valgte","spill alle","spillelisten er ##% full","Sk","Vennligst logg inn","Brukernavn","Passord","hjem","innstillinger","om #a","ftp side","artister","album","sanger","sjangere","plateselskaper","sprsml eller kommentarer","Drevet av #a versjon ##","ny i dag","ny i gr","ny p sndag","ny p mandag","ny p tirsdag","ny p onsdag","ny p torsdag","ny p fredag","ny p lrdag","skeresultater","skestrengen m vre p minst 2 tegn","ingen treff","Finner ikke filen","Du burde bli videresendt til siden","klikk her","For fortsette","spillelisten","se p spillelisten"); $rosetta["PL"] = array("Polish\tiso-8859-2\tPolski","Polski","plik","plikw","folder","folderw","zaznacz wszystko","nic","dodaj do listy","usu z listy","odtwrz zaznaczone","odtwrz wszystko","wypenienie listy ##%","szukaj","zaloguj si","uytkownik","haso","strona gwna","preferencje","o #a","serwer FTP","wykonawca","albumy","utwory","gatunek","tytu","pytania lub komentarze","powered by #a version ##","dzisiejsze nowoci","wczorajsze nowoci","nowo z niedzieli","nowo z poniedziaku","nowo z wtorku","nowo ze rody","nowo z czwartku","nowo z pitku","nowo z soboty","wyniki szukania","szukana fraza musi skada si z min. 2 liter","nie znaleziono","Brak pliku","Musisz by przekierowany do strony","kliknij tutaj","Kontynuacja","lista odtwarzania","widok listy odtwarzania"); $rosetta["PT"] = array("Portuguese\tiso-8859-1\tPortuguês","Portugus","ficheiro","ficheiros","pasta","pastas","seleccionar todos","nenhum","juntar playlist","remover da playlist","tocar seleco","tocar todos","a playlist est ##% cheia","procure no","por favor identifique-se","utilizador","palavra-passe","homepage","preferncias","acerca do #a","site ftp","artistas","lbums","canes","gneros","editoras","questes ou comentrios","powered by #a verso ##","novo hoje","novo ontem","novo domingo","novo segunda-feira","novo tera-feira","novo quarta-feira","novo quinta-feira","novo sexta-feira","novo sbado","resultados da pesquisa","o termo da pesquisa deve ter pelo menos 2 caracteres","nenhum resultado encontrado","Ficheiro no encontrado","Dever ser redirigido para este site","clique aqui","Para continuar","playlist","ver playlist"); $rosetta["PT-br"] = array("Portuguese (Brazil)\tiso-8859-1\tPortuguês (Brasil)","Portugus (Brasil)","arquivo","arquivos","pasta","pastas","selecionar todos","nenhum","adicionar ao playlist","remover do playlist","tocar seleo","tocar todas","o playlist est ##% cheio","procure no","por favor identifique-se","usurio","senha","homepage","preferncias","sobre o #a","site ftp","artistas","lbums","msicas","estilos","selos","perguntas ou comentrios","powered by #a verso ##","novo hoje","novo ontem","novo domingo","novo segunda-feira","novo tera-feira","novo quarta-feira","novo quinta-feira","novo sexta-feira","novo sbado","resultados da pesquisa","o termo da pesquisa deve ter pelo menos 2 caracteres","nenhum resultado encontrado","Arquivo no encontrado","Dever ser redirecionado para este site","clique aqui","Para continuar","playlist","ver o playlist"); $rosetta["RU"] = array("Russian\tWindows-1251\tPycckuu","","","","",""," ",""," "," "," "," "," ##%"," "," ","",""," ",""," #a"," ftp","","","","",""," "," #a ##"," "," "," "," "," "," "," "," "," "," "," 2 "," "," "," "," "," ",""," "); $rosetta["RO"] = array("Romanian\tiso-8859-2\tRomâna","Romn","fiier","fiiere","director","directoare","selecteaz toate","nici unul","adaug la list","terge din list","red selecia","red toate","lista de piese este ##% plin","caut pe","v rog conectai-v","utilizator","parola","pagina principal","preferine","despre #a","locaie ftp","artiti","albume","piese","stiluri","etichete","ntrebri sau comentarii","creat de #a versiunea ##","adugat astzi","adugat ieri","adugat Duminic","adugat Luni","adugat Mari","adugat Miercuri","adugat Joi","adugat Vineri","adugat Smbt","rezultatul cutrii","cuvntul de cutare trebuie sa aib cel puin 2 caractere","nu am gsit nimic","Fiierul nu exist","Trebuie s reintri n site","apas aici","Pentru a continua","lista","vizualizeaz lista"); $rosetta["SQ"] = array("Albanian\tiso-8859-1\tShqip","Shqip","Fajl-i","Fajl-at","Dosja","Dosjet","zgjedh t gjitha","asnj","shto ne list","largo nga lista","dgjo t zgjedhurn","dgjo t gjitha","Lista shte e mbushur ##%","Krko","Lajmroheni ju lutem","Emri","Fjalkalimi","Homepage-i","Konfigurimi","lidhur me #a","ftp faqja","Artistt","Albumet","Kngt","Zhanret","Emrtimet","Pyetjet ose Komentet","powered by #a version ##","Risi nga sot","Risi nga dje","Risi nga e Diela","Risi nga e Hna","Risi nga e Marta","Risi nga e Mrkura","Risi nga e Enjtja","Risi nga e Premtja","Risi nga e Shtuna","Rezultatet e krkimit","Termi q krkoni duhet t ket m s paku 2 shkronja","nuk u gjet asnj rezultat","Fajli nuk sht gjendur","Do te duhej te ridrejtoheshit ne faqen","kliko ktu","pr t vazhduar","Lista","shiqo Listn"); $rosetta["SL"] = array("Slovenian\tiso-8859-2\tSlovenscina","Slovenina","datoteka","datotek","mapa","map","izberi vse","ni","dodaj na seznam","zbrii s seznama","predvajaj izbrano","predvajaj vse","seznam je ##% poln","ii","prosim prijavi se","prijava","geslo","domaa stran","preference","o #a","ftp server","izvajalci","albumi","skladbe","anr","zalobe","vpraanja ali pripombe","powered by #a version ##","novo danes","novo od veraj","novo od nedelje","novo od ponedeljka","novo od torka","novo od srede","novo od etrtka","novo od petka","novo od sobote","ii po zadetkih","iskani termin naj vsebuje vsaj 2 znaka","ni zadetkov","Datoteka ni najdena","Preusmerjeni bi morali biti na stran","klikni tukaj","Za nadaljevanje","seznam","poglej seznam"); $rosetta["SK"] = array("Slovak\tiso-8859-2\tSlovensky","Slovensky","sbor","sbory","zloka","zloky","vybra vetko","zma vber","prida do playlistu","odstrni z playlistu","prehra vybran","prehra vetko","playlist je z ##% pln","hada v","prihlste sa prosm","meno","heslo","tituln strana","nastavenie","o Andromede","ftp server","umelci","albumi","piesne","nre","labely","otzky alebo komentre","pouva Andromedu verzie ##","novinka dnes","novinka vera","novinka Nedele","novinka Pondelka","novinka Utorka","novinka Stredy","novinka tvrtka","novinka Piatku","novinka Soboty","vsledky vyhadvania","zadejte aspo 2 znaky","ni nenjden","Sbor nenjden","Budete presmerovn na","kliknite tu","Pokraova","playlist","prohliadnu playlist"); $rosetta["SR"] = array("Serbian\tiso-8859-2\tSrpski","Srpski","fajl","fajla","direktorijum","direktorijuma","selektuj sve","nita","dodaj u listu","izbrii iz liste","sluaj selektovano","sluaj sve","lista je ##% puna","pretraga","molimo da se ulogujete","logovanje","ifra","glavna strana","podeavanja","#a","ftp strana","umetnici","albumi","pesme","anrovi","labele","pitanja ili komentari","powered by #a version ##","novi danas","novi jue","novi Nedelja","novi Ponedeljak","novi Utorak","novi Sreda","novi etvrtak","novi Petak","novi Subota","rezultati pretrage","morate uneti najmanje 2 slova za pretragu","nita nije pronaeno","Fajl nije pronaen","Trebalo bi da budete poslani na sajt","kliknite ovde","Da nastavite","lista","pogledaj listu"); $rosetta["FI"] = array("Finnish\tiso-8859-1\tSuomi","Suomi","tiedosto","tiedostoa","kansio","kansiota","valitse kaikki","poista valinnat","lis soittolistaan","poista soittolistasta","soita valitut","soita kaikki","soittolistan tilasta on kytss ##%","etsi palvelimelta","kirjaudu jrjestelmn","kyttjtunnus","salasana","kotisivu","asetukset","tietoja #a:sta","ftp-palvelin","artistit","albumit","kappaleet","musiikkityylit","levy-yhtit","kysymykset tai kommentit","jrjestelm on toteutettu #a versiolla ##","uusi tnn","uusi eilen","uusi sunnuntai","uusi maanantai","uusi tiistai","uusi keskiviikko","uusi torstai","uusi perjantai","uusi lauantai","haun tulokset","hakusanan tulee olla vhintn 2 kirjaimen pituinen","hakusanalla ei lytynyt tiedostoja","Tiedostoa ei lydy","Selaimesi pitisi ohjautua uudelle sivulle","paina tst","Jatkaaksesi","soittolista","nyt soittolista"); $rosetta["SV"] = array("Swedish\tiso-8859-1\tSvenska","Svenska","fil","filer","mapp","mappar","vlj alla","inga","lgg till spellistan","radera frn spellistan","spela urvalet","spela alla","spellistan r till ##% full","sk i","Logga in tack","loggin","lsenord","hemsida","instllningar","om #a","ftp adress","artist","album","snger","kategori","skivmrke","frgor och kommentarer","skapad av #a version ##","ny idag","ny igr","ny Sndag","ny Mndag","ny Tisdag","ny Onsdag","ny Torsdag","ny Fredag","ny Lrdag","sk resultat","skordet mste vara minst 2 tecken","inga trffar funna","inga filer funna","du blir vidarbefodrad till sidan","tryck hr","fortstt","spellistan","visa spellista"); $rosetta["TR"] = array("Turkish\tiso-8859-9\tTürkçe","Trke","dosya","dosya","dizin","dizin","hepsini se","hibiri","listeye ekle","listeden kar","seimi al","hepsini al","liste ##% dolu","ara","ltfen giri yapn","kullanc","ifre","ana sayfa","ayarlar","#a hakknda","ftp site","artistler","albmler","arklar","trler","etiketler","sorular veya neriler","destekleyen; #a versiyon ##","yeni bugn","yeni dn","yeni Pazar","yeni Pazartesi","yeni Sal","yeni aramba","yeni Perembe","yeni Cuma","yeni Cumartesi","arama sonular","arama kriteri en az 2 karakterli olmal","aranan kayt bulunamad","Dosya bulunamad","Siteye gnderilebilirsiniz","buraya tklayn","Devam iin","liste","listeye gzat"); $rosetta["VI"] = array("Vietnamese\tUTF-8\tViet Ngu","Việt Ngữ","Hồ sơ","Hồ sơ","Tập nhạc","Tập nhạc","Chọn tất cả","không","Thêm và danh sách","Xóa từ danh sách","Nghe bản nhạc","Nghe danh sách nhạc","Danh sách nhạc ##% đầy","Tìm","Xin đăng nhập","Đăng nhập","Mật mã","Trang chủ","Ý thích","Vài nét về #a","Thư viện FTP","Ca sĩ","albums","bản nhạc","thể loại nhạc","trung tâm","Câu hỏi / ý kiến","Thiết kế bởi #a ##","Bài mới hôm nay","Bài mới hôm qua","Bài mới Chủ nhật","Bài mới thứ Hai","Bài mới thứ Ba","Bài mới thứ Tư","Bài mới thứ Năm","Bài mới thứ Sáu","Bài mới thứ Bảy","Dò tìm nhạc","Từ tìm kiếm phải hơn 2 chữ","Không tìm thấy","Tìm không thấy bản nhạc","Bạn sẽ được đưa vào thư viện","Bấm vào đây","Tiếp tục","Danh sách nhạc","Coi danh sách nhạc"); loadConstants(); loadDefaults(); loadPrefs(); if ($andromedaPrefs["timeout"] != "") { set_time_limit($andromedaPrefs["timeout"]);} if ($andromedaPrefs["rootName"] == "") { $andromedaPrefs["rootName"] = displayName($andromedaPrefs["mediaPhysicalPath"],false);} if ($andromedaPrefs["rootName"] == "") {$andromedaPrefs["rootName"] = "root";} $sck = !(!$andromedaConst["moduleMode"] && $andromedaPrefs["moduleOnly"]); if ($sck) {$sck = !((substr(__FILE__,-1) == "\\") || (substr(__FILE__,-1) == "/"));} if ($sck) {$sck = !strpos(strtolower($PHP_SELF), substr(__FILE__,strrpos(__FILE__,".")) . "/");} if (!$sck) {exit();} if (($andromedaPrefs["coreInclude"] != "") && (!$andromedaConst["moduleMode"])) { include($andromedaPrefs["coreInclude"]);} if ($andromedaPrefs["useExtLogon"]) { if (function_exists("is_user")) { if (!is_user($user)) {Header("Location: user.php");}} else { if (!isset($user)) {Header("Location: user.php");}}} if ($andromedaConst["moduleMode"]) {$andromedaPrefs["disableHTMLheaders"] = true;} for ($rpi = 1; $rpi <= $andromedaPrefs["cBlockCount"]; $rpi++) { $rtmp2 = "playlist" . $rpi; if ($$rtmp2 == "") {$$rtmp2 = $HTTP_COOKIE_VARS["playlist" . $rpi];} if ($$rtmp2 == "") {$$rtmp2 = $_COOKIE["playlist" . $rpi];}} if ($logon == "") {$logon = $HTTP_COOKIE_VARS["logon"];} if ($logon == "") {$logon = $_COOKIE["logon"];} if ($password == "") {$password = $HTTP_COOKIE_VARS["password"];} if ($password == "") {$password = $_COOKIE["password"];} if ($clang == "") {$clang = $HTTP_COOKIE_VARS["clang"];} if ($clang == "") {$clang = $_COOKIE["clang"];} if ($f == "") {$f = $HTTP_GET_VARS["f"];} if ($f == "") {$f = $_GET["f"];} if ($f == "") {$f = $HTTP_POST_VARS["f"];} if ($f == "") {$f = $_POST["f"];} if ($m == "") {$m = $HTTP_GET_VARS["m"];} if ($m == "") {$m = $_GET["m"];} if ($m == "") {$m = $HTTP_POST_VARS["m"];} if ($m == "") {$m = $_POST["m"];} if ($p == "") {$p = $HTTP_GET_VARS["p"];} if ($p == "") {$p = $_GET["p"];} if ($p == "") {$p = $HTTP_POST_VARS["p"];} if ($p == "") {$p = $_POST["p"];} if ($q == "") {$q = $HTTP_GET_VARS["q"];} if ($q == "") {$q = $_GET["q"];} if ($q == "") {$q = $HTTP_POST_VARS["q"];} if ($q == "") {$q = $_POST["q"];} if ($s == "") {$s = $HTTP_GET_VARS["s"];} if ($s == "") {$s = $_GET["s"];} if ($s == "") {$s = $HTTP_POST_VARS["s"];} if ($s == "") {$s = $_POST["s"];} if ($sm == "") {$sm = $HTTP_GET_VARS["sm"];} if ($sm == "") {$sm = $_GET["sm"];} if ($sm == "") {$sm = $HTTP_POST_VARS["sm"];} if ($sm == "") {$sm = $_POST["sm"];} if ($y == "") {$y = $HTTP_GET_VARS["y"];} if ($y == "") {$y = $_GET["y"];} if ($y == "") {$y = $HTTP_POST_VARS["y"];} if ($y == "") {$y = $_POST["y"];} if ($t == "") {$t = $HTTP_GET_VARS["t"];} if ($t == "") {$t = $_GET["t"];} if ($t == "") {$t = $HTTP_POST_VARS["t"];} if ($t == "") {$t = $_POST["t"];} if ($flogon == "") {$flogon = $HTTP_POST_VARS["flogon"];} if ($flogon == "") {$flogon = $_POST["flogon"];} if ($fpassword == "") {$fpassword = $HTTP_POST_VARS["fpassword"];} if ($fpassword == "") {$fpassword = $_POST["fpassword"];} $fttmpa = explode(",",strtolower($andromedaPrefs["audioFileTypes"])); for ($fti = 0; $fti < count($fttmpa); $fti++) { $fileTypes[$fttmpa[$fti]] = "audio";} $fttmpa = explode(",",strtolower($andromedaPrefs["videoFileTypes"])); for ($fti = 0; $fti < count($fttmpa); $fti++) { $fileTypes[$fttmpa[$fti]] = "video";} $fttmpa = explode(",",strtolower($andromedaPrefs["playlistFileTypes"])); for ($fti = 0; $fti < count($fttmpa); $fti++) { $fileTypes[$fttmpa[$fti]] = "playlist";} $fttmpa = explode(",",$andromedaPrefs["folderSkipNames"]); for ($fti = 0; $fti < count($fttmpa); $fti++) { $folderSkipNames[$fttmpa[$fti]] = true;} if ($andromedaConst[ca2s(array(101,100,105,116,105,111,110))] != ca2s(array(80,101,114,115,111,110,97,108,32,69,100,105,116,105,111,110))) {exit();} loadSkin(); loadLogons(); $totalrowcount = 0; $filerowcount = 0; $plrpre = ""; if ($andromedaPrefs["permitTranslation"]) { if ($t != "") {$currentLanguage = $t;} else { if ($clang != "") {$currentLanguage = $clang;} else {$currentLanguage = $andromedaPrefs["defaultLanguage"];}}} else {$currentLanguage = $andromedaPrefs["defaultLanguage"];} $clangCodes = explode("\t",$rosetta[$currentLanguage][0]); if (!($andromedaPrefs["requireLogon"]) || $andromedaConst["localUser"]) { $permitAccess = true;} else {$permitAccess = (($andromedaLogons[$logon] == $password) && ($logon != "") && ($q != "l"));} if (($andromedaConst[ca2s(array(97,112,112,97,117,116,104))] != ca2s(array(83,99,111,116,116,32,77,97,116,116,104,101,119,115))) || ($andromedaConst[ca2s(array(97,112,112,99,111,114,112))] != ca2s(array(84,117,114,110,115,116,121,108,101))) || ($andromedaConst[ca2s(array(97,112,112,110,97,109,101))] != ca2s(array(65,110,100,114,111,109,101,100,97))) || ($andromedaConst[ca2s(array(97,112,112,114,111,111,116))] != ca2s(array(104,116,116,112,58,47,47,119,119,119,46,116,117,114,110,115,116,121,108,101,46,99,111,109,47,97,110,100,114,111,109,101,100,97)))) {exit();} if (!$permitAccess) { if ($q == "l") { $permitAccess2 = (($andromedaLogons[$flogon] == $fpassword) && ($flogon != "") && ($fpassword != "")); if (!$permitAccess2) { if (($t != "") && $andromedaPrefs["permitTranslation"]) {setcookie("clang", $currentLanguage);} andromedaHeader(trans(14)); echo "
"; if ($andromedaPrefs["logonMessage"] != "") { echo "" . $andromedaPrefs["logonMessage"] . ""; addvpad(12);} echo "
" . trans(14) . "
"; colorbar("100%","1",$andromedaPrefs["menubarColor"]); echo "
" . trans(15) . ":
" . trans(16) . ":
"; ipad(4,1); echo ""; imagetag("g","f",""); echo ""; ipad(2,1); echo "
"; colorbars($andromedaPrefs["bodyFgDiv"]); andromedaFooter();} else { setcookie("logon", fixgpc($flogon)); setcookie("password", fixgpc($fpassword)); andromedaHeaderCore(trans(41),true); echo "
"; if ($andromedaPrefs["disableHTMLheaders"]) {echo "";} echo trans(41) . ". " . trans(43) . ", "; if ($andromedaPrefs["disableHTMLheaders"]) { echo "" . trans(42) . "";} else { echo "" . trans(42) . "";} echo "."; if ($andromedaPrefs["disableHTMLheaders"]) {echo "";} echo "
"; colorbars($andromedaPrefs["bodyFgDiv"]); andromedaFooter();}} else { if (($t != "") && $andromedaPrefs["permitTranslation"]) {header("Location: " . andrLink("?q=l&t=" . $t,""));} else {header("Location: " . andrLink("?q=l",""));}}} else { if (($t != "") && $andromedaPrefs["permitTranslation"]) {setcookie("clang", fixgpc($currentLanguage));} $ckplaylist = readPlaylist("playlist"); if (($q == "f") && vpath(fixgpc($f))) {showfolder(fixgpc($f));} elseif (($q == "p") && vpath(fixgpc($p)) && $andromedaPrefs["playLinks"]) {playFolder(fixgpc($p));} elseif (($q == "m") && vpath(fixgpc($m)) && $andromedaPrefs["playLinks"]) {playPrepList("i" . fixgpc($m) . "\n");} elseif (($q == "s") && $andromedaPrefs["permitSearch"]) {search(fixgpc($s),$sm);} elseif (($q == "y") && ($andromedaPrefs["permitPlaylists"])) { switch ($y) { case "p": if ($andromedaPrefs["playLinks"]) {playPrepList($ckplaylist);} break; case trans(10): if ($andromedaPrefs["playLinks"]) { if ($m == 1) { for ($i=0; $i < count($f); $i++) { $pftmp = $pftmp . fixgpc($f[$i]) . "\n";} playPrepList($pftmp);} else { $selectlist = " "; for ($i=0; $i < count($f); $i++) { $selectlist = $selectlist . "[" . $f[$i] . "]";} $xtmpa = explode("\n",$ckplaylist); for ($xi = 0; $xi < count($xtmpa)-1; $xi++) { if (strpos($selectlist,"[" . ($xi + 1) . "]") != 0) { $xtmp = $xtmp . $xtmpa[$xi] . "\n";}} playPrepList($xtmp);}} break; case trans(8): $xtmp = readPlaylist("playlist"); for ($i=0; $i < count($f); $i++) { if (vpath(substr($f[$i],1))) { $xtmp = $xtmp . fixgpc($f[$i]) . "\n";}} $xtmp = substr($xtmp,0,$andromedaPrefs["cBlockSize"] * $andromedaPrefs["cBlockCount"] = 1); $xtmp = substr($xtmp,0,strrpos($xtmp,"\n")+1); $ckplaylist = $xtmp; writePlaylist("playlist"); displayPlaylist("playlist"); break; case trans(45): displayPlaylist("playlist"); break; case trans(9): $removelist = " "; for ($i=0; $i < count($f); $i++) { $removelist = $removelist . "[" . $f[$i] . "]";} $xtmpa = explode("\n",$ckplaylist); for ($xi = 0; $xi < count($xtmpa)-1; $xi++) { if (strpos($removelist,"[" . ($xi + 1) . "]") == 0) { $xtmp = $xtmp . $xtmpa[$xi] . "\n";}} $ckplaylist = $xtmp; writePlaylist("playlist"); displayPlaylist("playlist"); break; default: showfolder("");}} else {showfolder("");}}} ?>