Location: PHPKode > projects > Axis Groupware > musiclib/index.php
<?
	 /**************************************************************************\
	 * Axis Groupware - Music Library (musiclib)                                *
	 * http://www.axisgroupware.org                                             *
	 *                                                                          *
	 * Copyright 2002-2003, Adam Hull 											*
	 *                                                                          *
	 * Written and maintained by Adam Hull, hide@address.com				    *
	 * Originally based on tunez: http://tunez.sf.net						    *
	 * --------------------------------------------                             *
	 *  This program is Free Software; you can redistribute it and/or modify it *
	 *  under the terms of the GNU General Public License as published by the   *
	 *  Free Software Foundation; either version 2 of the License, or (at your  *
	 *  option) any later version.                                              *
	 \**************************************************************************/

$phpgw_info["flags"] = array ("currentapp" => "musiclib",
							 "enable_nextmatchs_class" => True);
$GLOBALS['phpgw_info']['cursor_focus'] = "document.defaultsearch.searchFor.focus();document.defaultsearch.searchFor.select();";

$rows = 1;
$refreshThisPage = false;

include ("../header.inc.php"); #PHP Groupware header

include ("inc/config.inc.php");
include ("inc/functions.inc.php");
include ("inc/sidebar.inc.php");
$title = "w e l c o m e";
include ("inc/header.inc.php");

$numberOfArtists = count_table(1,$musiclib['tables']['artists']);
$numberOfAlbums  = count_table(1,$musiclib['tables']['albums']);
$numberOfSongs   = count_table(1,$musiclib['tables']['songs']);
$numberOfMisc 	 = count_table(2,$musiclib['tables']['songs']);

?>

<p>
	<b>This is a database of <? echo $numberOfSongs; ?> songs from <? echo $numberOfAlbums; ?> albums by <? echo $numberOfArtists ?> artists.</b>
	<br>
	<b>There are also <? echo $numberOfMisc; ?> miscellaneous songs for a total of <? echo ($numberOfMisc+$numberOfSongs) ?> files.</b>
	<br><br>
	To listen to music in this database, you will need an Mp3 player<br>
	such as <a href="http://winamp.com" target="_blank">Winamp</a> 
	or <a href="http://xmms.org/" target="_blank">XMMS</a>
	configured as the default for 
	
<? 
	if ($musiclib['config']['playlist_format'] == 2) {
		echo "m3u";
	} else {
		echo "pls";
	}

?>  playlists.<br>
	Start by listening to a 
	<a href="<? echo $GLOBALS['phpgw']->link("/musiclib/listen.php","mode=random"); ?>">randomly generated playlist</a>.<br>
	<br>

<!-- The following is a message I use for my private Music Library.
	 Feel Free to uncomment it if you like. -->

<!--

	<b>To contribute to the database.</b>
	<br>
	Simply upload a properly organized album to the "Albums" folder via FTP.<br>
	This database does not use ID3 tags, only filenames.<br>
	<br>
	<b>A properly organized album will look like this:</b><br>
<?
	if ($filename_format == 1) {
	echo "/Artist_Name/Album_Name/TrackNo - Artist_Name - Song_Name.mp3<br>";
	echo "Artist_Name spelling in directory and filename should be consistent, including capitalization.<br>";
	}
	if ($filename_format == 2) {
	echo "/Artist_Name/Album_Name/TrackNo - Song_Name.mp3<br>";
	}
?>
	<br>
	The database will be updated periodically.<br>
	<br>
	
	-->
		
</p>

<?
include ("inc/footer.inc.php");
?>

Return current item: Axis Groupware