. * */ require_once('../../lib/base.php'); // Check if we are a user if( !OC_User::isLoggedIn()){ header( "Location: ".OC_Helper::linkTo( '', 'index.php' )); exit(); } require_once('lib_collection.php'); require_once('lib_scanner.php'); OC_Util::addScript('media','player'); OC_Util::addScript('media','music'); OC_Util::addScript('media','jquery.jplayer.min'); OC_Util::addStyle('media','player'); OC_Util::addStyle('media','music'); OC_App::setActiveNavigationEntry( 'media_index' ); $tmpl = new OC_Template( 'media', 'music', 'user' ); $player = new OC_Template( 'media', 'player'); $tmpl->assign('player',$player->fetchPage()); $tmpl->printPage(); ?>