. * */ 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('bookmarksHelper.php'); OC_App::setActiveNavigationEntry( 'bookmarks_index' ); OC_Util::addScript('bookmarks','addBm'); OC_Util::addStyle('bookmarks', 'bookmarks'); $tmpl = new OC_Template( 'bookmarks', 'addBm', 'user' ); $url = isset($_GET['url']) ? urldecode($_GET['url']) : ''; $metadata = getURLMetadata($url); $tmpl->assign('URL', htmlentities($url)); $tmpl->assign('TITLE', htmlentities($metadata['title'])); $tmpl->assign('DESCRIPTION', htmlentities($metadata['description'])); $tmpl->printPage();