Removed deprecated addons

This commit is contained in:
Michael 2017-10-19 06:40:00 +00:00
parent 18784a484b
commit 936afb42c4
247 changed files with 13 additions and 17479 deletions

View file

@ -1,42 +0,0 @@
# ADDON uhremotestorage
# Copyright (C)
# This file is distributed under the same license as the Friendica uhremotestorage addon package.
#
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: uhremotestorage.php:84
#, php-format
msgid ""
"Allow to use your friendica id (%s) to connecto to external unhosted-enabled "
"storage (like ownCloud). See <a href=\"http://www.w3.org/community/unhosted/"
"wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"
msgstr ""
#: uhremotestorage.php:85
msgid "Template URL (with {category})"
msgstr ""
#: uhremotestorage.php:86
msgid "OAuth end-point"
msgstr ""
#: uhremotestorage.php:87
msgid "Api"
msgstr ""
#: uhremotestorage.php:89
msgid "Submit"
msgstr ""

View file

@ -1,7 +0,0 @@
<?php
$a->strings["Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"] = "Permetre l'ús del seu ID de friendica (%s) per Connectar a l'emmagatzematge extern (com ownCloud). Veure <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\"> WebFinger RemoteStorage </a>";
$a->strings["Template URL (with {category})"] = "Plantilles de URL (amb {categoria})";
$a->strings["OAuth end-point"] = "OAuth end-point";
$a->strings["Api"] = "Api";
$a->strings["Submit"] = "Enviar";

View file

@ -1,45 +0,0 @@
# ADDON uhremotestorage
# Copyright (C)
# This file is distributed under the same license as the Friendica uhremotestorage addon package.
#
#
# Translators:
# Michal Šupler <msupler@gmail.com>, 2014
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-06-23 14:45+0200\n"
"PO-Revision-Date: 2014-07-07 19:28+0000\n"
"Last-Translator: Michal Šupler <msupler@gmail.com>\n"
"Language-Team: Czech (http://www.transifex.com/projects/p/friendica/language/cs/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: cs\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#: uhremotestorage.php:84
#, php-format
msgid ""
"Allow to use your friendica id (%s) to connecto to external unhosted-enabled"
" storage (like ownCloud). See <a "
"href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage"
" WebFinger</a>"
msgstr "Umožnit využití friendica id (%s) k napojení na externí úložiště (unhosted-enabled) (jako ownCloud). Více informací na <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"
#: uhremotestorage.php:85
msgid "Template URL (with {category})"
msgstr "Dočasná URL adresa (s {category})"
#: uhremotestorage.php:86
msgid "OAuth end-point"
msgstr "OAuth end-point"
#: uhremotestorage.php:87
msgid "Api"
msgstr "Api"
#: uhremotestorage.php:89
msgid "Save Settings"
msgstr "Uložit Nastavení"

View file

@ -1,12 +0,0 @@
<?php
if(! function_exists("string_plural_select_cs")) {
function string_plural_select_cs($n){
return ($n==1) ? 0 : ($n>=2 && $n<=4) ? 1 : 2;;
}}
;
$a->strings["Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"] = "Umožnit využití friendica id (%s) k napojení na externí úložiště (unhosted-enabled) (jako ownCloud). Více informací na <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>";
$a->strings["Template URL (with {category})"] = "Dočasná URL adresa (s {category})";
$a->strings["OAuth end-point"] = "OAuth end-point";
$a->strings["Api"] = "Api";
$a->strings["Save Settings"] = "Uložit Nastavení";

View file

@ -1,45 +0,0 @@
# ADDON uhremotestorage
# Copyright (C)
# This file is distributed under the same license as the Friendica uhremotestorage addon package.
#
#
# Translators:
# bavatar <tobias.diekershoff@gmx.net>, 2014
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-06-23 14:45+0200\n"
"PO-Revision-Date: 2014-10-14 05:48+0000\n"
"Last-Translator: bavatar <tobias.diekershoff@gmx.net>\n"
"Language-Team: German (http://www.transifex.com/projects/p/friendica/language/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: uhremotestorage.php:84
#, php-format
msgid ""
"Allow to use your friendica id (%s) to connecto to external unhosted-enabled"
" storage (like ownCloud). See <a "
"href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage"
" WebFinger</a>"
msgstr "Ermöglicht es deine friendica id (%s) mit externen unhosted-fähigen Speichern (z.B. ownCloud) zu verbinden. Siehe <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"
#: uhremotestorage.php:85
msgid "Template URL (with {category})"
msgstr "Vorlagen URL (mit {Kategorie})"
#: uhremotestorage.php:86
msgid "OAuth end-point"
msgstr "OAuth end-point"
#: uhremotestorage.php:87
msgid "Api"
msgstr "Api"
#: uhremotestorage.php:89
msgid "Save Settings"
msgstr "Einstellungen speichern"

View file

@ -1,12 +0,0 @@
<?php
if(! function_exists("string_plural_select_de")) {
function string_plural_select_de($n){
return ($n != 1);;
}}
;
$a->strings["Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"] = "Ermöglicht es deine friendica id (%s) mit externen unhosted-fähigen Speichern (z.B. ownCloud) zu verbinden. Siehe <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>";
$a->strings["Template URL (with {category})"] = "Vorlagen URL (mit {Kategorie})";
$a->strings["OAuth end-point"] = "OAuth end-point";
$a->strings["Api"] = "Api";
$a->strings["Save Settings"] = "Einstellungen speichern";

View file

@ -1,7 +0,0 @@
<?php
$a->strings["Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"] = "Permesi vian identecon ĉe Friendica (%s) por konekti al eksteraj konservejoj subtenata de unhosted (ekz. OwnCloud). Vidu <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>";
$a->strings["Template URL (with {category})"] = "URL adreso de ŝablono (kun {category})";
$a->strings["OAuth end-point"] = "OAuth finpunkto";
$a->strings["Api"] = "Api";
$a->strings["Submit"] = "Sendi";

View file

@ -1,45 +0,0 @@
# ADDON uhremotestorage
# Copyright (C)
# This file is distributed under the same license as the Friendica uhremotestorage addon package.
#
#
# Translators:
# Albert, 2016
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-06-23 14:45+0200\n"
"PO-Revision-Date: 2016-11-19 11:35+0000\n"
"Last-Translator: Albert\n"
"Language-Team: Spanish (http://www.transifex.com/Friendica/friendica/language/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: uhremotestorage.php:84
#, php-format
msgid ""
"Allow to use your friendica id (%s) to connecto to external unhosted-enabled"
" storage (like ownCloud). See <a "
"href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage"
" WebFinger</a>"
msgstr "Permite usar su ID de Friendica (%s) para conectar a un almacén habilitado externo sin hospedar (como ownCloud). Vea <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"
#: uhremotestorage.php:85
msgid "Template URL (with {category})"
msgstr "Plantilla de URL (con {categoría})"
#: uhremotestorage.php:86
msgid "OAuth end-point"
msgstr "Punto final de OAuth"
#: uhremotestorage.php:87
msgid "Api"
msgstr "API"
#: uhremotestorage.php:89
msgid "Save Settings"
msgstr "Guardar Ajustes"

View file

@ -1,12 +0,0 @@
<?php
if(! function_exists("string_plural_select_es")) {
function string_plural_select_es($n){
return ($n != 1);;
}}
;
$a->strings["Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"] = "Permite usar su ID de Friendica (%s) para conectar a un almacén habilitado externo sin hospedar (como ownCloud). Vea <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>";
$a->strings["Template URL (with {category})"] = "Plantilla de URL (con {categoría})";
$a->strings["OAuth end-point"] = "Punto final de OAuth";
$a->strings["Api"] = "API";
$a->strings["Save Settings"] = "Guardar Ajustes";

View file

@ -1,7 +0,0 @@
<?php
$a->strings["Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"] = "Permet l'utilisation de votre ID Friendica (%s) pour vous connecter à des sites compatibles \"unhosted\" (comme ownCloud). Voyez <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>";
$a->strings["Template URL (with {category})"] = "Modèle d'URL (avec {catégorie})";
$a->strings["OAuth end-point"] = "URL OAuth";
$a->strings["Api"] = "Type d'API";
$a->strings["Submit"] = "Envoyer";

View file

@ -1,7 +0,0 @@
<?php
$a->strings["Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"] = "";
$a->strings["Template URL (with {category})"] = "";
$a->strings["OAuth end-point"] = "";
$a->strings["Api"] = "Api";
$a->strings["Submit"] = "Senda inn";

View file

@ -1,45 +0,0 @@
# ADDON uhremotestorage
# Copyright (C)
# This file is distributed under the same license as the Friendica uhremotestorage addon package.
#
#
# Translators:
# fabrixxm <fabrix.xm@gmail.com>, 2015
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-06-23 14:45+0200\n"
"PO-Revision-Date: 2015-08-31 10:30+0000\n"
"Last-Translator: fabrixxm <fabrix.xm@gmail.com>\n"
"Language-Team: Italian (http://www.transifex.com/Friendica/friendica/language/it/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: uhremotestorage.php:84
#, php-format
msgid ""
"Allow to use your friendica id (%s) to connecto to external unhosted-enabled"
" storage (like ownCloud). See <a "
"href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage"
" WebFinger</a>"
msgstr "Permette di usare il tuo id friendica (%s) per collegarsi a storage esterni che supportano unhosted (come ownCloud). Vedi <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"
#: uhremotestorage.php:85
msgid "Template URL (with {category})"
msgstr "Template URL (con {category})"
#: uhremotestorage.php:86
msgid "OAuth end-point"
msgstr "OAuth end-point"
#: uhremotestorage.php:87
msgid "Api"
msgstr "Api"
#: uhremotestorage.php:89
msgid "Save Settings"
msgstr "Salva Impostazioni"

View file

@ -1,12 +0,0 @@
<?php
if(! function_exists("string_plural_select_it")) {
function string_plural_select_it($n){
return ($n != 1);;
}}
;
$a->strings["Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"] = "Permette di usare il tuo id friendica (%s) per collegarsi a storage esterni che supportano unhosted (come ownCloud). Vedi <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>";
$a->strings["Template URL (with {category})"] = "Template URL (con {category})";
$a->strings["OAuth end-point"] = "OAuth end-point";
$a->strings["Api"] = "Api";
$a->strings["Save Settings"] = "Salva Impostazioni";

View file

@ -1,7 +0,0 @@
<?php
$a->strings["Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"] = "Tillat å bruke din friendica id (%s) for å koble til ekstern unhosted-aktivert lagring (som ownCloud). Se <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>";
$a->strings["Template URL (with {category})"] = "";
$a->strings["OAuth end-point"] = "";
$a->strings["Api"] = "";
$a->strings["Submit"] = "Lagre";

View file

@ -1,7 +0,0 @@
<?php
$a->strings["Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"] = "";
$a->strings["Template URL (with {category})"] = "";
$a->strings["OAuth end-point"] = "";
$a->strings["Api"] = "Api";
$a->strings["Submit"] = "Potwierdź";

View file

@ -1,7 +0,0 @@
<?php
$a->strings["Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"] = "Permite o uso do id friendica (%s) para conectar ao armazenamento tipo unhosted externo (ex: ownCloud). Veja <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>";
$a->strings["Template URL (with {category})"] = "URL do Template (com {category})";
$a->strings["OAuth end-point"] = "OAuth terminal";
$a->strings["Api"] = "Api";
$a->strings["Submit"] = "Enviar";

View file

@ -1,44 +0,0 @@
# ADDON uhremotestorage
# Copyright (C)
# This file is distributed under the same license as the Friendica uhremotestorage addon package.
#
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: friendica\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-06-23 14:45+0200\n"
"PO-Revision-Date: 2014-07-08 12:11+0000\n"
"Last-Translator: Arian - Cazare Muncitori <arianserv@gmail.com>\n"
"Language-Team: Romanian (Romania) (http://www.transifex.com/projects/p/friendica/language/ro_RO/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ro_RO\n"
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
#: uhremotestorage.php:84
#, php-format
msgid ""
"Allow to use your friendica id (%s) to connecto to external unhosted-enabled"
" storage (like ownCloud). See <a "
"href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage"
" WebFinger</a>"
msgstr "Permiteți utilizarea id-ului dvs. friendica (%s) să se conecteze cu medii de stocare externe de tip unhosted (precum ownCloud). Consultați <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"
#: uhremotestorage.php:85
msgid "Template URL (with {category})"
msgstr "URL șablon (cu {categorie})"
#: uhremotestorage.php:86
msgid "OAuth end-point"
msgstr "Punct-final OAuth "
#: uhremotestorage.php:87
msgid "Api"
msgstr "Api"
#: uhremotestorage.php:89
msgid "Save Settings"
msgstr "Salvare Configurări"

View file

@ -1,12 +0,0 @@
<?php
if(! function_exists("string_plural_select_ro")) {
function string_plural_select_ro($n){
return ($n==1?0:((($n%100>19)||(($n%100==0)&&($n!=0)))?2:1));;
}}
;
$a->strings["Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"] = "Permiteți utilizarea id-ului dvs. friendica (%s) să se conecteze cu medii de stocare externe de tip unhosted (precum ownCloud). Consultați <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>";
$a->strings["Template URL (with {category})"] = "URL șablon (cu {categorie})";
$a->strings["OAuth end-point"] = "Punct-final OAuth ";
$a->strings["Api"] = "Api";
$a->strings["Save Settings"] = "Salvare Configurări";

View file

@ -1,7 +0,0 @@
<?php
$a->strings["Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"] = "";
$a->strings["Template URL (with {category})"] = "";
$a->strings["OAuth end-point"] = "";
$a->strings["Api"] = "Api";
$a->strings["Submit"] = "Подтвердить";

View file

@ -1,3 +0,0 @@
<?php
$a->strings["Submit"] = "Spara";

View file

@ -1,7 +0,0 @@
<?php
$a->strings["Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See <a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>"] = "许用您的friendica用户名%s根对外没主办的贮藏比如ownCloud。看<a href=\"http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger\">RemoteStorage WebFinger</a>";
$a->strings["Template URL (with {category})"] = "模板URL{category}";
$a->strings["OAuth end-point"] = "OAuth 端点";
$a->strings["Api"] = "API";
$a->strings["Submit"] = "提交";

View file

@ -1,9 +0,0 @@
<div class="settings-block">
<h3>{{$title}}</h3>
<p>{{$desc}}</p>
{{include file="field_input.tpl" field=$url}}
{{include file="field_input.tpl" field=$auth}}
{{include file="field_select.tpl" field=$api}}
<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
</div>

View file

@ -1,93 +0,0 @@
<?php
/**
* Name: unhosted remote storage
* Description: Expose in user XRD the link to external user's unhosted-enabled storage
* Version: 1.0
* Author: Fabio Comuni <http://kirgroup.com/profile/fabrixxm>
* Status: Unsupported
*/
function uhremotestorage_install() {
register_hook('personal_xrd', 'addon/uhremotestorage/uhremotestorage.php', 'uhremotestorage_personal_xrd');
register_hook('plugin_settings', 'addon/uhremotestorage/uhremotestorage.php', 'uhremotestorage_settings');
register_hook('plugin_settings_post', 'addon/uhremotestorage/uhremotestorage.php', 'uhremotestorage_settings_post');
logger("installed uhremotestorage");
}
function uhremotestorage_uninstall() {
unregister_hook('personal_xrd', 'addon/uhremotestorage/uhremotestorage.php', 'uhremotestorage_personal_xrd');
unregister_hook('plugin_settings', 'addon/uhremotestorage/uhremotestorage.php', 'uhremotestorage_settings');
unregister_hook('plugin_settings_post', 'addon/uhremotestorage/uhremotestorage.php', 'uhremotestorage_settings_post');
logger("removed uhremotestorage");
}
function uhremotestorage_personal_xrd($a, &$b){
list($user, $host) = explode("@",$_GET['uri']);
$user = str_replace("acct:","",$user);
$r = q("SELECT uid FROM user WHERE nickname='%s'", dbesc($user));
$uid = $r[0]['uid'];
$url = get_pconfig($uid,'uhremotestorage','unhoestedurl');
$auth = get_pconfig($uid,'uhremotestorage','unhoestedauth');
$api = get_pconfig($uid,'uhremotestorage','unhoestedapi');
if ($url){
$b['xml'] = str_replace(
'</XRD>',
"\t".'<Link rel="remoteStorage" template="'.$url.'" api="'.$api.'" auth="'.$auth.'" ></Link>'."\n</XRD>",
$b['xml']
);
}
}
function uhremotestorage_settings_post($a, $post){
if(! local_user())
return;
set_pconfig(local_user(),'uhremotestorage','unhoestedurl',$_POST['unhoestedurl']);
set_pconfig(local_user(),'uhremotestorage','unhoestedauth',$_POST['unhoestedauth']);
set_pconfig(local_user(),'uhremotestorage','unhoestedapi',$_POST['unhoestedapi']);
}
function uhremotestorage_settings($a, &$s){
if(! local_user())
return;
$uid = $a->user['nickname'] ."@". $a->get_hostname();
$url = get_pconfig(local_user(),'uhremotestorage','unhoestedurl');
$auth = get_pconfig(local_user(),'uhremotestorage','unhoestedauth');
$api = get_pconfig(local_user(),'uhremotestorage','unhoestedapi');
$arr_api = array(
'WebDAV' => "WebDAV",
'simple' => "simple WebDAV",
'CouchDB' => "CouchDB",
);
/* experimental apis */
/*
$api = array_merge($api, array(
'git' => "git",
'tahoe-lafs' => 'tahoe-lafs',
'camlistore' => 'camlistore',
'AmazonS3' => 'AmazonS3',
'GoogleDocs' => 'GoogleDocs',
'Dropbox' => 'Dropbox',
);
*/
$tpl = get_markup_template("settings.tpl", "addon/uhremotestorage/");
$s .= replace_macros($tpl, array(
'$title' => 'Unhosted remote storage',
'$desc' => sprintf( t('Allow to use your friendica id (%s) to connecto to external unhosted-enabled storage (like ownCloud). See <a href="http://www.w3.org/community/unhosted/wiki/RemoteStorage#WebFinger">RemoteStorage WebFinger</a>'), $uid ),
'$url' => array( 'unhoestedurl', t('Template URL (with {category})'), $url, 'If your are using ownCloud, your unhosted url will be like <tt>http://<i>HOST</i>/apps/remoteStorage/WebDAV.php/<i>USER</i>/remoteStorage/{category}</tt>'),
'$auth' => array( 'unhoestedauth', t('OAuth end-point'), $auth, 'If your are using ownCloud, your OAuth endpoint will be like <tt>http://<i>HOST</i>/apps/remoteStorage/auth.php/<i>USER</i></tt>'),
'$api' => array( 'unhoestedapi', t('Api'), $api, 'If your are using ownCloud, your api will be <tt>WebDAV</tt>', $arr_api),
'$submit' => t('Save Settings'),
));
}