diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2011-08-15 22:05:07 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2011-08-15 22:05:07 +0200 |
commit | 5608aaee8a8bbf913f4abb665f18fbe510da7214 (patch) | |
tree | f704a1657117af202001ddcc71a9d3ad0df338ad /apps/bookmarks/index.php | |
parent | 523b0966d22d0fc149ca64afb32995a0eb29a6d3 (diff) | |
download | nextcloud-server-5608aaee8a8bbf913f4abb665f18fbe510da7214.tar.gz nextcloud-server-5608aaee8a8bbf913f4abb665f18fbe510da7214.zip |
initial commit of Bookmarks App
Diffstat (limited to 'apps/bookmarks/index.php')
-rw-r--r-- | apps/bookmarks/index.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/apps/bookmarks/index.php b/apps/bookmarks/index.php new file mode 100644 index 00000000000..ba9f7cc0c61 --- /dev/null +++ b/apps/bookmarks/index.php @@ -0,0 +1,39 @@ +<?php + +/** +* ownCloud - bookmarks plugin +* +* @author Arthur Schiwon +* @copyright 2011 Arthur Schiwon blizzz@arthur-schiwon.de +* +* This library is free software; you can redistribute it and/or +* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE +* License as published by the Free Software Foundation; either +* version 3 of the License, or any later version. +* +* This library 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 AFFERO GENERAL PUBLIC LICENSE for more details. +* +* You should have received a copy of the GNU Lesser General Public +* License along with this library. If not, see <http://www.gnu.org/licenses/>. +* +*/ + +require_once('../../lib/base.php'); + +// Check if we are a user +if( !OC_User::isLoggedIn()){ + header( "Location: ".OC_Helper::linkTo( '', 'index.php' )); + exit(); +} + +OC_App::setActiveNavigationEntry( 'bookmarks_index' ); + +OC_Util::addScript('bookmarks','bookmarks'); +OC_Util::addStyle('bookmarks', 'bookmarks'); + +$tmpl = new OC_Template( 'bookmarks', 'list', 'user' ); + +$tmpl->printPage();
\ No newline at end of file |