+++ /dev/null
-The Remote Permissions addon enables recipients of private posts to see who else has received the post. This can be beneficial on community servers where people may want to modify the way they speak depending on who can see their comments to the post.
-
-Note that since Friendica is federated, the local hub may have posts that originated elsewhere. In that case, the addon has no way of knowing all the recipients of the post, and it must settle for finding out who else can see it on the local hub.
-
-The hub admin can specify one of two behaviors for this addon:
-
-* **Global:** every private post on the local hub will show all recipients (or at least the ones it can discover) of the post to any other users on the local hub
-* **Individual:** only private posts from those users on the local hub who "opt-in" will show the post recipients. None of the private posts that originated elsewhere will show even partial lists of post recipients
+++ /dev/null
-# ADDON remote_permissions
-# Copyright (C)
-# This file is distributed under the same license as the Friendica remote_permissions addon package.
-#
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2021-02-01 18:15+0100\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"
-
-#: remote_permissions.php:44
-msgid "Remote Permissions Settings"
-msgstr ""
-
-#: remote_permissions.php:45
-msgid ""
-"Allow recipients of your private posts to see the other recipients of the "
-"posts"
-msgstr ""
-
-#: remote_permissions.php:47 remote_permissions.php:196
-msgid "Save Settings"
-msgstr ""
-
-#: remote_permissions.php:124
-msgid "Visible to:"
-msgstr ""
-
-#: remote_permissions.php:178
-msgid "Visible to"
-msgstr ""
-
-#: remote_permissions.php:178
-msgid "may only be a partial list"
-msgstr ""
-
-#: remote_permissions.php:197
-msgid "Global"
-msgstr ""
-
-#: remote_permissions.php:197
-msgid "The posts of every user on this server show the post recipients"
-msgstr ""
-
-#: remote_permissions.php:198
-msgid "Individual"
-msgstr ""
-
-#: remote_permissions.php:198
-msgid "Each user chooses whether his/her posts show the post recipients"
-msgstr ""
+++ /dev/null
-<?php\r
-\r
-$a->strings["Remote Permissions Settings"] = "";\r
-$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = "";\r
-$a->strings["Submit"] = "Enviar";\r
-$a->strings["Remote Permissions settings updated."] = "";\r
-$a->strings["Visible to:"] = "Visible per a:";\r
-$a->strings["Visible to"] = "";\r
-$a->strings["may only be a partial list"] = "";\r
-$a->strings["Global"] = "";\r
-$a->strings["The posts of every user on this server show the post recipients"] = "";\r
-$a->strings["Individual"] = "";\r
-$a->strings["Each user chooses whether his/her posts show the post recipients"] = "";\r
-$a->strings["Settings updated."] = "Ajustos actualitzats.";\r
+++ /dev/null
-# ADDON remote_permissions
-# Copyright (C)
-# This file is distributed under the same license as the Friendica remote_permissions addon package.
-#
-#
-# Translators:
-# Aditoo, 2018
-# michal_s <msupler@gmail.com>, 2014
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-02-27 05:01-0500\n"
-"PO-Revision-Date: 2018-06-13 18:01+0000\n"
-"Last-Translator: Aditoo\n"
-"Language-Team: Czech (http://www.transifex.com/Friendica/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=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
-
-#: remote_permissions.php:45
-msgid "Remote Permissions Settings"
-msgstr "Nastavení Vzdálených oprávnění"
-
-#: remote_permissions.php:46
-msgid ""
-"Allow recipients of your private posts to see the other recipients of the "
-"posts"
-msgstr "Umožnit příjemcům Vašich soukromých příspěvků vidět ostatní příjemce příspěvků"
-
-#: remote_permissions.php:48 remote_permissions.php:196
-msgid "Submit"
-msgstr "Odeslat"
-
-#: remote_permissions.php:58
-msgid "Remote Permissions settings updated."
-msgstr "Nastavení Vzdálených opravnění aktualizováno."
-
-#: remote_permissions.php:124
-msgid "Visible to:"
-msgstr "Viditelné pro:"
-
-#: remote_permissions.php:178
-msgid "Visible to"
-msgstr "Viditelné pro"
-
-#: remote_permissions.php:178
-msgid "may only be a partial list"
-msgstr "pouze pro část seznamu"
-
-#: remote_permissions.php:197
-msgid "Global"
-msgstr "Globální"
-
-#: remote_permissions.php:197
-msgid "The posts of every user on this server show the post recipients"
-msgstr "Příspěvek každého uživatele na tomto serveru zobrazuje příjemce příspěvků"
-
-#: remote_permissions.php:198
-msgid "Individual"
-msgstr "Individuálové"
-
-#: remote_permissions.php:198
-msgid "Each user chooses whether his/her posts show the post recipients"
-msgstr "Každý uživatel si zvolí, zda-li jeho/její příspěvek zobrazí příjemce příspěvku."
-
-#: remote_permissions.php:205
-msgid "Settings updated."
-msgstr "Nastavení aktualizováno."
+++ /dev/null
-<?php
-
-if(! function_exists("string_plural_select_cs")) {
-function string_plural_select_cs($n){
- $n = intval($n);
- if (($n == 1 && $n % 1 == 0)) { return 0; } else if (($n >= 2 && $n <= 4 && $n % 1 == 0)) { return 1; } else if (($n % 1 != 0 )) { return 2; } else { return 3; }
-}}
-;
-$a->strings["Remote Permissions Settings"] = "Nastavení Vzdálených oprávnění";
-$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = "Umožnit příjemcům Vašich soukromých příspěvků vidět ostatní příjemce příspěvků";
-$a->strings["Submit"] = "Odeslat";
-$a->strings["Remote Permissions settings updated."] = "Nastavení Vzdálených opravnění aktualizováno.";
-$a->strings["Visible to:"] = "Viditelné pro:";
-$a->strings["Visible to"] = "Viditelné pro";
-$a->strings["may only be a partial list"] = "pouze pro část seznamu";
-$a->strings["Global"] = "Globální";
-$a->strings["The posts of every user on this server show the post recipients"] = "Příspěvek každého uživatele na tomto serveru zobrazuje příjemce příspěvků";
-$a->strings["Individual"] = "Individuálové";
-$a->strings["Each user chooses whether his/her posts show the post recipients"] = "Každý uživatel si zvolí, zda-li jeho/její příspěvek zobrazí příjemce příspěvku.";
-$a->strings["Settings updated."] = "Nastavení aktualizováno.";
+++ /dev/null
-# ADDON remote_permissions
-# Copyright (C)
-# This file is distributed under the same license as the Friendica remote_permissions addon package.
-#
-#
-# Translators:
-# Steffen K9, 2021
-# Till Mohr <tmtrfx@till-mohr.de>, 2021
-# Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2014-2015
-# Ulf Rompe <transifex.com@rompe.org>, 2019
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2021-02-01 18:15+0100\n"
-"PO-Revision-Date: 2021-05-23 19:46+0000\n"
-"Last-Translator: Till Mohr <tmtrfx@till-mohr.de>\n"
-"Language-Team: German (http://www.transifex.com/Friendica/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"
-
-#: remote_permissions.php:44
-msgid "Remote Permissions Settings"
-msgstr "Entfernte Privatsphäreneinstellungen"
-
-#: remote_permissions.php:45
-msgid ""
-"Allow recipients of your private posts to see the other recipients of the "
-"posts"
-msgstr "Erlaube Empfängern deiner privaten Nachrichten, zu sehen, wer die anderen Empfänger sind"
-
-#: remote_permissions.php:47 remote_permissions.php:196
-msgid "Save Settings"
-msgstr "Einstellungen speichern"
-
-#: remote_permissions.php:124
-msgid "Visible to:"
-msgstr "Sichtbar für:"
-
-#: remote_permissions.php:178
-msgid "Visible to"
-msgstr "Sichtbar für"
-
-#: remote_permissions.php:178
-msgid "may only be a partial list"
-msgstr "ist womöglich nur eine teilweise Liste"
-
-#: remote_permissions.php:197
-msgid "Global"
-msgstr "Global"
-
-#: remote_permissions.php:197
-msgid "The posts of every user on this server show the post recipients"
-msgstr "Die Beiträge jedes Nutzers dieses Servers werden die Empfänger des Beitrags anzeigen"
-
-#: remote_permissions.php:198
-msgid "Individual"
-msgstr "Individuell"
-
-#: remote_permissions.php:198
-msgid "Each user chooses whether his/her posts show the post recipients"
-msgstr "Jede/r Nutzer/in kann wählen, ob die Empfänger der Beiträge angezeigt werden sollen oder nicht"
+++ /dev/null
-<?php
-
-if(! function_exists("string_plural_select_de")) {
-function string_plural_select_de($n){
- $n = intval($n);
- return intval($n != 1);
-}}
-;
-$a->strings["Remote Permissions Settings"] = "Entfernte Privatsphäreneinstellungen";
-$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = "Erlaube Empfängern deiner privaten Nachrichten, zu sehen, wer die anderen Empfänger sind";
-$a->strings["Save Settings"] = "Einstellungen speichern";
-$a->strings["Visible to:"] = "Sichtbar für:";
-$a->strings["Visible to"] = "Sichtbar für";
-$a->strings["may only be a partial list"] = "ist womöglich nur eine teilweise Liste";
-$a->strings["Global"] = "Global";
-$a->strings["The posts of every user on this server show the post recipients"] = "Die Beiträge jedes Nutzers dieses Servers werden die Empfänger des Beitrags anzeigen";
-$a->strings["Individual"] = "Individuell";
-$a->strings["Each user chooses whether his/her posts show the post recipients"] = "Jede/r Nutzer/in kann wählen, ob die Empfänger der Beiträge angezeigt werden sollen oder nicht";
+++ /dev/null
-<?php\r
-\r
-$a->strings["Submit"] = "Sendi";\r
-$a->strings["Visible to:"] = "Videbla al:";\r
-$a->strings["Settings updated."] = "Agordoj ĝisdatigita.";\r
+++ /dev/null
-# ADDON remote_permissions
-# Copyright (C)
-# This file is distributed under the same license as the Friendica remote_permissions addon package.
-#
-#
-# Translators:
-# Albert, 2016
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-02-27 05:01-0500\n"
-"PO-Revision-Date: 2016-11-17 22:30+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"
-
-#: remote_permissions.php:45
-msgid "Remote Permissions Settings"
-msgstr "Ajustes de Permisos Remotos"
-
-#: remote_permissions.php:46
-msgid ""
-"Allow recipients of your private posts to see the other recipients of the "
-"posts"
-msgstr "Permitir a los destinatarios de sus publicaciones privadas ver a los otros destinatarios de sus publicaciones"
-
-#: remote_permissions.php:48 remote_permissions.php:196
-msgid "Submit"
-msgstr "Enviar"
-
-#: remote_permissions.php:58
-msgid "Remote Permissions settings updated."
-msgstr "Ajustes de Permisos Remotos actualizados."
-
-#: remote_permissions.php:124
-msgid "Visible to:"
-msgstr "Visible para:"
-
-#: remote_permissions.php:178
-msgid "Visible to"
-msgstr "Visible para"
-
-#: remote_permissions.php:178
-msgid "may only be a partial list"
-msgstr "puede ser sólo una lista parcial"
-
-#: remote_permissions.php:197
-msgid "Global"
-msgstr "Global"
-
-#: remote_permissions.php:197
-msgid "The posts of every user on this server show the post recipients"
-msgstr "Las entradas de cada usuario de este servidor muestran a los destinatarios de la entrada"
-
-#: remote_permissions.php:198
-msgid "Individual"
-msgstr "Individuo"
-
-#: remote_permissions.php:198
-msgid "Each user chooses whether his/her posts show the post recipients"
-msgstr "Cada usuario elige si sus entradas muestran a los destinatarios de la entrada"
-
-#: remote_permissions.php:205
-msgid "Settings updated."
-msgstr "Ajustes actualizados."
+++ /dev/null
-<?php
-
-if(! function_exists("string_plural_select_es")) {
-function string_plural_select_es($n){
- $n = intval($n);
- return intval($n != 1);
-}}
-;
-$a->strings["Remote Permissions Settings"] = "Ajustes de Permisos Remotos";
-$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = "Permitir a los destinatarios de sus publicaciones privadas ver a los otros destinatarios de sus publicaciones";
-$a->strings["Submit"] = "Enviar";
-$a->strings["Remote Permissions settings updated."] = "Ajustes de Permisos Remotos actualizados.";
-$a->strings["Visible to:"] = "Visible para:";
-$a->strings["Visible to"] = "Visible para";
-$a->strings["may only be a partial list"] = "puede ser sólo una lista parcial";
-$a->strings["Global"] = "Global";
-$a->strings["The posts of every user on this server show the post recipients"] = "Las entradas de cada usuario de este servidor muestran a los destinatarios de la entrada";
-$a->strings["Individual"] = "Individuo";
-$a->strings["Each user chooses whether his/her posts show the post recipients"] = "Cada usuario elige si sus entradas muestran a los destinatarios de la entrada";
-$a->strings["Settings updated."] = "Ajustes actualizados.";
+++ /dev/null
-# ADDON remote_permissions
-# Copyright (C)
-# This file is distributed under the same license as the Friendica remote_permissions addon package.
-#
-#
-# Translators:
-# Kris, 2018
-# Kris, 2018
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-02-27 05:01-0500\n"
-"PO-Revision-Date: 2018-04-16 16:05+0000\n"
-"Last-Translator: Kris\n"
-"Language-Team: Finnish (Finland) (http://www.transifex.com/Friendica/friendica/language/fi_FI/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: fi_FI\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: remote_permissions.php:45
-msgid "Remote Permissions Settings"
-msgstr "Remote Permissions -asetukset"
-
-#: remote_permissions.php:46
-msgid ""
-"Allow recipients of your private posts to see the other recipients of the "
-"posts"
-msgstr ""
-
-#: remote_permissions.php:48 remote_permissions.php:196
-msgid "Submit"
-msgstr "Lähetä"
-
-#: remote_permissions.php:58
-msgid "Remote Permissions settings updated."
-msgstr "Remote Pemissions -asetukset päivitetty."
-
-#: remote_permissions.php:124
-msgid "Visible to:"
-msgstr "Näkyvyys:"
-
-#: remote_permissions.php:178
-msgid "Visible to"
-msgstr ""
-
-#: remote_permissions.php:178
-msgid "may only be a partial list"
-msgstr ""
-
-#: remote_permissions.php:197
-msgid "Global"
-msgstr ""
-
-#: remote_permissions.php:197
-msgid "The posts of every user on this server show the post recipients"
-msgstr ""
-
-#: remote_permissions.php:198
-msgid "Individual"
-msgstr ""
-
-#: remote_permissions.php:198
-msgid "Each user chooses whether his/her posts show the post recipients"
-msgstr ""
-
-#: remote_permissions.php:205
-msgid "Settings updated."
-msgstr "Asetukset päivitetty."
+++ /dev/null
-<?php
-
-if(! function_exists("string_plural_select_fi_fi")) {
-function string_plural_select_fi_fi($n){
- $n = intval($n);
- return intval($n != 1);
-}}
-;
-$a->strings["Remote Permissions Settings"] = "Remote Permissions -asetukset";
-$a->strings["Submit"] = "Lähetä";
-$a->strings["Remote Permissions settings updated."] = "Remote Pemissions -asetukset päivitetty.";
-$a->strings["Visible to:"] = "Näkyvyys:";
-$a->strings["Settings updated."] = "Asetukset päivitetty.";
+++ /dev/null
-<?php\r
-\r
-$a->strings["Remote Permissions Settings"] = "Permissions distantes";\r
-$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = "Autoriser les destinataires de vos messages privés a voir les autres destinataires du message";\r
-$a->strings["Submit"] = "Envoyer";\r
-$a->strings["Remote Permissions settings updated."] = "Permissions distantes mises-à-jour.";\r
-$a->strings["Visible to:"] = "Visible par:";\r
-$a->strings["Visible to"] = "Visibilité";\r
-$a->strings["may only be a partial list"] = "peut être une liste partielle";\r
-$a->strings["Global"] = "Global";\r
-$a->strings["The posts of every user on this server show the post recipients"] = "Les publications de tous les utilisateurs de ce serveur afficheront leurs destinataires";\r
-$a->strings["Individual"] = "Individuel";\r
-$a->strings["Each user chooses whether his/her posts show the post recipients"] = "Chaque utilisateur du serveur pourra choisir si ses publications affichent leurs destinataires";\r
-$a->strings["Settings updated."] = "Réglages mis à jour.";\r
+++ /dev/null
-# ADDON remote_permissions
-# Copyright (C)
-# This file is distributed under the same license as the Friendica remote_permissions addon package.
-#
-#
-# Translators:
-# Balázs Úr, 2020-2021
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2021-02-01 18:15+0100\n"
-"PO-Revision-Date: 2021-03-26 00:01+0000\n"
-"Last-Translator: Balázs Úr\n"
-"Language-Team: Hungarian (http://www.transifex.com/Friendica/friendica/language/hu/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: hu\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: remote_permissions.php:44
-msgid "Remote Permissions Settings"
-msgstr "Távoli jogosultságok beállításai"
-
-#: remote_permissions.php:45
-msgid ""
-"Allow recipients of your private posts to see the other recipients of the "
-"posts"
-msgstr "Engedélyezés a személyes bejegyzések címzettjei számára, hogy láthassák a bejegyzések egyéb címzettjeit"
-
-#: remote_permissions.php:47 remote_permissions.php:196
-msgid "Save Settings"
-msgstr "Beállítások mentése"
-
-#: remote_permissions.php:124
-msgid "Visible to:"
-msgstr "Látható nekik:"
-
-#: remote_permissions.php:178
-msgid "Visible to"
-msgstr "Látható nekik"
-
-#: remote_permissions.php:178
-msgid "may only be a partial list"
-msgstr "esetleg csak részleges lista lehet"
-
-#: remote_permissions.php:197
-msgid "Global"
-msgstr "Globális"
-
-#: remote_permissions.php:197
-msgid "The posts of every user on this server show the post recipients"
-msgstr "Ezen a kiszolgálón lévő összes felhasználó bejegyzései megjelenítik a bejegyzés címzettjeit"
-
-#: remote_permissions.php:198
-msgid "Individual"
-msgstr "Egyéni"
-
-#: remote_permissions.php:198
-msgid "Each user chooses whether his/her posts show the post recipients"
-msgstr "Minden felhasználó kiválaszthatja, hogy a bejegyzéseik megjelenítsék-e a bejegyzés címzettjeit"
+++ /dev/null
-<?php
-
-if(! function_exists("string_plural_select_hu")) {
-function string_plural_select_hu($n){
- $n = intval($n);
- return intval($n != 1);
-}}
-;
-$a->strings["Remote Permissions Settings"] = "Távoli jogosultságok beállításai";
-$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = "Engedélyezés a személyes bejegyzések címzettjei számára, hogy láthassák a bejegyzések egyéb címzettjeit";
-$a->strings["Save Settings"] = "Beállítások mentése";
-$a->strings["Visible to:"] = "Látható nekik:";
-$a->strings["Visible to"] = "Látható nekik";
-$a->strings["may only be a partial list"] = "esetleg csak részleges lista lehet";
-$a->strings["Global"] = "Globális";
-$a->strings["The posts of every user on this server show the post recipients"] = "Ezen a kiszolgálón lévő összes felhasználó bejegyzései megjelenítik a bejegyzés címzettjeit";
-$a->strings["Individual"] = "Egyéni";
-$a->strings["Each user chooses whether his/her posts show the post recipients"] = "Minden felhasználó kiválaszthatja, hogy a bejegyzéseik megjelenítsék-e a bejegyzés címzettjeit";
+++ /dev/null
-<?php\r
-\r
-$a->strings["Submit"] = "Senda inn";\r
-$a->strings["Visible to:"] = "Sýnilegt eftirfarandi:";\r
-$a->strings["Settings updated."] = "Stillingar uppfærðar";\r
+++ /dev/null
-# ADDON remote_permissions
-# Copyright (C)
-# This file is distributed under the same license as the Friendica remote_permissions addon package.
-#
-#
-# Translators:
-# fabrixxm <fabrix.xm@gmail.com>, 2014-2015
-# Sylke Vicious <silkevicious@gmail.com>, 2021
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2021-02-01 18:15+0100\n"
-"PO-Revision-Date: 2021-02-16 12:47+0000\n"
-"Last-Translator: Sylke Vicious <silkevicious@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"
-
-#: remote_permissions.php:44
-msgid "Remote Permissions Settings"
-msgstr "Impostazioni Permissi Remoti"
-
-#: remote_permissions.php:45
-msgid ""
-"Allow recipients of your private posts to see the other recipients of the "
-"posts"
-msgstr "Permetti ai destinatari dei tuoi messaggi privati di vedere gli altri destinatari del messaggio"
-
-#: remote_permissions.php:47 remote_permissions.php:196
-msgid "Save Settings"
-msgstr "Salva Impostazioni"
-
-#: remote_permissions.php:124
-msgid "Visible to:"
-msgstr "Visibile a:"
-
-#: remote_permissions.php:178
-msgid "Visible to"
-msgstr "Visibile a"
-
-#: remote_permissions.php:178
-msgid "may only be a partial list"
-msgstr "può essere solo una lista parziale"
-
-#: remote_permissions.php:197
-msgid "Global"
-msgstr "Globale"
-
-#: remote_permissions.php:197
-msgid "The posts of every user on this server show the post recipients"
-msgstr "I messaggi di tutti gli utenti di questo server mostrano i destinatari"
-
-#: remote_permissions.php:198
-msgid "Individual"
-msgstr "Individuale"
-
-#: remote_permissions.php:198
-msgid "Each user chooses whether his/her posts show the post recipients"
-msgstr "Ogni utente sceglie se i suoi messaggi mostreranno i destinatari"
+++ /dev/null
-<?php
-
-if(! function_exists("string_plural_select_it")) {
-function string_plural_select_it($n){
- $n = intval($n);
- return intval($n != 1);
-}}
-;
-$a->strings["Remote Permissions Settings"] = "Impostazioni Permissi Remoti";
-$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = "Permetti ai destinatari dei tuoi messaggi privati di vedere gli altri destinatari del messaggio";
-$a->strings["Save Settings"] = "Salva Impostazioni";
-$a->strings["Visible to:"] = "Visibile a:";
-$a->strings["Visible to"] = "Visibile a";
-$a->strings["may only be a partial list"] = "può essere solo una lista parziale";
-$a->strings["Global"] = "Globale";
-$a->strings["The posts of every user on this server show the post recipients"] = "I messaggi di tutti gli utenti di questo server mostrano i destinatari";
-$a->strings["Individual"] = "Individuale";
-$a->strings["Each user chooses whether his/her posts show the post recipients"] = "Ogni utente sceglie se i suoi messaggi mostreranno i destinatari";
+++ /dev/null
-<?php\r
-\r
-$a->strings["Remote Permissions Settings"] = "";\r
-$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = "";\r
-$a->strings["Submit"] = "Lagre";\r
-$a->strings["Remote Permissions settings updated."] = "";\r
-$a->strings["Visible to:"] = "Synlig for:";\r
-$a->strings["Visible to"] = "";\r
-$a->strings["may only be a partial list"] = "";\r
-$a->strings["Global"] = "";\r
-$a->strings["The posts of every user on this server show the post recipients"] = "";\r
-$a->strings["Individual"] = "";\r
-$a->strings["Each user chooses whether his/her posts show the post recipients"] = "";\r
-$a->strings["Settings updated."] = "Innstillinger oppdatert.";\r
+++ /dev/null
-# ADDON remote_permissions
-# Copyright (C)
-# This file is distributed under the same license as the Friendica remote_permissions addon package.
-#
-#
-# Translators:
-# Jeroen De Meerleer <me@jeroened.be>, 2018
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-02-27 05:01-0500\n"
-"PO-Revision-Date: 2018-08-24 13:51+0000\n"
-"Last-Translator: Jeroen De Meerleer <me@jeroened.be>\n"
-"Language-Team: Dutch (http://www.transifex.com/Friendica/friendica/language/nl/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: nl\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: remote_permissions.php:45
-msgid "Remote Permissions Settings"
-msgstr "Instellingen voor toegang op afstand"
-
-#: remote_permissions.php:46
-msgid ""
-"Allow recipients of your private posts to see the other recipients of the "
-"posts"
-msgstr "Ontvangers van private berichten toestaan andere ontvangers te bekijken"
-
-#: remote_permissions.php:48 remote_permissions.php:196
-msgid "Submit"
-msgstr ""
-
-#: remote_permissions.php:58
-msgid "Remote Permissions settings updated."
-msgstr "Toegang op afstand instellingen opgeslagen"
-
-#: remote_permissions.php:124
-msgid "Visible to:"
-msgstr ""
-
-#: remote_permissions.php:178
-msgid "Visible to"
-msgstr ""
-
-#: remote_permissions.php:178
-msgid "may only be a partial list"
-msgstr ""
-
-#: remote_permissions.php:197
-msgid "Global"
-msgstr ""
-
-#: remote_permissions.php:197
-msgid "The posts of every user on this server show the post recipients"
-msgstr ""
-
-#: remote_permissions.php:198
-msgid "Individual"
-msgstr ""
-
-#: remote_permissions.php:198
-msgid "Each user chooses whether his/her posts show the post recipients"
-msgstr ""
-
-#: remote_permissions.php:205
-msgid "Settings updated."
-msgstr "Instellingen opgeslagen"
+++ /dev/null
-<?php
-
-if(! function_exists("string_plural_select_nl")) {
-function string_plural_select_nl($n){
- $n = intval($n);
- return intval($n != 1);
-}}
-;
-$a->strings["Remote Permissions Settings"] = "Instellingen voor toegang op afstand";
-$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = "Ontvangers van private berichten toestaan andere ontvangers te bekijken";
-$a->strings["Remote Permissions settings updated."] = "Toegang op afstand instellingen opgeslagen";
-$a->strings["Settings updated."] = "Instellingen opgeslagen";
+++ /dev/null
-# ADDON remote_permissions
-# Copyright (C)
-# This file is distributed under the same license as the Friendica remote_permissions addon package.
-#
-#
-# Translators:
-# Waldemar Stoczkowski <waldemar.stoczkowski@gmail.com>, 2018
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-02-27 05:01-0500\n"
-"PO-Revision-Date: 2018-03-31 20:21+0000\n"
-"Last-Translator: Waldemar Stoczkowski <waldemar.stoczkowski@gmail.com>\n"
-"Language-Team: Polish (http://www.transifex.com/Friendica/friendica/language/pl/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: pl\n"
-"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
-
-#: remote_permissions.php:45
-msgid "Remote Permissions Settings"
-msgstr "Ustawienia uprawnień zdalnych"
-
-#: remote_permissions.php:46
-msgid ""
-"Allow recipients of your private posts to see the other recipients of the "
-"posts"
-msgstr "Zezwalaj odbiorcom prywatnych wpisów na wyświetlanie innych adresatów postów"
-
-#: remote_permissions.php:48 remote_permissions.php:196
-msgid "Submit"
-msgstr "Wyślij"
-
-#: remote_permissions.php:58
-msgid "Remote Permissions settings updated."
-msgstr "Zaktualizowano ustawienia uprawnień zdalnych."
-
-#: remote_permissions.php:124
-msgid "Visible to:"
-msgstr "Widoczny dla:"
-
-#: remote_permissions.php:178
-msgid "Visible to"
-msgstr "Widoczny dla"
-
-#: remote_permissions.php:178
-msgid "may only be a partial list"
-msgstr "mogą być tylko częściowe listy"
-
-#: remote_permissions.php:197
-msgid "Global"
-msgstr "Ogólnoświatowy"
-
-#: remote_permissions.php:197
-msgid "The posts of every user on this server show the post recipients"
-msgstr "Wpisy każdego użytkownika na tym serwerze pokazują odbiorców wiadomości"
-
-#: remote_permissions.php:198
-msgid "Individual"
-msgstr "Indywidualny"
-
-#: remote_permissions.php:198
-msgid "Each user chooses whether his/her posts show the post recipients"
-msgstr "Każdy użytkownik wybiera, czy jego/jej posty pokazują odbiorców postów"
-
-#: remote_permissions.php:205
-msgid "Settings updated."
-msgstr "Zaktualizowano ustawienia."
+++ /dev/null
-<?php
-
-if(! function_exists("string_plural_select_pl")) {
-function string_plural_select_pl($n){
- $n = intval($n);
- if ($n==1) { return 0; } else if (($n%10>=2 && $n%10<=4) && ($n%100<12 || $n%100>14)) { return 1; } else if ($n!=1 && ($n%10>=0 && $n%10<=1) || ($n%10>=5 && $n%10<=9) || ($n%100>=12 && $n%100<=14)) { return 2; } else { return 3; }
-}}
-;
-$a->strings["Remote Permissions Settings"] = "Ustawienia uprawnień zdalnych";
-$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = "Zezwalaj odbiorcom prywatnych wpisów na wyświetlanie innych adresatów postów";
-$a->strings["Submit"] = "Wyślij";
-$a->strings["Remote Permissions settings updated."] = "Zaktualizowano ustawienia uprawnień zdalnych.";
-$a->strings["Visible to:"] = "Widoczny dla:";
-$a->strings["Visible to"] = "Widoczny dla";
-$a->strings["may only be a partial list"] = "mogą być tylko częściowe listy";
-$a->strings["Global"] = "Ogólnoświatowy";
-$a->strings["The posts of every user on this server show the post recipients"] = "Wpisy każdego użytkownika na tym serwerze pokazują odbiorców wiadomości";
-$a->strings["Individual"] = "Indywidualny";
-$a->strings["Each user chooses whether his/her posts show the post recipients"] = "Każdy użytkownik wybiera, czy jego/jej posty pokazują odbiorców postów";
-$a->strings["Settings updated."] = "Zaktualizowano ustawienia.";
+++ /dev/null
-<?php\r
-\r
-$a->strings["Remote Permissions Settings"] = "";\r
-$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = "";\r
-$a->strings["Submit"] = "Enviar";\r
-$a->strings["Remote Permissions settings updated."] = "";\r
-$a->strings["Visible to:"] = "Visível para:";\r
-$a->strings["Visible to"] = "";\r
-$a->strings["may only be a partial list"] = "";\r
-$a->strings["Global"] = "";\r
-$a->strings["The posts of every user on this server show the post recipients"] = "";\r
-$a->strings["Individual"] = "";\r
-$a->strings["Each user chooses whether his/her posts show the post recipients"] = "";\r
-$a->strings["Settings updated."] = "As configurações foram atualizadas.";\r
+++ /dev/null
-# ADDON remote_permissions
-# Copyright (C)
-# This file is distributed under the same license as the Friendica remote_permissions addon package.
-#
-#
-# Translators:
-msgid ""
-msgstr ""
-"Project-Id-Version: friendica\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-06-22 13:18+0200\n"
-"PO-Revision-Date: 2014-07-08 12:05+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"
-
-#: remote_permissions.php:45
-msgid "Remote Permissions Settings"
-msgstr "Configurări Permisiuni la Distanță"
-
-#: remote_permissions.php:46
-msgid ""
-"Allow recipients of your private posts to see the other recipients of the "
-"posts"
-msgstr "Permite destinatarilor, posturile dvs. private, să-i vadă și pe ceilalți destinatari ai postărilor"
-
-#: remote_permissions.php:48 remote_permissions.php:196
-msgid "Save Settings"
-msgstr "Salvare Configurări"
-
-#: remote_permissions.php:58
-msgid "Remote Permissions settings updated."
-msgstr "Configurările Permisiunilor la Distanță, au fost actualizate."
-
-#: remote_permissions.php:124
-msgid "Visible to:"
-msgstr "Vizibil pentru :"
-
-#: remote_permissions.php:178
-msgid "Visible to"
-msgstr "Vizibil pentru"
-
-#: remote_permissions.php:178
-msgid "may only be a partial list"
-msgstr "poate fi doar o listă parțială"
-
-#: remote_permissions.php:197
-msgid "Global"
-msgstr "Global"
-
-#: remote_permissions.php:197
-msgid "The posts of every user on this server show the post recipients"
-msgstr "Postările fiecărui utilizator de pe acest server, afișează destinatarii mesajului"
-
-#: remote_permissions.php:198
-msgid "Individual"
-msgstr "Individual"
-
-#: remote_permissions.php:198
-msgid "Each user chooses whether his/her posts show the post recipients"
-msgstr "Fiecare utilizator alege dacă postările lui/ei, afișează și destinatarii mesajului"
-
-#: remote_permissions.php:205
-msgid "Settings updated."
-msgstr "Configurări actualizate."
+++ /dev/null
-<?php
-
-if(! function_exists("string_plural_select_ro")) {
-function string_plural_select_ro($n){
- $n = intval($n);
- if ($n==1) { return 0; } else if ((($n%100>19)||(($n%100==0)&&($n!=0)))) { return 2; } else { return 1; }
-}}
-;
-$a->strings["Remote Permissions Settings"] = "Configurări Permisiuni la Distanță";
-$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = "Permite destinatarilor, posturile dvs. private, să-i vadă și pe ceilalți destinatari ai postărilor";
-$a->strings["Save Settings"] = "Salvare Configurări";
-$a->strings["Remote Permissions settings updated."] = "Configurările Permisiunilor la Distanță, au fost actualizate.";
-$a->strings["Visible to:"] = "Vizibil pentru :";
-$a->strings["Visible to"] = "Vizibil pentru";
-$a->strings["may only be a partial list"] = "poate fi doar o listă parțială";
-$a->strings["Global"] = "Global";
-$a->strings["The posts of every user on this server show the post recipients"] = "Postările fiecărui utilizator de pe acest server, afișează destinatarii mesajului";
-$a->strings["Individual"] = "Individual";
-$a->strings["Each user chooses whether his/her posts show the post recipients"] = "Fiecare utilizator alege dacă postările lui/ei, afișează și destinatarii mesajului";
-$a->strings["Settings updated."] = "Configurări actualizate.";
+++ /dev/null
-<?php\r
-\r
-$a->strings["Remote Permissions Settings"] = "";\r
-$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = "";\r
-$a->strings["Submit"] = "Подтвердить";\r
-$a->strings["Remote Permissions settings updated."] = "";\r
-$a->strings["Visible to:"] = "Кто может видеть:";\r
-$a->strings["Visible to"] = "";\r
-$a->strings["may only be a partial list"] = "";\r
-$a->strings["Global"] = "";\r
-$a->strings["The posts of every user on this server show the post recipients"] = "";\r
-$a->strings["Individual"] = "";\r
-$a->strings["Each user chooses whether his/her posts show the post recipients"] = "";\r
-$a->strings["Settings updated."] = "Настройки обновлены.";\r
+++ /dev/null
-<?php\r
-\r
-$a->strings["Submit"] = "Spara";\r
-$a->strings["Visible to:"] = "Synlig för:";\r
-$a->strings["Settings updated."] = "Inställningarna har uppdaterats.";\r
+++ /dev/null
-<?php\r
-\r
-$a->strings["Remote Permissions Settings"] = "对外批准设置";\r
-$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = "允许您私人文章接受者看别接受者。";\r
-$a->strings["Submit"] = "提交";\r
-$a->strings["Remote Permissions settings updated."] = "对外批准设置更新了。";\r
-$a->strings["Visible to:"] = "可见给:";\r
-$a->strings["Visible to"] = "可见的给";\r
-$a->strings["may only be a partial list"] = "可能部分的单";\r
-$a->strings["Global"] = "综合";\r
-$a->strings["The posts of every user on this server show the post recipients"] = "这网站所有用户的文章表示接受者";\r
-$a->strings["Individual"] = "一个人的";\r
-$a->strings["Each user chooses whether his/her posts show the post recipients"] = "各用户选择他问上是否表示接受者";\r
-$a->strings["Settings updated."] = "设置跟新了";\r
+++ /dev/null
-<?php
-/**
- * Name: Remote Permissions
- * Description: Allow the recipients of private posts to see who else can see the post by clicking the lock icon
- * Version: 1.0
- * Author: Zach <https://f.shmuz.in/profile/techcity>
- * Status: Unsupported
- */
-
-use Friendica\Core\Hook;
-use Friendica\Core\Renderer;
-use Friendica\Database\DBA;
-use Friendica\DI;
-use Friendica\Util\Strings;
-
-function remote_permissions_install() {
- Hook::register('lockview_content', 'addon/remote_permissions/remote_permissions.php', 'remote_permissions_content');
- Hook::register('addon_settings', 'addon/remote_permissions/remote_permissions.php', 'remote_permissions_settings');
- Hook::register('addon_settings_post', 'addon/remote_permissions/remote_permissions.php', 'remote_permissions_settings_post');
-}
-
-function remote_permissions_settings(&$a,&$o) {
-
- if(! local_user())
- return;
-
- $global = DI::config()->get("remote_perms", "global");
- if($global == 1)
- return;
-
- /* Add our stylesheet to the page so we can make our settings look nice */
-
- DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl()->get() . '/addon/remote_permissions/settings.css' . '" media="all" />' . "\r\n";
-
- /* Get the current state of our config variable */
-
- $remote_perms = DI::pConfig()->get(local_user(),'remote_perms','show');
-
- /* Add some HTML to the existing form */
-
-// $t = file_get_contents("addon/remote_permissions/settings.tpl" );
- $t = Renderer::getMarkupTemplate("settings.tpl", "addon/remote_permissions/" );
- $o .= Renderer::replaceMacros($t, [
- '$remote_perms_title' => DI::l10n()->t('Remote Permissions Settings'),
- '$remote_perms_label' => DI::l10n()->t('Allow recipients of your private posts to see the other recipients of the posts'),
- '$checked' => (($remote_perms == 1) ? 'checked="checked"' : ''),
- '$submit' => DI::l10n()->t('Save Settings')
- ]);
-
-}
-
-function remote_permissions_settings_post($a,$post) {
- if(! local_user() || empty($_POST['remote-perms-submit']))
- return;
-
- DI::pConfig()->set(local_user(),'remote_perms','show',intval($_POST['remote-perms']));
-}
-
-function remote_permissions_content($a, $item_copy) {
-
- if($item_copy['uid'] != local_user())
- return;
-
- if(DI::config()->get('remote_perms','global') == 0) {
- // Admin has set Individual choice. We need to find
- // the original poster. First, get the contact's info
- $r = q("SELECT nick, url FROM contact WHERE id = %d LIMIT 1",
- intval($item_copy['contact-id'])
- );
- if(! $r)
- return;
-
- // Find out if the contact lives here
- $baseurl = DI::baseUrl()->get();
- $baseurl = substr($baseurl, strpos($baseurl, '://') + 3);
- if(strpos($r[0]['url'], $baseurl) === false)
- return;
-
- // The contact lives here. Get his/her user info
- $nick = $r[0]['nick'];
- $r = q("SELECT uid FROM user WHERE nickname = '%s' LIMIT 1",
- DBA::escape($nick)
- );
- if(! $r)
- return;
-
- if(DI::pConfig()->get($r[0]['uid'],'remote_perms','show') == 0)
- return;
- }
-
- if(($item_copy['private'] == 1) && (! strlen($item_copy['allow_cid'])) && (! strlen($item_copy['allow_gid']))
- && (! strlen($item_copy['deny_cid'])) && (! strlen($item_copy['deny_gid']))) {
-
- $allow_names = [];
-
- // Check for the original post here -- that's the only way
- // to definitely get all of the recipients
-
- if($item_copy['uri'] === $item_copy['parent-uri']) {
- // Lockview for a top-level post
- $r = q("SELECT allow_cid, allow_gid, deny_cid, deny_gid FROM item WHERE uri = '%s' AND type = 'wall' LIMIT 1",
- DBA::escape($item_copy['uri'])
- );
- }
- else {
- // Lockview for a comment
- $r = q("SELECT allow_cid, allow_gid, deny_cid, deny_gid FROM item WHERE uri = '%s'
- AND parent = ( SELECT id FROM item WHERE uri = '%s' AND type = 'wall' ) LIMIT 1",
- DBA::escape($item_copy['uri']),
- DBA::escape($item_copy['parent-uri'])
- );
- }
- if($r) {
-
- $item = $r[0];
-
- $aclFormatter = DI::aclFormatter();
-
- $allowed_users = $aclFormatter->expand($item['allow_cid']);
- $allowed_groups = $aclFormatter->expand($item['allow_gid']);
- $deny_users = $aclFormatter->expand($item['deny_cid']);
- $deny_groups = $aclFormatter->expand($item['deny_gid']);
-
- $o = DI::l10n()->t('Visible to:') . '<br />';
- $allow = [];
- $deny = [];
-
- if(count($allowed_groups)) {
- $r = q("SELECT DISTINCT `contact-id` FROM group_member WHERE gid IN ( %s )",
- DBA::escape(implode(', ', $allowed_groups))
- );
- foreach($r as $rr)
- $allow[] = $rr['contact-id'];
- }
- $allow = array_unique($allow + $allowed_users);
-
- if(count($deny_groups)) {
- $r = q("SELECT DISTINCT `contact-id` FROM group_member WHERE gid IN ( %s )",
- DBA::escape(implode(', ', $deny_groups))
- );
- foreach($r as $rr)
- $deny[] = $rr['contact-id'];
- }
- $deny = $deny + $deny_users;
-
- if($allow)
- {
- $r = q("SELECT name FROM contact WHERE id IN ( %s )",
- DBA::escape(implode(', ', array_diff($allow, $deny)))
- );
- foreach($r as $rr)
- $allow_names[] = $rr['name'];
- }
- }
- else {
- // We don't have the original post. Let's try for the next best thing:
- // checking who else has the post on our own server. Note that comments
- // that were sent to Diaspora and were relayed to others on our server
- // will have different URIs than the original. We can match the GUID for
- // those
- $r = q("SELECT `uid` FROM item WHERE uri = '%s' OR guid = '%s'",
- DBA::escape($item_copy['uri']),
- DBA::escape($item_copy['guid'])
- );
- if(! $r)
- return;
-
- $allow = [];
- foreach($r as $rr)
- $allow[] = $rr['uid'];
-
- $r = q("SELECT username FROM user WHERE uid IN ( %s )",
- DBA::escape(implode(', ', $allow))
- );
- if(! $r)
- return;
-
- $o = DI::l10n()->t('Visible to') . ' (' . DI::l10n()->t('may only be a partial list') . '):<br />';
-
- foreach($r as $rr)
- $allow_names[] = $rr['username'];
- }
-
- // Sort the names alphabetically, case-insensitive
- natcasesort($allow_names);
- echo $o . implode(', ', $allow_names);
- exit();
- }
-
- return;
-}
-
-function remote_permissions_addon_admin(&$a, &$o){
- $t = Renderer::getMarkupTemplate( "admin.tpl", "addon/remote_permissions/" );
- $o = Renderer::replaceMacros($t, [
- '$submit' => DI::l10n()->t('Save Settings'),
- '$global' => ['remotepermschoice', DI::l10n()->t('Global'), 1, DI::l10n()->t('The posts of every user on this server show the post recipients'), DI::config()->get('remote_perms', 'global') == 1],
- '$individual' => ['remotepermschoice', DI::l10n()->t('Individual'), 2, DI::l10n()->t('Each user chooses whether his/her posts show the post recipients'), DI::config()->get('remote_perms', 'global') == 0]
- ]);
-}
-
-function remote_permissions_addon_admin_post(&$a){
- $choice = (!empty($_POST['remotepermschoice']) ? Strings::escapeTags(trim($_POST['remotepermschoice'])) : '');
- DI::config()->set('remote_perms','global',($choice == 1 ? 1 : 0));
-}
+++ /dev/null
-
-
-
-#remote-perms-label {
- float: left;
- width: 200px;
- margin-bottom: 25px;
- margin-right: 20px;
- text-align: justify;
-}
-
-#remote-perms {
- float: left;
-}
-
-
+++ /dev/null
-{{include file="field_radio.tpl" field=$global}}
-{{include file="field_radio.tpl" field=$individual}}
-<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
+++ /dev/null
- <div class="settings-block">
- <h3>{{$remote_perms_title}}</h3>
- <div id="remote-perms-wrapper">
- <label id="remote-perms-label" for="remote-perms">{{$remote_perms_label}}</label>
- <input id="remote-perms-input" type="checkbox" name="remote-perms" value="1" {{$checked}} />
- </div><div class="clear"></div>
- <div class="settings-submit-wrapper" ><input type="submit" name="remote-perms-submit" class="settings-submit" value="{{$submit}}" /></div></div>
-
+++ /dev/null
-# ADDON widgets
-# Copyright (C)
-# This file is distributed under the same license as the Friendica widgets addon package.
-#
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2021-02-01 18:16+0100\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"
-
-
-#: widget_friendheader.php:50
-msgid "Get added to this list!"
-msgstr ""
-
-#: widget_friends.php:53
-msgid "Connect on Friendica!"
-msgstr ""
-
-#: widget_like.php:56
-#, php-format
-msgid "%d person doesn't like this"
-msgid_plural "%d people don't like this"
-msgstr[0] ""
-msgstr[1] ""
-
-#: widget_like.php:66
-#, php-format
-msgid "%d person likes this"
-msgid_plural "%d people like this"
-msgstr[0] ""
-msgstr[1] ""
-
-#: widgets.php:59
-msgid "Generate new key"
-msgstr ""
-
-#: widgets.php:61
-msgid "Widgets key"
-msgstr ""
-
-#: widgets.php:63
-msgid "Widgets available"
-msgstr ""
-
-#: widgets.php:124
-msgid "Addon Settings"
-msgstr ""
+++ /dev/null
-<?php\r
-\r
-$a->strings["%d person likes this"] = "Array";\r
-$a->strings["%d person doesn't like this"] = "Array";\r
-$a->strings["Connect on Friendica!"] = "Connectar en Friendica";\r
-$a->strings["Generate new key"] = "Generar nova clau";\r
-$a->strings["Widgets key"] = "Ginys clau";\r
-$a->strings["Widgets available"] = "Ginys disponibles";\r
-$a->strings["Addon Settings"] = "Ajustos de Addon";\r
-$a->strings["Get added to this list!"] = "S'afegeixen a aquesta llista!";\r
+++ /dev/null
-<?php\r
-\r
-$a->strings["%d person likes this"] = "Array";\r
-$a->strings["%d person doesn't like this"] = "Array";\r
-$a->strings["Connect on Friendica!"] = "Připojit na Friendica!";\r
-$a->strings["Generate new key"] = "Generovat nové klíče";\r
-$a->strings["Widgets key"] = "Widgety klíč";\r
-$a->strings["Widgets available"] = "Widgety k dispozici";\r
-$a->strings["Addon Settings"] = "Nastavení doplňku";\r
-$a->strings["Get added to this list!"] = "Nechte se přidat do tohoto listu!";\r
+++ /dev/null
-<?php\r
-\r
-$a->strings["%d person likes this"] = "Array";\r
-$a->strings["%d person doesn't like this"] = "Array";\r
-$a->strings["Connect on Friendica!"] = "In Friendica verbinden!";\r
-$a->strings["Generate new key"] = "Neuen Schlüssel erstellen";\r
-$a->strings["Widgets key"] = "Widgets Schlüssel";\r
-$a->strings["Widgets available"] = "Verfügbare Widgets";\r
-$a->strings["Addon Settings"] = "Addon-Einstellungen";\r
-$a->strings["Get added to this list!"] = "Werde Mitglied dieser Liste";\r
+++ /dev/null
-<?php\r
-\r
-$a->strings["%d person likes this"] = "Array";\r
-$a->strings["%d person doesn't like this"] = "Array";\r
-$a->strings["Connect on Friendica!"] = "Konekti ĉe Friendica!";\r
-$a->strings["Generate new key"] = "Generi novan ĉifroŝlosilon";\r
-$a->strings["Widgets key"] = "Ŝlosilo por fenestraĵoj";\r
-$a->strings["Widgets available"] = "Disponeblaj fenestraĵoj";\r
-$a->strings["Addon Settings"] = "Kromprogramoagordoj";\r
-$a->strings["Get added to this list!"] = "Iĝu membro de ĉi tiu listo!";\r
+++ /dev/null
-<?php\r
-\r
-$a->strings["%d person likes this"] = "Array";\r
-$a->strings["%d person doesn't like this"] = "Array";\r
-$a->strings["Connect on Friendica!"] = "¡Conéctate en Friendica!";\r
-$a->strings["Generate new key"] = "Generar clave nueva";\r
-$a->strings["Widgets key"] = "Clave de aplicaciones";\r
-$a->strings["Widgets available"] = "Aplicaciones disponibles";\r
-$a->strings["Addon Settings"] = "Configuración de los módulos";\r
-$a->strings["Get added to this list!"] = "¡Añadido a la lista!";\r
+++ /dev/null
-<?php\r
-\r
-$a->strings["%d person likes this"] = "Array";\r
-$a->strings["%d person doesn't like this"] = "Array";\r
-$a->strings["Connect on Friendica!"] = "Se connecter sur Friendica!";\r
-$a->strings["Generate new key"] = "Générer une nouvelle clé";\r
-$a->strings["Widgets key"] = "Clé des widgets";\r
-$a->strings["Widgets available"] = "Widgets disponibles";\r
-$a->strings["Addon Settings"] = "Extensions";\r
-$a->strings["Get added to this list!"] = "Ajoutez-vous à cette liste!";\r
+++ /dev/null
-<?php\r
-\r
-$a->strings["%d person likes this"] = "Array";\r
-$a->strings["%d person doesn't like this"] = "Array";\r
-$a->strings["Connect on Friendica!"] = "Tengist á Friendica!";\r
-$a->strings["Generate new key"] = "Búa til nýjan lykil";\r
-$a->strings["Widgets key"] = "Lykill smáforrits ";\r
-$a->strings["Widgets available"] = "Smáforrit til";\r
-$a->strings["Addon Settings"] = "Eininga stillingar";\r
-$a->strings["Get added to this list!"] = "Láta bæta þér við þennan lista!";\r
+++ /dev/null
-<?php\r
-\r
-$a->strings["%d person likes this"] = "Array";\r
-$a->strings["%d person doesn't like this"] = "Array";\r
-$a->strings["Connect on Friendica!"] = "Connettiti su Friendica!";\r
-$a->strings["Generate new key"] = "Genera una nuova chiave";\r
-$a->strings["Widgets key"] = "Chiave Widget";\r
-$a->strings["Widgets available"] = "Widget disponibili";\r
-$a->strings["Addon Settings"] = "Impostazioni addon";\r
-$a->strings["Get added to this list!"] = "Aggiungiti a questa lista!";\r
+++ /dev/null
-<?php\r
-\r
-$a->strings["%d person likes this"] = "Array";\r
-$a->strings["%d person doesn't like this"] = "Array";\r
-$a->strings["Connect on Friendica!"] = "";\r
-$a->strings["Generate new key"] = "Lag ny nøkkel";\r
-$a->strings["Widgets key"] = "Nøkkel til småprogrammer";\r
-$a->strings["Widgets available"] = "Småprogrammer er tilgjengelige";\r
-$a->strings["Addon Settings"] = "Tilleggsinnstillinger";\r
-$a->strings["Get added to this list!"] = "";\r
+++ /dev/null
-<?php\r
-\r
-$a->strings["%d person likes this"] = "Array";\r
-$a->strings["%d person doesn't like this"] = "Array";\r
-$a->strings["Connect on Friendica!"] = "Połączono z Friendica!";\r
-$a->strings["Generate new key"] = "Stwórz nowy klucz";\r
-$a->strings["Widgets key"] = "";\r
-$a->strings["Widgets available"] = "Widgety są dostępne";\r
-$a->strings["Addon Settings"] = "Ustawienia wtyczki";\r
-$a->strings["Get added to this list!"] = "Zostań dodany do listy!";\r
+++ /dev/null
-<?php\r
-\r
-$a->strings["%d person likes this"] = "Array";\r
-$a->strings["%d person doesn't like this"] = "Array";\r
-$a->strings["Connect on Friendica!"] = "Conecte no Friendica!";\r
-$a->strings["Generate new key"] = "Gerar nova chave";\r
-$a->strings["Widgets key"] = "Chave de widgets";\r
-$a->strings["Widgets available"] = "Widgets disponíveis";\r
-$a->strings["Addon Settings"] = "Configurações do addon";\r
-$a->strings["Get added to this list!"] = "";\r
+++ /dev/null
-<?php\r
-\r
-$a->strings["%d person likes this"] = "Array";\r
-$a->strings["%d person doesn't like this"] = "Array";\r
-$a->strings["Connect on Friendica!"] = "Подключены к Friendica!";\r
-$a->strings["Generate new key"] = "Сгенерировать новый ключ";\r
-$a->strings["Widgets key"] = "Ключ виджетов";\r
-$a->strings["Widgets available"] = "Виджеты доступны";\r
-$a->strings["Addon Settings"] = "Настройки плагина";\r
-$a->strings["Get added to this list!"] = "";\r
+++ /dev/null
-<?php\r
-\r
-$a->strings["Addon Settings"] = "Inställningar för insticksprogram";\r
+++ /dev/null
-<?php\r
-\r
-$a->strings["%d person likes this"] = "Array";\r
-$a->strings["%d person doesn't like this"] = "Array";\r
-$a->strings["Connect on Friendica!"] = "连接在Friendica!";\r
-$a->strings["Generate new key"] = "造成新钥匙";\r
-$a->strings["Widgets key"] = "小窗口钥匙";\r
-$a->strings["Widgets available"] = "可用的小窗口";\r
-$a->strings["Addon Settings"] = "插件设置";\r
-$a->strings["Get added to this list!"] = "被在这个单子加入!";\r
+++ /dev/null
-<div class="settings-block">
- <h3 class="settings-heading">{{$title}}</h3>
- <div class='field noedit'>
- <label>{{$label}}</label>
- <tt>{{$key}}</tt>
- </div>
-
- <div class="settings-submit-wrapper">
- <input type="submit" value="{{$submit}}" class="settings-submit" name="widgets-submit" />
- </div>
-
- <h4>{{$widgets_h}}</h4>
- <ul>
- {{foreach $widgets as $w}}
- <li><a href="{{$baseurl}}/widgets/{{$w.0}}/?k={{$key}}&p=1">{{$w.1}}</a></li>
- {{/foreach}}
- </ul>
-
-</div>
+++ /dev/null
-<style>body {font-size: 0.8em; margin: 0px; padding: 0px;}</style>
-<span class='f9k_like' title="{{$strlike}}">{{$like}} <img src="{{$baseurl}}/images/like.gif" alt="like"/></span>
-{{if $dislike}}
-<span class='f9k_dislike' title="{{$strdislike}}">{{$dislike}} <img src="{{$baseurl}}/images/dislike.gif" alt="dislike"/></span>
-{{/if}}
+++ /dev/null
-<?php
-
-use Friendica\Content\Text\HTML;
-use Friendica\Content\Widget\ContactBlock;
-use Friendica\DI;
-use Friendica\Model\User;
-
-function friendheader_widget_name()
-{
- return "Shows friends as a bar";
-}
-function friendheader_widget_help()
-{
- return "";
-}
-
-function friendheader_widget_args()
-{
- return [];
-}
-
-function friendheader_widget_size()
-{
- return ['780px','140px'];
-}
-
-
-function friendheader_widget_content(&$a, $conf)
-{
- $owner = User::getOwnerDataById($conf['uid']);
- if (empty($owner)) {
- return;
- }
-
- $o = "";
- $o .= "<style>
- body {font-size: 0.8em; margin: 0px; padding: 0px;}
- #contact-block { overflow: hidden; height: auto; }
- .contact-block-h4 { float: left; margin: 0px; }
- .allcontact-link { float: right; margin: 0px; }
- .contact-block-content { clear:both; }
- .contact-block-div { display: block !important; float: left!important; width: 50px!important; height: 50px!important; margin: 2px!important;}
-
- </style>";
- $o .= _abs_url(ContactBlock::getHTML($owner));
- $o .= "<a href='".DI::baseUrl()->get().'/profile/'.$owner['nickname']."' target=new>". DI::l10n()->t('Get added to this list!') ."</a>";
-
- return $o;
-}
+++ /dev/null
-<?php
-
-use Friendica\Content\Widget\ContactBlock;
-use Friendica\DI;
-use Friendica\Model\User;
-
-function friends_widget_name()
-{
- return "Shows profile contacts";
-}
-
-function friends_widget_help()
-{
- return "";
-}
-
-function friends_widget_args()
-{
- return [];
-}
-
-function friends_widget_size()
-{
- return ['100%', '200px'];
-}
-
-
-function friends_widget_content(&$a, $conf)
-{
- $owner = User::getOwnerDataById($conf['uid']);
- if (empty($owner)) {
- return;
- }
-
- $o = "";
- $o .= "<style>
- body {font-size: 0.8em; margin: 0px; padding: 0px;}
- #contact-block { overflow: hidden; height: auto; }
- .contact-block-h4 { float: left; margin: 0px; }
- .allcontact-link { float: right; margin: 0px; }
- .contact-block-content { clear:both; }
- .contact-block-div { display: block !important; float: left!important; width: 50px!important; height: 50px!important; margin: 2px!important;}
-
- </style>";
- $o .= _abs_url(ContactBlock::getHTML($owner));
- $o .= "<a href='".DI::baseUrl()->get().'/profile/'.$owner['nickname']."'>". DI::l10n()->t('Connect on Friendica!') ."</a>";
- return $o;
-}
+++ /dev/null
-<?php
-
-use Friendica\Core\L10n;
-use Friendica\Core\Renderer;
-use Friendica\Database\DBA;
-use Friendica\DI;
-
-function like_widget_name() {
- return "Shows likes";
-}
-function like_widget_help() {
- return "Search first item which contains <em>KEY</em> and print like/dislike count";
-}
-
-function like_widget_args(){
- return ["KEY"];
-}
-
-function like_widget_size(){
- return ['60px','20px'];
-}
-
-
-function like_widget_content(&$a, $conf){
- $args = explode(",",$_GET['a']);
-
-
- $baseq="SELECT COUNT(`post-view`.`id`) as `c`, `p`.`id`
- FROM `post-view`,
- (SELECT `i`.`id` FROM `post-view` as `i` WHERE
- `i`.`visible` = 1 AND `i`.`deleted` = 0
- AND (( `i`.`wall` = 1 AND `i`.`allow_cid` = ''
- AND `i`.`allow_gid` = ''
- AND `i`.`deny_cid` = ''
- AND `i`.`deny_gid` = '' )
- OR `i`.`uid` = %d )
- AND `i`.`body` LIKE '%%%s%%' LIMIT 1) as `p`
- WHERE `post-view`.`parent` = `p`.`id` ";
-
- // count likes
- $r = q( $baseq . "AND `post-view`.`verb` = 'http://activitystrea.ms/schema/1.0/like'",
- intval($conf['uid']),
- DBA::escape($args[0])
- );
- $likes = $r[0]['c'];
-
- $dislikes = 0;
- $strdislike = '';
- if (!DI::pConfig()->get(local_user(), 'system', 'hide_dislike')) {
- // count dislikes
- $r = q( $baseq . "AND `post-view`.`verb` = 'http://purl.org/macgirvin/dfrn/1.0/dislike'",
- intval($conf['uid']),
- DBA::escape($args[0])
- );
- $dislikes = $r[0]['c'];
- $strdislike = DI::l10n()->tt("%d person doesn't like this", "%d people don't like this", $dislikes);
- }
-
-
- $o = "";
-
-# $t = file_get_contents( dirname(__file__). "/widget_like.tpl" );
- $t = Renderer::getMarkupTemplate("widget_like.tpl", "addon/widgets/");
- $o .= Renderer::replaceMacros($t, [
- '$like' => $likes,
- '$strlike' => DI::l10n()->tt("%d person likes this", "%d people like this", $likes),
-
- '$dislike' => $dislikes,
- '$strdislike'=> $strdislike,
- ]);
-
- return $o;
-}
+++ /dev/null
-/**
- * @author Fabio Comuni
- */
-var f9a_widget_$widget_id = {
- width: "$width",
- height: "$height",
- entrypoint : "$entrypoint",
- key : "$key",
- widgetid: "$widget_id",
- argstr: "$args",
-
- load : function() {
- var args = new Array();
- args['k']=this.key;
- args['s']=window.location.href;
- args['a']=this.argstr;
- var urlencodedargs = new Array();
- for(k in args){
- if (typeof args[k] != 'function')
- urlencodedargs.push( encodeURIComponent(k)+"="+encodeURIComponent(args[k]) );
- }
- var url = this.entrypoint + "?"+ urlencodedargs.join("&");
-
- console.log(this.widgetid);
- console.log(document.getElementById(this.widgetid));
- document.getElementById(this.widgetid).innerHTML = '<iframe style="border:0px; width: '+this.width+'; height:'+this.height+'" src="'+url+'"></iframe>';
- }
-
-};
-
-document.writeln("<div id='$widget_id' class='f9k_widget $type'>");
-document.writeln("<img id='$widget_id_ld' src='$loader'>");
-document.writeln("</div>");
-(function() {
- f9a_widget_$widget_id.load();
-})();
-
+++ /dev/null
-<?php
-/**
- * Name: Widgets
- * Description: Allow to embed info from friendica into another site
- * Version: 1.0
- * Author: Fabio Comuni <http://kirgroup.com/profile/fabrix/>
- * Status: Unsupported
- */
-
-use Friendica\Core\Hook;
-use Friendica\Core\Logger;
-use Friendica\Core\Renderer;
-use Friendica\Database\DBA;
-use Friendica\DI;
-
-function widgets_install() {
- Hook::register('addon_settings', 'addon/widgets/widgets.php', 'widgets_settings');
- Hook::register('addon_settings_post', 'addon/widgets/widgets.php', 'widgets_settings_post');
- Logger::notice("installed widgets");
-}
-
-function widgets_settings_post(){
- if(! local_user())
- return;
- if (isset($_POST['widgets-submit'])){
- DI::pConfig()->delete(local_user(), 'widgets', 'key');
-
- }
-}
-
-function widgets_settings(&$a,&$o) {
- if(! local_user())
- return;
-
-
- $key = DI::pConfig()->get(local_user(), 'widgets', 'key' );
- if ($key=='') { $key = mt_rand(); DI::pConfig()->set(local_user(), 'widgets', 'key', $key); }
-
- $widgets = [];
- $d = dir(dirname(__file__));
- while(false !== ($f = $d->read())) {
- if(substr($f,0,7)=="widget_") {
- preg_match("|widget_([^.]+).php|", $f, $m);
- $w=$m[1];
- if ($w!=""){
- require_once($f);
- $widgets[] = [$w, call_user_func($w."_widget_name")];
- }
-
- }
- }
-
-
-
-# $t = file_get_contents( dirname(__file__). "/settings.tpl" );
- $t = Renderer::getMarkupTemplate("settings.tpl", "addon/widgets/");
- $o .= Renderer::replaceMacros($t, [
- '$submit' => DI::l10n()->t('Generate new key'),
- '$title' => "Widgets",
- '$label' => DI::l10n()->t('Widgets key'),
- '$key' => $key,
- '$widgets_h' => DI::l10n()->t('Widgets available'),
- '$widgets' => $widgets,
- ]);
-
-}
-
-function widgets_module() {
- return;
-}
-
-function _abs_url($s){
- return preg_replace("|href=(['\"])([^h][^t][^t][^p])|", "href=\$1" . DI::baseUrl()->get() . "/\$2", $s);
-}
-
-function _randomAlphaNum($length){
- return substr(str_shuffle(str_repeat('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',$length)),0,$length);
-}
-
-
-function widgets_content(&$a) {
-
- if (!isset($_GET['k'])) {
- if(DI::args()->get(2)=="cb"){header('HTTP/1.0 400 Bad Request'); exit();}
- return;
- }
-
- $r = q("SELECT * FROM pconfig WHERE uid IN (SELECT uid FROM pconfig WHERE v='%s')AND cat='widgets'",
- DBA::escape($_GET['k'])
- );
- if (!count($r)){
- if(DI::args()->get(2)=="cb"){header('HTTP/1.0 400 Bad Request'); exit();}
- return;
- }
- $conf = [];
- $conf['uid'] = $r[0]['uid'];
- foreach($r as $e) { $conf[$e['k']]=$e['v']; }
-
- $o = "";
-
- $widgetfile =dirname(__file__)."/widget_".DI::args()->get(1).".php";
- if (file_exists($widgetfile)){
- require_once($widgetfile);
- } else {
- if(DI::args()->get(2)=="cb"){header('HTTP/1.0 400 Bad Request'); exit();}
- return;
- }
-
-
-
-
- //echo "<pre>"; var_dump($a->argv); die();
- if (DI::args()->get(2)=="cb"){
- /*header('Access-Control-Allow-Origin: *');*/
- $o .= call_user_func(DI::args()->get(1).'_widget_content',$a, $conf);
-
- } else {
-
-
- if (isset($_GET['p']) && local_user()==$conf['uid'] ) {
- $o .= "<style>.f9k_widget { float: left;border:1px solid black; }</style>";
- $o .= "<h1>Preview Widget</h1>";
- $o .= '<a href="'.DI::baseUrl()->get().'/settings/addon">'. DI::l10n()->t("Addon Settings") .'</a>';
-
- $o .= "<h4>".call_user_func(DI::args()->get(1).'_widget_name')."</h4>";
- $o .= call_user_func(DI::args()->get(1).'_widget_help');
- $o .= "<br style='clear:left'/><br/>";
- $o .= "<script>";
- } else {
- header("content-type: application/x-javascript");
- }
-
-
-
- $widget_size = call_user_func(DI::args()->get(1).'_widget_size');
-
- $script = file_get_contents(dirname(__file__)."/widgets.js");
- $o .= Renderer::replaceMacros($script, [
- '$entrypoint' => DI::baseUrl()->get()."/widgets/".DI::args()->get(1)."/cb/",
- '$key' => $conf['key'],
- '$widget_id' => 'f9a_'.DI::args()->get(1)."_"._randomAlphaNum(6),
- '$loader' => DI::baseUrl()->get()."/images/rotator.gif",
- '$args' => (isset($_GET['a'])?$_GET['a']:''),
- '$width' => $widget_size[0],
- '$height' => $widget_size[1],
- '$type' => DI::args()->get(1),
- ]);
-
-
- if (isset($_GET['p'])) {
- $wargs = call_user_func(DI::args()->get(1).'_widget_args');
- $jsargs = implode("</em>,<em>", $wargs);
- if ($jsargs!='') $jsargs = "&a=<em>".$jsargs."</em>";
-
- $o .= "</script>
- <br style='clear:left'/><br/>
- <h4>Copy and paste this code</h4>
- <code>"
-
- .htmlspecialchars('<script src="'.DI::baseUrl()->get().'/widgets/'.DI::args()->get(1).'?k='.$conf['key'])
- .$jsargs
- .htmlspecialchars('"></script>')
- ."</code>";
-
-
- return $o;
- }
- }
-
- echo $o;
- exit();
-}