mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-12-13 14:08:49 +01:00
ae81b9dcd2
Dependency Injection for user and db is used througout the controllers The Routing features a consistent rest api The Routing provides some legacy routes, so that for exampe the Android Bookmarks App still works. There is a publicly available api that provides access to bookmarks per user. (This is usefull in connection with the WP Plugin https://github.com/mario-nolte/oc2wp-bookmarks)
37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Copyright (c) 2011 Marvin Thomas Rabe <mrabe@marvinrabe.de>
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
* later.
|
|
* See the COPYING-README file.
|
|
*/
|
|
/** @var array $_ */
|
|
?>
|
|
|
|
<ul>
|
|
<li><strong><?php p($l->t('Bookmarklet')); ?></strong></li>
|
|
<?php print_unescaped($bookmarkletscript); ?><br />
|
|
</ul>
|
|
<form id="import_bookmark" action="bookmark/import" method="post" enctype="multipart/form-data">
|
|
<ul>
|
|
<li>
|
|
</li>
|
|
<li>
|
|
<?php if (isset($_['error'])): ?>
|
|
<h3><?php p($_['error']['error']); ?></h3>
|
|
<p><?php p($_['error']['hint']); ?></p>
|
|
<?php endif; ?>
|
|
|
|
<legend><strong><?php p($l->t('Export & Import')); ?></strong></legend>
|
|
<input type="button" id="bm_export" href="bookmark/export?requesttoken=<?php p($_['requesttoken']) ?>" value="<?php p($l->t('Export')); ?>" />
|
|
<input type="file" id="bm_import" name="bm_import" size="5">
|
|
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" id="requesttoken">
|
|
<button type="button" name="bm_import_btn" id="bm_import_submit"><?php p($l->t('Import')); ?></button>
|
|
<div id="upload"></div>
|
|
|
|
|
|
|
|
</li>
|
|
</ul>
|
|
</form>
|