diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-06-26 00:51:36 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-06-26 00:51:36 +0000 |
commit | 30405b6c9930c5dd23c5ed30bc2276780a46ecbb (patch) | |
tree | ceec5f17237c710e6da3c348abcc22d30b06deee /browse.php | |
parent | 491eab55d8c581b42bcd0625cb137b6a53911259 (diff) | |
download | ampache-30405b6c9930c5dd23c5ed30bc2276780a46ecbb.tar.gz ampache-30405b6c9930c5dd23c5ed30bc2276780a46ecbb.tar.bz2 ampache-30405b6c9930c5dd23c5ed30bc2276780a46ecbb.zip |
start of browse by x mojo
Diffstat (limited to 'browse.php')
-rw-r--r-- | browse.php | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/browse.php b/browse.php new file mode 100644 index 00000000..d4485fa8 --- /dev/null +++ b/browse.php @@ -0,0 +1,71 @@ +<?php +/* + + Copyright (c) 2001 - 2005 Ampache.org + All Rights Reserved + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +*/ + +/** + * + * Browse By Page + * This page shows the browse menu, which allows you to browse by many different + * fields including genre, artist, album, catalog, ??? + * this page also handles the actuall browse action + * @package Web Interface + * @catagory Browse + * @author Karl Vollmer 06/24/05 + * + */ + +/* Base Require */ +require_once("modules/init.php"); + +/* Clean up incomming variables */ +$action = scrub_in($_REQUEST['action']); + +/* Display the headers and menus */ +show_template('header'); +show_menu_items('Browse'); +show_clear(); + +switch($action) { + case 'album': + case 'artist': + case 'genre': + + break; + case 'catalog': + break; + /* Throw recently added, updated here */ + default: + + /* Show Most Popular artist/album/songs */ + show_all_popular(); + + /* Show Recent Additions */ + show_all_recent(); + + break; + +} // end Switch $action + + +/* Show the Footer */ +show_page_footer('Browse', '',$user->prefs['display_menu']); + +?> |