12 changed files with 22 additions and 109 deletions
-
8apps/bookmarks/addBm.php
-
11apps/bookmarks/ajax/addBookmark.php
-
39apps/bookmarks/ajax/getMeta.php
-
2apps/bookmarks/appinfo/app.php
-
8apps/bookmarks/appinfo/database.xml
-
4apps/bookmarks/appinfo/info.xml
-
3apps/bookmarks/js/addBm.js
-
47apps/bookmarks/js/bookmarks.js
-
4apps/bookmarks/settings.php
-
1apps/bookmarks/templates/addBm.php
-
2apps/bookmarks/templates/list.php
-
2apps/bookmarks/templates/settings.php
@ -1,39 +0,0 @@ |
|||
<?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/>. |
|||
* |
|||
*/ |
|||
|
|||
//no apps or filesystem
|
|||
$RUNTIME_NOSETUPFS=true; |
|||
|
|||
require_once('../../../lib/base.php'); |
|||
|
|||
// Check if we are a user
|
|||
OC_JSON::checkLoggedIn(); |
|||
OC_JSON::checkAppEnabled('bookmarks'); |
|||
|
|||
// $metadata = array();
|
|||
|
|||
require '../bookmarksHelper.php'; |
|||
$metadata = getURLMetadata(htmlspecialchars_decode($_GET["url"])); |
|||
|
|||
|
|||
OC_JSON::success(array('data' => $metadata)); |
|||
@ -1,6 +1,5 @@ |
|||
<div class="bookmarks_addBm"> |
|||
<p><label class="bookmarks_label"><?php echo $l->t('Address'); ?></label><input type="text" id="bookmark_add_url" class="bookmarks_input" value="<?php echo $_['URL']; ?>"/></p>
|
|||
<p><label class="bookmarks_label"><?php echo $l->t('Title'); ?></label><input type="text" id="bookmark_add_title" class="bookmarks_input" value="<?php echo $_['TITLE']; ?>" /></p>
|
|||
<p><label class="bookmarks_label"><?php echo $l->t('Tags'); ?></label><input type="text" id="bookmark_add_tags" class="bookmarks_input" /></p>
|
|||
<p><label class="bookmarks_label"> </label><label class="bookmarks_hint"><?php echo $l->t('Hint: Use space to separate tags.'); ?></label></p>
|
|||
<p><label class="bookmarks_label"></label><input type="submit" value="<?php echo $l->t('Add bookmark'); ?>" id="bookmark_add_submit" /></p> |
|||
|
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue