Location: PHPKode > projects > Mummi (Multi-user MOD_MP3 Interface) > mummi.0.6/htroot/file.php
<?

// Setting the title
$GLOBALS[page_title] = "File Viewer";

// Include files
include "common.php";
include "$GLOBALS[lib_path]/filesys.inc";
include "$GLOBALS[lib_path]/audio.inc";
include "$GLOBALS[lib_path]/audio-db.inc";
include "$GLOBALS[lib_path]/design.inc";

$mp3 = new AUDIO_PARSER();

$adb = new AUDIO_DB;
$adb->connect("$GLOBALS[dbhost]","$GLOBALS[dbusername]","$GLOBALS[dbuserpassword]","$GLOBALS[dbname]");


// Set the user navbars.
if(!$HTTP_COOKIE_VARS[login_active]) $nav_array = array(main);
elseif($os->num_rows("SELECT user_name FROM users WHERE user_name='$session_array[user_name]' AND user_type='1'")) $nav_array = array_merge($GLOBALS[admin_navbox_array], $os->get_navbox_array($session_array[user_name]));
else $nav_array = array_merge($GLOBALS[basic_navbox_array], $os->get_navbox_array($session_array[user_name]));




// Decode the url encoding.
$rr_path = stripslashes(rawurldecode($r_path));
$rr_song = stripslashes(rawurldecode($song));

// Prep the data for export to the next cursed page.
$ss_path = rawurlencode($rr_path);
$ss_song = rawurlencode($rr_song);

// make the md5 sums.
$mdpath = md5("$GLOBALS[audio_folder]/"."$session_array[user_name]"."$rr_path/$rr_song");
$mdname = md5($rr_song);

//echo "path = $GLOBALS[audio_folder]/"."$session_array[user_name]"."$rr_path/$rr_song<br>\n";
//echo "pathmd5 = ".md5("$GLOBALS[audio_folder]/"."$session_array[user_name]"."$rr_path/$rr_song")."<br>\n";

// the combined path (folder and filename).
$rvs = rawurlencode("$rr_path/$rr_song");

// The hidden part of the path
$p_path = "$GLOBALS[audio_folder]/$session_array[user_name]";

// Combine the hidden path with the relitive path.
$w_path = $mp3->create_path($p_path, $rr_path);

// the parent folder.
$back_path = rawurlencode($mp3->up_dir($rr_path."/".$rr_song));

//echo "username = $session_array[user_name]<br>\n";

// set the audio file to be parsed.
$mp3->open_file("$GLOBALS[audio_folder]/$session_array[user_name]"."$rr_path/$rr_song");

// An array that binds the ISO-8859-1 funky chars to their associated HTML tags.
$GLOBALS[char_tbl] = get_html_translation_table(HTML_ENTITIES);

// A fix for white-spaces.
$GLOBALS[char_tbl][" "] = "&nbsp;";






if($adb->chk_path_md5($mdpath)) $indb = 1;
else $indb = 0;


if(isset($id3up)){
	$mp3->set_id3v1($title, $artist, $album, $year, $comment, $track, $genre_id);
	if($indb){
		$query1 = "SELECT * FROM audio_files WHERE path_md5='$mdpath' AND file_owner='$session_array[user_name]'";
		$result1 = $adb->fetch_numeric($query1);
		$result1 = $result1[0];
		$new_file_md5 = $mp3->file_data_md5("$GLOBALS[audio_folder]/$session_array[user_name]"."$rr_path/$rr_song");
		if($result1[8]){
			$adb->update_id3v11($adb->pull_id3v11_id($mdpath), $mpath, $title, $artist, $album, $comment, $year, $track, $genre_id);
			$adb->update_audio_files($result1[0], $result1[1], $result1[2], $mp3->fs_filesize, $mdpath, $new_file_md5, $result1[6], $result1[7], "1", $result1[9], $result1[10], $result1[11], $result1[12], $GLOBALS[current_utime]);
		}else{
			$adb->insert_id3v11($mdpath, $title, $artist, $album, $comment, $year, $track, $genre_id);
			$adb->update_audio_files($result1[0], $result1[1], $result1[2], $mp3->fs_filesize + 128, $mdpath, $new_file_md5, $result1[6], $result1[7], "1", $result1[9], $result1[10], $result1[11], $result1[12], $GLOBALS[current_utime]);
		}
	}
	header("Location: $GLOBALS[url_path]$PHP_SELF/?r_path=$ss_path&song=$ss_song");
}

if(isset($id3rm)){
	$mp3->remove_id3v1("$GLOBALS[audio_folder]/$session_array[user_name]"."$rr_path/$rr_song");
	if($indb){
		$query1 = "SELECT * FROM audio_files WHERE path_md5='$mdpath' AND file_owner='$session_array[user_name]'";
		$result1 = $adb->fetch_numeric($query1);
		$result1 = $result1[0];
		$new_file_md5 = $mp3->file_data_md5("$GLOBALS[audio_folder]/$session_array[user_name]"."$rr_path/$rr_song");
		$adb->purge_record($adb->pull_id3v11_id($mdpath), "id3v11");
		$adb->update_audio_files($result1[0], $result1[1], $result1[2], $mp3->fs_filesize, $mdpath, $new_file_md5, $result1[6], $result1[7], "0", $result1[9], $result1[10], $result1[11], $result1[12], $GLOBALS[current_utime]);
	}
	header("Location: $GLOBALS[url_path]$PHP_SELF/?r_path=$ss_path&song=$ss_song");
}



$id3v2_array = $mp3->get_id3v2();
$sync_data = $mp3->sync_mp3($id3v2_array[size]);


// corrective items to make sure the forms return good results.
if(!$id3_data = $mp3->get_id3v1()) $id3_data[genre_id] = "255";
if($id3_data[track] == "0") $id3_data[track] = "";
if($id3_data[year] == "0") $id3_data[year] = "";





//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



$version = $sync_data["version"] == "1" ? "MPEG 1":
	($sync_data["version"] == "2" ? "MPEG 2": "MPEG 2.5");

$layer = $sync_data["layer"];
$crc = $sync_data["crc"] == "0" ? "No" : "Yes";
$padding = $sync_data["padding"] == "0" ? "No" : "Yes";

$channelmode = $sync_data[channel_mode] <= 2 ?
	($sync_data[channel_mode] == 1 ? "Mono" :"Dual Mono"):
	($sync_data[channel_mode] == 3 ? "Joint Stereo" :"Stereo");

$private = $sync_data["private"] == "0" ? "No" : "Yes";
$copyright = $sync_data["copyright"] == "0" ? "No" : "Yes";
$original = $sync_data["original"] == "0" ? "No" : "Yes";
$emphasis = $sync_data["emphasis"] == "3" ? "None":
	($sync_data["emphasis"] < 2 ? "CCIT": "50/15");
$fps = floor($sync_data[fps]);




//$new_datetime = "$GLOBALS[audio_folder]$rr_path/$rr_song";
$new_datetime = date("F dS, Y - g:i:s A",filectime("$GLOBALS[audio_folder]/$session_array[user_name]"."$rr_path/$rr_song"));
$new_datetime2 = date("F dS, Y - g:i:s A",filemtime("$GLOBALS[audio_folder]/$session_array[user_name]"."$rr_path/$rr_song"));




/* An experimental loop to acomplish the bellow in less lines.
while(list($key) = each($id3v2_array[tags])){
	$v2_."$key" = $key;
}

*/

		//$v2_tit1 = $id3v2_array[tags][TIT1];
		$v2_tit2 = $id3v2_array[tags][TIT2];
		//$v2_tit3 = $id3v2_array[tags][TIT3];
		$v2_tpe1 = $id3v2_array[tags][TPE1];
		//$v2_tpe2 = $id3v2_array[tags][TPE2];
		//$v2_tpe3 = $id3v2_array[tags][TPE3];
		$v2_talb = $id3v2_array[tags][TALB];
		$v2_tyer = $id3v2_array[tags][TYER];
		$v2_trck = $id3v2_array[tags][TRCK];
		$v2_comm = $id3v2_array[tags][COMM];
		$v2_tcom = $id3v2_array[tags][TCOM];
		$v2_tcon = $id3v2_array[tags][TCON];
		$v2_wxxx = $id3v2_array[tags][WXXX];
		$v2_tenc = $id3v2_array[tags][TENC];
		$v2_tcop = $id3v2_array[tags][TCOP];
		$v2_tope = $id3v2_array[tags][TOPE];
		$v2_woar = $id3v2_array[tags][WOAR];
		//$v2_uslt = $id3v2_array[tags][USLT];
		//$v2_pcnt = $id3v2_array[tags][PCNT];
		//$v2_tlen = $id3v2_array[tags][TLEN];
		//$v2_tmed = $id3v2_array[tags][TMED];
		//$v2_ipls = $id3v2_array[tags][IPLS];
		//$v2_mcdi = $id3v2_array[tags][MCDI];
		//$v2_link = $id3v2_array[tags][LINK];
		//$v2_popm = $id3v2_array[tags][POPM];


// convert funky chars into html tags.
$display_name = strtr("$rr_song", $GLOBALS[char_tbl]);





$contents .= <<<ENDcontents
	<font size="$GLOBALS[body_font_size]">

	<table cellpadding="1" cellspacing="0" border="0"><tr>
		<td><form method="get" action="$GLOBALS[url_path]/folders.php">
		<input type="hidden" name="r_path" value="$back_path">
		<input type="submit" value="up"></form></td>


		<td><form method="post" action="$GLOBALS[url_path]/folders.php">
		<input type="hidden" name="r_path" value="$ss_path">
		<input type="hidden" name="song" value="$ss_song">
		<input type="hidden" name="fold[1][$ss_song]" value="$ss_path/$ss_song">
		<input type="submit" name="op" value="sync"></form></td>


		<td><form method="get" action="$GLOBALS[url_path]/download.php">
		<input type="hidden" name="r_path" value="$ss_path">
		<input type="hidden" name="song" value="$ss_song">
		<input type="submit" value="download"></form></td>


		<td><form method="get" action="$GLOBALS[url_path]/mp3stream.php">
		<input type="hidden" name="r_path" value="$ss_path">
		<input type="hidden" name="song" value="$ss_song">
		<input type="button" value="play" ONCLICK="swfWindow('$GLOBALS[url_path]/mp3stream.php?sig=$mdpath')"></form></td>


		<td><form method="get" action="$GLOBALS[stream_url]:$GLOBALS[stream_port]">
		<input type="hidden" name="op" value="m3u2">
		<input type="hidden" name="song" value="$mdpath">
		<input type="submit" value="stream"></form></td>
	</tr></table>

	<table width="100%" cellpadding="1" cellspacing="0" border="0" bgcolor="#eeeeee"><tr>
		<td>

ENDcontents;

// ============================================================================

$basic_file_info = <<<ENDbasic_file_info
					<table cellpadding="1" cellspacing="1" border="0"><tr>
						<td>File&nbsp;Name:&nbsp;</td>
						<td>$display_name&nbsp;&nbsp;(<a href="">Edit</a>)&nbsp;&nbsp;</td>
						<td>&nbsp;</td>
					</tr><tr>
						<td>File&nbsp;Path:&nbsp;</td>
						<td>$rr_path/$display_name</td>
						<td>&nbsp;</td>
					</tr><tr>
						<td>File&nbsp;Size:&nbsp;</td>
						<td colspan="2">$sync_data[filesize]</td>
					</tr><tr>
						<td>Modified:&nbsp;</td>
						<td colspan="2">$new_datetime2</td>
					</tr></table>
ENDbasic_file_info;
$contents .= draw_innerbox($title="Basic File Information", $basic_file_info) . "<br>\n";

// ============================================================================

$contents .= <<<ENDcontents
			<table cellpadding="1" cellspacing="0" border="0" width="100%"><tr>
				<td valign="top" width="50%">
ENDcontents;


// ============================================================================

$id3v1_file_info = <<<ENDid3v1_file_info
							<form action="$GLOBALS[url_path]$PHP_SELF" method="get">
							<input type="hidden" name="song" value="$ss_song">
							<input type="hidden" name="r_path" value="$rr_path">
							<input type="hidden" name="id3up">

							<table cellpadding="1" cellspacing="0" border="0"><tr>

								<td align=right>Song Title:</td>
								<td><input type="text" size="30" maxlength="30" name="title" value="$id3_data[title]"></td>
							</tr><tr>
								<td align="right">Artist:</td>
								<td><input type="text" size="30" maxlength="30" name="artist" value="$id3_data[artist]"></td>
							</tr><tr>
								<td align="right">Album:</td>
								<td><input type="text" size="30" maxlength="30" name="album" value="$id3_data[album]"></td>
							</tr><tr>
								<td align="right">Comment:</td>
								<td><input type="text" size="30" maxlength="29" name="comment" value="$id3_data[comment]"></td>
							</tr><tr>
								<td align="right">Year:</td>
								<td><input type="text" size="4" maxlength="4" name="year" value="$id3_data[year]"></td>
							</tr><tr>
								<td align="right">Track #:</td>
								<td><input type="text" size="3" maxlength="3" name="track" value="$id3_data[track]"></td>
							</tr><tr>
								<td align="right">Genre:</td>
								<td><select name="genre_id">
									<option value="$id3_data[genre_id]">$id3_data[genre]</option>
									<option value="255"></option>
									<option value="0">Blues</option>
									<option value="1">Classic Rock</option>
									<option value="2">Country</option>
									<option value="3">Dance</option>
									<option value="4">Disco</option>
									<option value="5">Funk</option>
									<option value="6">Grunge</option>
									<option value="7">Hip-Hop</option>
									<option value="8">Jazz</option>
									<option value="9">Metal</option>
									<option value="10">New Age</option>
									<option value="11">Oldies</option>
									<option value="12">Other</option>
									<option value="13">Pop</option>
									<option value="14">R&B</option>
									<option value="15">Rap</option>
									<option value="16">Reggae</option>
									<option value="17">Rock</option>
									<option value="18">Techno</option>
									<option value="19">Industrial</option>
									<option value="20">Alternative</option>
									<option value="21">Ska</option>
									<option value="22">Death Metal</option>
									<option value="23">Pranks</option>
									<option value="24">Soundtrack</option>
									<option value="25">Euro-Techno</option>
									<option value="26">Ambient</option>
									<option value="27">Trip-Hop</option>
									<option value="28">Vocal</option>
									<option value="29">Jazz+Funk</option>
									<option value="30">Fusion</option>
									<option value="31">Trance</option>
									<option value="32">Classical</option>
									<option value="33">Instrumental</option>
									<option value="34">Acid</option>
									<option value="35">House</option>
									<option value="36">Game</option>
									<option value="37">Sound Clip</option>
									<option value="38">Gospel</option>
									<option value="39">Noise</option>
									<option value="40">AlternRock</option>
									<option value="41">Bass</option>
									<option value="42">Soul</option>
									<option value="43">Punk</option>
									<option value="44">Space</option>
									<option value="45">Meditative</option>
									<option value="46">Instrumental Pop</option>
									<option value="47">Instrumental Rock</option>
									<option value="48">Ethnic</option>
									<option value="49">Gothic</option>
									<option value="50">DarkWave</option>
									<option value="51">Techno-Industrial</option>
									<option value="52">Electronic</option>
									<option value="53">Pop-Folk</option>
									<option value="54">Eurodance</option>
									<option value="55">Dream</option>
									<option value="56">Southern Rock</option>
									<option value="57">Comedy</option>
									<option value="58">Cult</option>
									<option value="59">Gangsta</option>
									<option value="60">Top 40</option>
									<option value="61">Christian Rap</option>
									<option value="62">Pop/Funk</option>
									<option value="63">Jungle</option>
									<option value="64">Native American</option>
									<option value="65">Cabaret</option>
									<option value="66">New Wave</option>
									<option value="67">Psychadelic</option>
									<option value="68">Rave</option>
									<option value="69">Showtunes</option>
									<option value="70">Trailer</option>
									<option value="71">Lo-Fi</option>
									<option value="72">Tribal</option>
									<option value="73">Acid Punk</option>
									<option value="74">Acid Jazz</option>
									<option value="75">Polka</option>
									<option value="76">Retro</option>
									<option value="77">Musical</option>
									<option value="78">Rock & Roll</option>
									<option value="79">Hard Rock</option>
									<option value="80">Folk</option>
									<option value="81">Folk/Rock</option>
									<option value="82">National Folk</option>
									<option value="83">Swing</option>
									<option value="84">Fast Fusion</option>
									<option value="85">Bebob</option>
									<option value="86">Latin</option>
									<option value="87">Revival</option>
									<option value="88">Celtic</option>
									<option value="89">Bluegrass</option>
									<option value="90">Avantgarde</option>
									<option value="91">Gothic Rock</option>
									<option value="92">Progressive Rock</option>
									<option value="93">Psychedelic Rock</option>
									<option value="94">Symphonic Rock</option>
									<option value="95">Slow Rock</option>
									<option value="96">Big Band</option>
									<option value="97">Chorus</option>
									<option value="98">Easy Listening</option>
									<option value="99">Acoustic</option>
									<option value="100">Humour</option>
									<option value="101">Speech</option>
									<option value="102">Chanson</option>
									<option value="103">Opera</option>
									<option value="104">Chamber Music</option>
									<option value="105">Sonata</option>
									<option value="106">Symphony</option>
									<option value="107">Booty Bass</option>
									<option value="108">Primus</option>
									<option value="109">Porn Groove</option>
									<option value="110">Satire</option>
									<option value="111">Slow Jam</option>
									<option value="112">Club</option>
									<option value="113">Tango</option>
									<option value="114">Samba</option>
									<option value="115">Folklore</option>
									<option value="116">Ballad</option>
									<option value="117">Power Ballad</option>
									<option value="118">Rhythmic Soul</option>
									<option value="119">Freestyle</option>
									<option value="120">Duet</option>
									<option value="121">Punk Rock</option>
									<option value="122">Drum Solo</option>
									<option value="123">Acapella</option>
									<option value="124">Euro-House</option>
									<option value="125">Dance Hall</option>
									<option value="126">Goa</option>
									<option value="127">Drum & Bass</option>
									<option value="128">Club-House</option>
									<option value="129">Hardcore</option>
									<option value="130">Terror</option>
									<option value="131">Indie</option>
									<option value="132">BritPop</option>
									<option value="133">Negerpunk</option>
									<option value="134">Polsk Punk</option>
									<option value="135">Beat</option>
									<option value="136">Christian Gangsta Rap</option>
									<option value="137">Heavy Metal</option>
									<option value="138">Black Metal</option>
									<option value="139">Crossover</option>
									<option value="140">Contemporary Christian</option>
									<option value="141">Christian Rock</option>
									<option value="142">Merengue</option>
									<option value="143">Salsa</option>
									<option value="144">Thrash Metal</option>
									<option value="145">Anime</option>
									<option value="146">JPop</option>
									<option value="147">Synthpop</option>
								</select></td>
							</tr><tr>
								<td><input type="submit" value="Update id3"></form></td>
								<td><form method="get" action="$GLOBALS[url_path]$PHP_SELF">
								<input type="hidden" name="id3rm" value="remove">
								<input type="hidden" name="song" value="$ss_song">
								<input type="hidden" name="r_path" value="$rr_path">
								<input type="submit" value="Remove id3">
								</form></td>
							</tr></table>

ENDid3v1_file_info;
$contents .= draw_innerbox($title="ID3v1 Information", $id3v1_file_info) . "<br>\n";

// ============================================================================


$header_file_info = <<<ENDheader_file_info
							<table cellpadding="1" cellspacing="1" border="0" width="100%">
							<tr><td>Header at:</td>
							<td>$sync_data[header]&nbsp;Bytes</td>
							<td>Framesize:</td>
							<td>$sync_data[framesize]</td></tr>
							<tr><td>Version:</td>
							<td>$version</td>
							<td>Frames:</td>
							<td>$sync_data[framesize]</td></tr>
							<tr><td>Layer</td>
							<td>$layer</td>
							<td>Seconds:</td>
							<td>$sync_data[seconds]</td></tr>
							<tr><td>Bitrate:</td>
							<td>$sync_data[bitrate]&nbsp;Kbps</td>
							<td>FPS:</td>
							<td>$fps</td></tr>
							<tr><td>Frequency:</td>
							<td>$sync_data[freq]&nbsp;Hz</td>
							<td>Origional:</td>
							<td>$original</td></tr>
							<tr><td>Padding:</td>
							<td>$padding</td>
							<td>Private:</td>
							<td>$private</td></tr>
							<tr><td>Channel Mode:</td>
							<td>$channelmode</td>
							<td>Copyright:</td>
							<td>$copyright</td></tr>
							<tr><td>CRC:</td>
							<td>$crc</td>
							<td>Emphesis:</td>
							<td>$emphasis</td></tr>
							</table>

ENDheader_file_info;
$contents .= draw_innerbox($title="MP3 Header Info", $header_file_info) . "<br>\n";

// ============================================================================

$albumcover_file_info = <<<ENDalbumcover_file_info

	<br><center>No Image Provided</center><br>

ENDalbumcover_file_info;
$contents .= draw_innerbox($title="Album Cover", $albumcover_file_info) . "<br>\n";

// ============================================================================


$contents .= <<<ENDcontents
				</td><td width="1">&nbsp;</td><td><td valign="top" width="50%">
ENDcontents;

// ============================================================================


$id3v2_file_info = <<<ENDid3v2_file_info

					<form action="$PHP_SELF" method="get">
					<input type="hidden" name="song" value="$ss_song">
					<input type="hidden" name="r_path" value="$rr_path">
					<input type="hidden" name="id3v2up">



					<table cellpadding="1" cellspacing="0" border="0"><tr>
						<td align="right">Version:</td>
						<td><input type="text" size="7" name="version" value="id3v2.$id3v2_array[major]"></td>
					</tr><tr>
						<td align="right">Song Title (2):</td>
						<td><input type="text" size="30" name="TIT2" value="$v2_tit2"></td>
					</tr><tr>
						<td align="right">Artist (1):</td>
						<td><input type="text" size="30" name="TPE1" value="$v2_tpe1"></td>
					</tr><tr>
						<td align="right">Album:</td>
						<td><input type="text" size="30" name="TALB" value="$v2_talb"></td>
					</tr><tr>
						<td align="right">Comment:</td>
						<td><textarea cols="23" rows="3" name="COMM" value="">$v2_comm</textarea></td>
					</tr><tr>
						<td align="right">Year:</td>
						<td><input type="text" size="4" name="TYER" value="$v2_tyer"></td>
					</tr><tr>
						<td align="right">Track #:</td>
						<td><input type="text" size="3" name="TRCK" value="$v2_trck"></td>
					</tr><tr>
						<td align="right">Genre:</td>
						<td><select name="genre_id">
							<option value="$id3_data[genre_id]">$id3_data[genre]</option>
							<option value="255"></option>
							<option value="0">Blues</option>
							<option value="1">Classic Rock</option>
							<option value="2">Country</option>
							<option value="3">Dance</option>
							<option value="4">Disco</option>
							<option value="5">Funk</option>
							<option value="6">Grunge</option>
							<option value="7">Hip-Hop</option>
							<option value="8">Jazz</option>
							<option value="9">Metal</option>
							<option value="10">New Age</option>
							<option value="11">Oldies</option>
							<option value="12">Other</option>
							<option value="13">Pop</option>
							<option value="14">R&B</option>
							<option value="15">Rap</option>
							<option value="16">Reggae</option>
							<option value="17">Rock</option>
							<option value="18">Techno</option>
							<option value="19">Industrial</option>
							<option value="20">Alternative</option>
							<option value="21">Ska</option>
							<option value="22">Death Metal</option>
							<option value="23">Pranks</option>
							<option value="24">Soundtrack</option>
							<option value="25">Euro-Techno</option>
							<option value="26">Ambient</option>
							<option value="27">Trip-Hop</option>
							<option value="28">Vocal</option>
							<option value="29">Jazz+Funk</option>
							<option value="30">Fusion</option>
							<option value="31">Trance</option>
							<option value="32">Classical</option>
							<option value="33">Instrumental</option>
							<option value="34">Acid</option>
							<option value="35">House</option>
							<option value="36">Game</option>
							<option value="37">Sound Clip</option>
							<option value="38">Gospel</option>
							<option value="39">Noise</option>
							<option value="40">AlternRock</option>
							<option value="41">Bass</option>
							<option value="42">Soul</option>
							<option value="43">Punk</option>
							<option value="44">Space</option>
							<option value="45">Meditative</option>
							<option value="46">Instrumental Pop</option>
							<option value="47">Instrumental Rock</option>
							<option value="48">Ethnic</option>
							<option value="49">Gothic</option>
							<option value="50">DarkWave</option>
							<option value="51">Techno-Industrial</option>
							<option value="52">Electronic</option>
							<option value="53">Pop-Folk</option>
							<option value="54">Eurodance</option>
							<option value="55">Dream</option>
							<option value="56">Southern Rock</option>
							<option value="57">Comedy</option>
							<option value="58">Cult</option>
							<option value="59">Gangsta</option>
							<option value="60">Top 40</option>
							<option value="61">Christian Rap</option>
							<option value="62">Pop/Funk</option>
							<option value="63">Jungle</option>
							<option value="64">Native American</option>
							<option value="65">Cabaret</option>
							<option value="66">New Wave</option>
							<option value="67">Psychadelic</option>
							<option value="68">Rave</option>
							<option value="69">Showtunes</option>
							<option value="70">Trailer</option>
							<option value="71">Lo-Fi</option>
							<option value="72">Tribal</option>
							<option value="73">Acid Punk</option>
							<option value="74">Acid Jazz</option>
							<option value="75">Polka</option>
							<option value="76">Retro</option>
							<option value="77">Musical</option>
							<option value="78">Rock & Roll</option>
							<option value="79">Hard Rock</option>
							<option value="80">Folk</option>
							<option value="81">Folk/Rock</option>
							<option value="82">National Folk</option>
							<option value="83">Swing</option>
							<option value="84">Fast Fusion</option>
							<option value="85">Bebob</option>
							<option value="86">Latin</option>
							<option value="87">Revival</option>
							<option value="88">Celtic</option>
							<option value="89">Bluegrass</option>
							<option value="90">Avantgarde</option>
							<option value="91">Gothic Rock</option>
							<option value="92">Progressive Rock</option>
							<option value="93">Psychedelic Rock</option>
							<option value="94">Symphonic Rock</option>
							<option value="95">Slow Rock</option>
							<option value="96">Big Band</option>
							<option value="97">Chorus</option>
							<option value="98">Easy Listening</option>
							<option value="99">Acoustic</option>
							<option value="100">Humour</option>
							<option value="101">Speech</option>
							<option value="102">Chanson</option>
							<option value="103">Opera</option>
							<option value="104">Chamber Music</option>
							<option value="105">Sonata</option>
							<option value="106">Symphony</option>
							<option value="107">Booty Bass</option>
							<option value="108">Primus</option>
							<option value="109">Porn Groove</option>
							<option value="110">Satire</option>
							<option value="111">Slow Jam</option>
							<option value="112">Club</option>
							<option value="113">Tango</option>
							<option value="114">Samba</option>
							<option value="115">Folklore</option>
							<option value="116">Ballad</option>
							<option value="117">Power Ballad</option>
							<option value="118">Rhythmic Soul</option>
							<option value="119">Freestyle</option>
							<option value="120">Duet</option>
							<option value="121">Punk Rock</option>
							<option value="122">Drum Solo</option>
							<option value="123">Acapella</option>
							<option value="124">Euro-House</option>
							<option value="125">Dance Hall</option>
							<option value="126">Goa</option>
							<option value="127">Drum & Bass</option>
							<option value="128">Club-House</option>
							<option value="129">Hardcore</option>
							<option value="130">Terror</option>
							<option value="131">Indie</option>
							<option value="132">BritPop</option>
							<option value="133">Negerpunk</option>
							<option value="134">Polsk Punk</option>
							<option value="135">Beat</option>
							<option value="136">Christian Gangsta Rap</option>
							<option value="137">Heavy Metal</option>
							<option value="138">Black Metal</option>
							<option value="139">Crossover</option>
							<option value="140">Contemporary Christian</option>
							<option value="141">Christian Rock</option>
							<option value="142">Merengue</option>
							<option value="143">Salsa</option>
							<option value="144">Thrash Metal</option>
							<option value="145">Anime</option>
							<option value="146">JPop</option>
							<option value="147">Synthpop</option>
						</select></td>
					</tr><tr>
						<td align="right">Copyright:</td>
						<td><input type="text" size="30" name="TCOP" value="$v2_tcop"></td>
					</tr><tr>
						<td align="right">Composer:</td>
						<td><input type="text" size="30" name="TCOM" value="$v2_tcom"></td>
					</tr><tr>
						<td align="right">Original Artist:</td>
						<td><input type="text" size="30" name="TOPE" value="$v2_tope"></td>
					</tr><tr>
						<td align="right">URL:</td>
						<td><input type="text" size="30" name="WXXX" value="$v2_wxxx"></td>
					</tr><tr>
						<td align="right">Encoded by:</td>
						<td><input type="text" size="30" name="TENC" value="$v2_tenc"></td>
					</tr><tr>
						<td>&nbsp;</form></td>
						<td>&nbsp;</td>
					</tr></table>

ENDid3v2_file_info;
$contents .= draw_innerbox($title="ID3v2 Information", $id3v2_file_info) . "<br>\n";


$contents .= <<<ENDcontents
				</td>
			</tr></table>
		</td>
	</tr></table>
	</font>
ENDcontents;


// an array for the draw_page function.
$page_table = array("$GLOBALS[page_title]"=>"$contents");

$js_script = <<<ENDjs_script

<SCRIPT TYPE="text/javascript">
<!--

function swfWindow(theURL, titleVar) {
	window.open(theURL,titleVar, 'location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes,width=540,height=80');
}

// -->
</script>

ENDjs_script;



draw_header("$GLOBALS[page_title]","","$js_script");
draw_nav($nav_array);
draw_sect($page_table);
draw_footer();
ob_end_flush();
?>
Return current item: Mummi (Multi-user MOD_MP3 Interface)