@ -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,7 +1,11 @@ |
||||
<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>
|
||||
</div> |
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
<head> |
||||
<meta charset="utf-8"> |
||||
<title>Read later - ownCloud</title> |
||||
<link rel="stylesheet" href="css/readlater.css"> |
||||
</head> |
||||
<body> |
||||
<div class="message"><h1>Saved!</h1></div> |
||||
</body> |
||||
</html> |
||||
@ -0,0 +1,8 @@ |
||||
<?php |
||||
|
||||
function createBookmarklet() { |
||||
$l = new OC_L10N('bookmarks'); |
||||
echo '<small>' . $l->t('Drag this to your browser bookmarks and click it, when you want to bookmark a webpage quickly:') . '</small>' |
||||
. '<a class="button" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open(\'' . OC_Helper::linkToAbsolute('bookmarks', 'addBm.php') . '?output=popup&url=\'+c(b.location),\'bkmk_popup\',\'left=\'+((a.screenX||a.screenLeft)+10)+\',top=\'+((a.screenY||a.screenTop)+10)+\',height=230px,width=230px,resizable=1,alwaysRaised=1\');a.setTimeout(function(){d.focus()},300);})();">' |
||||
. $l->t('Read later') . '</a>'; |
||||
} |
||||
@ -0,0 +1,17 @@ |
||||
<?php |
||||
|
||||
$installedVersion=OC_Appconfig::getValue('calendar', 'installed_version'); |
||||
if (version_compare($installedVersion, '0.2.1', '<')) { |
||||
$stmt = OC_DB::prepare( 'SELECT id, calendarcolor FROM *PREFIX*calendar_calendars WHERE calendarcolor IS NOT NULL' ); |
||||
$result = $stmt->execute(); |
||||
while( $row = $result->fetchRow()) { |
||||
$id = $row['id']; |
||||
$color = $row['calendarcolor']; |
||||
if ($color[0] == '#' || strlen($color) < 6) { |
||||
continue; |
||||
} |
||||
$color = '#' .$color; |
||||
$stmt = OC_DB::prepare( 'UPDATE *PREFIX*calendar_calendars SET calendarcolor=? WHERE id=?' ); |
||||
$r = $stmt->execute(array($color,$id)); |
||||
} |
||||
} |
||||
|
After Width: | Height: | Size: 580 B |
|
After Width: | Height: | Size: 572 B |
|
After Width: | Height: | Size: 441 B |
|
After Width: | Height: | Size: 436 B |
|
After Width: | Height: | Size: 420 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 570 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 652 B |
@ -0,0 +1,28 @@ |
||||
15.02.2012 |
||||
|
||||
Following new icons have been added: |
||||
core/img/filetypes/application-vnd.oasis.opendocument.formula.png |
||||
core/img/filetypes/application-vnd.oasis.opendocument.graphics.png |
||||
core/img/filetypes/application-vnd.oasis.opendocument.presentation.png |
||||
core/img/filetypes/application-vnd.oasis.opendocument.spreadsheet.png |
||||
core/img/filetypes/application-vnd.oasis.opendocument.text.png |
||||
Download: http://odftoolkit.org/ODF-Icons#ODF_Icons |
||||
License: Apache 2.0 |
||||
|
||||
core/img/filetypes/application-x-7z-compressed.png |
||||
core/img/filetypes/application-x-bzip-compressed-tar.png |
||||
core/img/filetypes/application-x-bzip.png |
||||
core/img/filetypes/application-x-compressed-tar.png |
||||
core/img/filetypes/application-x-deb.png |
||||
core/img/filetypes/application-x-debian-package.png |
||||
core/img/filetypes/application-x-gzip.png |
||||
core/img/filetypes/application-x-lzma-compressed-tar.png |
||||
core/img/filetypes/application-x-rar.png |
||||
core/img/filetypes/application-x-rpm.png |
||||
core/img/filetypes/application-x-tar.png |
||||
core/img/filetypes/application-x-tarz.png |
||||
core/img/filetypes/application-zip.png |
||||
Author: Gomez Hyuuga |
||||
License: Creative Commons Attribution-Share Alike 3.0 Unported License |
||||
Download: http://kde-look.org/content/show.php/?content=101767 |
||||
|
||||