. * */ 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','playlist'); OC_Util::addScript('media','collection'); OC_Util::addScript('media','scanner'); OC_Util::addScript('media','jquery.jplayer.min'); OC_Util::addStyle('media','player'); OC_Util::addStyle('media','music'); OC_App::setActiveNavigationEntry( 'media_playlist' ); $tmpl = new OC_Template( 'media', 'music', 'user' ); $player = new OC_Template( 'media', 'player'); $playlist = new OC_Template( 'media', 'playlist'); $collection= new OC_Template( 'media', 'collection'); $tmpl->assign('player',$player->fetchPage()); $tmpl->assign('playlist',$playlist->fetchPage()); $tmpl->assign('collection',$collection->fetchPage()); $tmpl->printPage(); ?>