From e19abd66462bfe3e7340c2912893caaf49b4a7eb Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 5 Oct 2021 05:59:44 +0000 Subject: [PATCH] Moved widgets and remote permissions to the deprecated addons --- remote_permissions/README.md | 8 - remote_permissions/lang/C/messages.po | 60 ------- remote_permissions/lang/ca/strings.php | 14 -- remote_permissions/lang/cs/messages.po | 71 -------- remote_permissions/lang/cs/strings.php | 20 --- remote_permissions/lang/de/messages.po | 65 ------- remote_permissions/lang/de/strings.php | 18 -- remote_permissions/lang/eo/strings.php | 5 - remote_permissions/lang/es/messages.po | 70 -------- remote_permissions/lang/es/strings.php | 20 --- remote_permissions/lang/fi-fi/messages.po | 71 -------- remote_permissions/lang/fi-fi/strings.php | 13 -- remote_permissions/lang/fr/strings.php | 14 -- remote_permissions/lang/hu/messages.po | 62 ------- remote_permissions/lang/hu/strings.php | 18 -- remote_permissions/lang/is/strings.php | 5 - remote_permissions/lang/it/messages.po | 63 ------- remote_permissions/lang/it/strings.php | 18 -- remote_permissions/lang/nb-no/strings.php | 14 -- remote_permissions/lang/nl/messages.po | 70 -------- remote_permissions/lang/nl/strings.php | 12 -- remote_permissions/lang/pl/messages.po | 70 -------- remote_permissions/lang/pl/strings.php | 20 --- remote_permissions/lang/pt-br/strings.php | 14 -- remote_permissions/lang/ro/messages.po | 69 -------- remote_permissions/lang/ro/strings.php | 20 --- remote_permissions/lang/ru/strings.php | 14 -- remote_permissions/lang/sv/strings.php | 5 - remote_permissions/lang/zh-cn/strings.php | 14 -- remote_permissions/remote_permissions.php | 205 ---------------------- remote_permissions/settings.css | 16 -- remote_permissions/templates/admin.tpl | 3 - remote_permissions/templates/settings.tpl | 8 - widgets/lang/C/messages.po | 57 ------ widgets/lang/ca/strings.php | 10 -- widgets/lang/cs/strings.php | 10 -- widgets/lang/de/strings.php | 10 -- widgets/lang/eo/strings.php | 10 -- widgets/lang/es/strings.php | 10 -- widgets/lang/fr/strings.php | 10 -- widgets/lang/is/strings.php | 10 -- widgets/lang/it/strings.php | 10 -- widgets/lang/nb-no/strings.php | 10 -- widgets/lang/pl/strings.php | 10 -- widgets/lang/pt-br/strings.php | 10 -- widgets/lang/ru/strings.php | 10 -- widgets/lang/sv/strings.php | 3 - widgets/lang/zh-cn/strings.php | 10 -- widgets/templates/settings.tpl | 19 -- widgets/templates/widget_like.tpl | 5 - widgets/widget_friendheader.php | 49 ------ widgets/widget_friends.php | 48 ----- widgets/widget_like.php | 73 -------- widgets/widgets.js | 37 ---- widgets/widgets.php | 172 ------------------ 55 files changed, 1762 deletions(-) delete mode 100644 remote_permissions/README.md delete mode 100644 remote_permissions/lang/C/messages.po delete mode 100644 remote_permissions/lang/ca/strings.php delete mode 100644 remote_permissions/lang/cs/messages.po delete mode 100644 remote_permissions/lang/cs/strings.php delete mode 100644 remote_permissions/lang/de/messages.po delete mode 100644 remote_permissions/lang/de/strings.php delete mode 100644 remote_permissions/lang/eo/strings.php delete mode 100644 remote_permissions/lang/es/messages.po delete mode 100644 remote_permissions/lang/es/strings.php delete mode 100644 remote_permissions/lang/fi-fi/messages.po delete mode 100644 remote_permissions/lang/fi-fi/strings.php delete mode 100644 remote_permissions/lang/fr/strings.php delete mode 100644 remote_permissions/lang/hu/messages.po delete mode 100644 remote_permissions/lang/hu/strings.php delete mode 100644 remote_permissions/lang/is/strings.php delete mode 100644 remote_permissions/lang/it/messages.po delete mode 100644 remote_permissions/lang/it/strings.php delete mode 100644 remote_permissions/lang/nb-no/strings.php delete mode 100644 remote_permissions/lang/nl/messages.po delete mode 100644 remote_permissions/lang/nl/strings.php delete mode 100644 remote_permissions/lang/pl/messages.po delete mode 100644 remote_permissions/lang/pl/strings.php delete mode 100644 remote_permissions/lang/pt-br/strings.php delete mode 100644 remote_permissions/lang/ro/messages.po delete mode 100644 remote_permissions/lang/ro/strings.php delete mode 100644 remote_permissions/lang/ru/strings.php delete mode 100644 remote_permissions/lang/sv/strings.php delete mode 100644 remote_permissions/lang/zh-cn/strings.php delete mode 100644 remote_permissions/remote_permissions.php delete mode 100644 remote_permissions/settings.css delete mode 100644 remote_permissions/templates/admin.tpl delete mode 100644 remote_permissions/templates/settings.tpl delete mode 100644 widgets/lang/C/messages.po delete mode 100644 widgets/lang/ca/strings.php delete mode 100644 widgets/lang/cs/strings.php delete mode 100644 widgets/lang/de/strings.php delete mode 100644 widgets/lang/eo/strings.php delete mode 100644 widgets/lang/es/strings.php delete mode 100644 widgets/lang/fr/strings.php delete mode 100644 widgets/lang/is/strings.php delete mode 100644 widgets/lang/it/strings.php delete mode 100644 widgets/lang/nb-no/strings.php delete mode 100644 widgets/lang/pl/strings.php delete mode 100644 widgets/lang/pt-br/strings.php delete mode 100644 widgets/lang/ru/strings.php delete mode 100644 widgets/lang/sv/strings.php delete mode 100644 widgets/lang/zh-cn/strings.php delete mode 100644 widgets/templates/settings.tpl delete mode 100644 widgets/templates/widget_like.tpl delete mode 100644 widgets/widget_friendheader.php delete mode 100644 widgets/widget_friends.php delete mode 100644 widgets/widget_like.php delete mode 100644 widgets/widgets.js delete mode 100644 widgets/widgets.php diff --git a/remote_permissions/README.md b/remote_permissions/README.md deleted file mode 100644 index 33e106ce..00000000 --- a/remote_permissions/README.md +++ /dev/null @@ -1,8 +0,0 @@ -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 diff --git a/remote_permissions/lang/C/messages.po b/remote_permissions/lang/C/messages.po deleted file mode 100644 index 093751a5..00000000 --- a/remote_permissions/lang/C/messages.po +++ /dev/null @@ -1,60 +0,0 @@ -# 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 \n" -"Language-Team: LANGUAGE \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 "" diff --git a/remote_permissions/lang/ca/strings.php b/remote_permissions/lang/ca/strings.php deleted file mode 100644 index 0a05b9d7..00000000 --- a/remote_permissions/lang/ca/strings.php +++ /dev/null @@ -1,14 +0,0 @@ -strings["Remote Permissions Settings"] = ""; -$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = ""; -$a->strings["Submit"] = "Enviar"; -$a->strings["Remote Permissions settings updated."] = ""; -$a->strings["Visible to:"] = "Visible per a:"; -$a->strings["Visible to"] = ""; -$a->strings["may only be a partial list"] = ""; -$a->strings["Global"] = ""; -$a->strings["The posts of every user on this server show the post recipients"] = ""; -$a->strings["Individual"] = ""; -$a->strings["Each user chooses whether his/her posts show the post recipients"] = ""; -$a->strings["Settings updated."] = "Ajustos actualitzats."; diff --git a/remote_permissions/lang/cs/messages.po b/remote_permissions/lang/cs/messages.po deleted file mode 100644 index 45cc232e..00000000 --- a/remote_permissions/lang/cs/messages.po +++ /dev/null @@ -1,71 +0,0 @@ -# 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 , 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." diff --git a/remote_permissions/lang/cs/strings.php b/remote_permissions/lang/cs/strings.php deleted file mode 100644 index 978873da..00000000 --- a/remote_permissions/lang/cs/strings.php +++ /dev/null @@ -1,20 +0,0 @@ -= 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."; diff --git a/remote_permissions/lang/de/messages.po b/remote_permissions/lang/de/messages.po deleted file mode 100644 index 9021ceb9..00000000 --- a/remote_permissions/lang/de/messages.po +++ /dev/null @@ -1,65 +0,0 @@ -# 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 , 2021 -# Tobias Diekershoff , 2014-2015 -# Ulf Rompe , 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 \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" diff --git a/remote_permissions/lang/de/strings.php b/remote_permissions/lang/de/strings.php deleted file mode 100644 index 8d8512f5..00000000 --- a/remote_permissions/lang/de/strings.php +++ /dev/null @@ -1,18 +0,0 @@ -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"; diff --git a/remote_permissions/lang/eo/strings.php b/remote_permissions/lang/eo/strings.php deleted file mode 100644 index 1e7ba04e..00000000 --- a/remote_permissions/lang/eo/strings.php +++ /dev/null @@ -1,5 +0,0 @@ -strings["Submit"] = "Sendi"; -$a->strings["Visible to:"] = "Videbla al:"; -$a->strings["Settings updated."] = "Agordoj ĝisdatigita."; diff --git a/remote_permissions/lang/es/messages.po b/remote_permissions/lang/es/messages.po deleted file mode 100644 index a47fb575..00000000 --- a/remote_permissions/lang/es/messages.po +++ /dev/null @@ -1,70 +0,0 @@ -# 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." diff --git a/remote_permissions/lang/es/strings.php b/remote_permissions/lang/es/strings.php deleted file mode 100644 index 1168b107..00000000 --- a/remote_permissions/lang/es/strings.php +++ /dev/null @@ -1,20 +0,0 @@ -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."; diff --git a/remote_permissions/lang/fi-fi/messages.po b/remote_permissions/lang/fi-fi/messages.po deleted file mode 100644 index df0f7795..00000000 --- a/remote_permissions/lang/fi-fi/messages.po +++ /dev/null @@ -1,71 +0,0 @@ -# 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." diff --git a/remote_permissions/lang/fi-fi/strings.php b/remote_permissions/lang/fi-fi/strings.php deleted file mode 100644 index 1bafb773..00000000 --- a/remote_permissions/lang/fi-fi/strings.php +++ /dev/null @@ -1,13 +0,0 @@ -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."; diff --git a/remote_permissions/lang/fr/strings.php b/remote_permissions/lang/fr/strings.php deleted file mode 100644 index e9f6f46a..00000000 --- a/remote_permissions/lang/fr/strings.php +++ /dev/null @@ -1,14 +0,0 @@ -strings["Remote Permissions Settings"] = "Permissions distantes"; -$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"; -$a->strings["Submit"] = "Envoyer"; -$a->strings["Remote Permissions settings updated."] = "Permissions distantes mises-à-jour."; -$a->strings["Visible to:"] = "Visible par:"; -$a->strings["Visible to"] = "Visibilité"; -$a->strings["may only be a partial list"] = "peut être une liste partielle"; -$a->strings["Global"] = "Global"; -$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"; -$a->strings["Individual"] = "Individuel"; -$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"; -$a->strings["Settings updated."] = "Réglages mis à jour."; diff --git a/remote_permissions/lang/hu/messages.po b/remote_permissions/lang/hu/messages.po deleted file mode 100644 index 08e1d405..00000000 --- a/remote_permissions/lang/hu/messages.po +++ /dev/null @@ -1,62 +0,0 @@ -# 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" diff --git a/remote_permissions/lang/hu/strings.php b/remote_permissions/lang/hu/strings.php deleted file mode 100644 index e3621fb6..00000000 --- a/remote_permissions/lang/hu/strings.php +++ /dev/null @@ -1,18 +0,0 @@ -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"; diff --git a/remote_permissions/lang/is/strings.php b/remote_permissions/lang/is/strings.php deleted file mode 100644 index f89368f7..00000000 --- a/remote_permissions/lang/is/strings.php +++ /dev/null @@ -1,5 +0,0 @@ -strings["Submit"] = "Senda inn"; -$a->strings["Visible to:"] = "Sýnilegt eftirfarandi:"; -$a->strings["Settings updated."] = "Stillingar uppfærðar"; diff --git a/remote_permissions/lang/it/messages.po b/remote_permissions/lang/it/messages.po deleted file mode 100644 index 137785bf..00000000 --- a/remote_permissions/lang/it/messages.po +++ /dev/null @@ -1,63 +0,0 @@ -# ADDON remote_permissions -# Copyright (C) -# This file is distributed under the same license as the Friendica remote_permissions addon package. -# -# -# Translators: -# fabrixxm , 2014-2015 -# Sylke Vicious , 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 \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" diff --git a/remote_permissions/lang/it/strings.php b/remote_permissions/lang/it/strings.php deleted file mode 100644 index 6d5c1e8c..00000000 --- a/remote_permissions/lang/it/strings.php +++ /dev/null @@ -1,18 +0,0 @@ -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"; diff --git a/remote_permissions/lang/nb-no/strings.php b/remote_permissions/lang/nb-no/strings.php deleted file mode 100644 index 1e141776..00000000 --- a/remote_permissions/lang/nb-no/strings.php +++ /dev/null @@ -1,14 +0,0 @@ -strings["Remote Permissions Settings"] = ""; -$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = ""; -$a->strings["Submit"] = "Lagre"; -$a->strings["Remote Permissions settings updated."] = ""; -$a->strings["Visible to:"] = "Synlig for:"; -$a->strings["Visible to"] = ""; -$a->strings["may only be a partial list"] = ""; -$a->strings["Global"] = ""; -$a->strings["The posts of every user on this server show the post recipients"] = ""; -$a->strings["Individual"] = ""; -$a->strings["Each user chooses whether his/her posts show the post recipients"] = ""; -$a->strings["Settings updated."] = "Innstillinger oppdatert."; diff --git a/remote_permissions/lang/nl/messages.po b/remote_permissions/lang/nl/messages.po deleted file mode 100644 index f2f30e03..00000000 --- a/remote_permissions/lang/nl/messages.po +++ /dev/null @@ -1,70 +0,0 @@ -# ADDON remote_permissions -# Copyright (C) -# This file is distributed under the same license as the Friendica remote_permissions addon package. -# -# -# Translators: -# Jeroen De Meerleer , 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 \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" diff --git a/remote_permissions/lang/nl/strings.php b/remote_permissions/lang/nl/strings.php deleted file mode 100644 index 2cb76c0d..00000000 --- a/remote_permissions/lang/nl/strings.php +++ /dev/null @@ -1,12 +0,0 @@ -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"; diff --git a/remote_permissions/lang/pl/messages.po b/remote_permissions/lang/pl/messages.po deleted file mode 100644 index fb68a7cd..00000000 --- a/remote_permissions/lang/pl/messages.po +++ /dev/null @@ -1,70 +0,0 @@ -# ADDON remote_permissions -# Copyright (C) -# This file is distributed under the same license as the Friendica remote_permissions addon package. -# -# -# Translators: -# Waldemar Stoczkowski , 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 \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." diff --git a/remote_permissions/lang/pl/strings.php b/remote_permissions/lang/pl/strings.php deleted file mode 100644 index cd18169e..00000000 --- a/remote_permissions/lang/pl/strings.php +++ /dev/null @@ -1,20 +0,0 @@ -=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."; diff --git a/remote_permissions/lang/pt-br/strings.php b/remote_permissions/lang/pt-br/strings.php deleted file mode 100644 index 5f2c03dc..00000000 --- a/remote_permissions/lang/pt-br/strings.php +++ /dev/null @@ -1,14 +0,0 @@ -strings["Remote Permissions Settings"] = ""; -$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = ""; -$a->strings["Submit"] = "Enviar"; -$a->strings["Remote Permissions settings updated."] = ""; -$a->strings["Visible to:"] = "Visível para:"; -$a->strings["Visible to"] = ""; -$a->strings["may only be a partial list"] = ""; -$a->strings["Global"] = ""; -$a->strings["The posts of every user on this server show the post recipients"] = ""; -$a->strings["Individual"] = ""; -$a->strings["Each user chooses whether his/her posts show the post recipients"] = ""; -$a->strings["Settings updated."] = "As configurações foram atualizadas."; diff --git a/remote_permissions/lang/ro/messages.po b/remote_permissions/lang/ro/messages.po deleted file mode 100644 index 27b7e040..00000000 --- a/remote_permissions/lang/ro/messages.po +++ /dev/null @@ -1,69 +0,0 @@ -# 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 \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." diff --git a/remote_permissions/lang/ro/strings.php b/remote_permissions/lang/ro/strings.php deleted file mode 100644 index bb5ac0e4..00000000 --- a/remote_permissions/lang/ro/strings.php +++ /dev/null @@ -1,20 +0,0 @@ -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."; diff --git a/remote_permissions/lang/ru/strings.php b/remote_permissions/lang/ru/strings.php deleted file mode 100644 index d43d61ea..00000000 --- a/remote_permissions/lang/ru/strings.php +++ /dev/null @@ -1,14 +0,0 @@ -strings["Remote Permissions Settings"] = ""; -$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = ""; -$a->strings["Submit"] = "Подтвердить"; -$a->strings["Remote Permissions settings updated."] = ""; -$a->strings["Visible to:"] = "Кто может видеть:"; -$a->strings["Visible to"] = ""; -$a->strings["may only be a partial list"] = ""; -$a->strings["Global"] = ""; -$a->strings["The posts of every user on this server show the post recipients"] = ""; -$a->strings["Individual"] = ""; -$a->strings["Each user chooses whether his/her posts show the post recipients"] = ""; -$a->strings["Settings updated."] = "Настройки обновлены."; diff --git a/remote_permissions/lang/sv/strings.php b/remote_permissions/lang/sv/strings.php deleted file mode 100644 index dbec1ace..00000000 --- a/remote_permissions/lang/sv/strings.php +++ /dev/null @@ -1,5 +0,0 @@ -strings["Submit"] = "Spara"; -$a->strings["Visible to:"] = "Synlig för:"; -$a->strings["Settings updated."] = "Inställningarna har uppdaterats."; diff --git a/remote_permissions/lang/zh-cn/strings.php b/remote_permissions/lang/zh-cn/strings.php deleted file mode 100644 index 68a0afe8..00000000 --- a/remote_permissions/lang/zh-cn/strings.php +++ /dev/null @@ -1,14 +0,0 @@ -strings["Remote Permissions Settings"] = "对外批准设置"; -$a->strings["Allow recipients of your private posts to see the other recipients of the posts"] = "允许您私人文章接受者看别接受者。"; -$a->strings["Submit"] = "提交"; -$a->strings["Remote Permissions settings updated."] = "对外批准设置更新了。"; -$a->strings["Visible to:"] = "可见给:"; -$a->strings["Visible to"] = "可见的给"; -$a->strings["may only be a partial list"] = "可能部分的单"; -$a->strings["Global"] = "综合"; -$a->strings["The posts of every user on this server show the post recipients"] = "这网站所有用户的文章表示接受者"; -$a->strings["Individual"] = "一个人的"; -$a->strings["Each user chooses whether his/her posts show the post recipients"] = "各用户选择他问上是否表示接受者"; -$a->strings["Settings updated."] = "设置跟新了"; diff --git a/remote_permissions/remote_permissions.php b/remote_permissions/remote_permissions.php deleted file mode 100644 index 6fe75f16..00000000 --- a/remote_permissions/remote_permissions.php +++ /dev/null @@ -1,205 +0,0 @@ - - * 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'] .= '' . "\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:') . '
'; - $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') . '):
'; - - 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)); -} diff --git a/remote_permissions/settings.css b/remote_permissions/settings.css deleted file mode 100644 index ef6051d2..00000000 --- a/remote_permissions/settings.css +++ /dev/null @@ -1,16 +0,0 @@ - - - -#remote-perms-label { - float: left; - width: 200px; - margin-bottom: 25px; - margin-right: 20px; - text-align: justify; -} - -#remote-perms { - float: left; -} - - diff --git a/remote_permissions/templates/admin.tpl b/remote_permissions/templates/admin.tpl deleted file mode 100644 index e67afd73..00000000 --- a/remote_permissions/templates/admin.tpl +++ /dev/null @@ -1,3 +0,0 @@ -{{include file="field_radio.tpl" field=$global}} -{{include file="field_radio.tpl" field=$individual}} -
diff --git a/remote_permissions/templates/settings.tpl b/remote_permissions/templates/settings.tpl deleted file mode 100644 index df89a32e..00000000 --- a/remote_permissions/templates/settings.tpl +++ /dev/null @@ -1,8 +0,0 @@ -
-

{{$remote_perms_title}}

-
- - -
-
- diff --git a/widgets/lang/C/messages.po b/widgets/lang/C/messages.po deleted file mode 100644 index 71a30688..00000000 --- a/widgets/lang/C/messages.po +++ /dev/null @@ -1,57 +0,0 @@ -# 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 \n" -"Language-Team: LANGUAGE \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 "" diff --git a/widgets/lang/ca/strings.php b/widgets/lang/ca/strings.php deleted file mode 100644 index fb4bd472..00000000 --- a/widgets/lang/ca/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["%d person likes this"] = "Array"; -$a->strings["%d person doesn't like this"] = "Array"; -$a->strings["Connect on Friendica!"] = "Connectar en Friendica"; -$a->strings["Generate new key"] = "Generar nova clau"; -$a->strings["Widgets key"] = "Ginys clau"; -$a->strings["Widgets available"] = "Ginys disponibles"; -$a->strings["Addon Settings"] = "Ajustos de Addon"; -$a->strings["Get added to this list!"] = "S'afegeixen a aquesta llista!"; diff --git a/widgets/lang/cs/strings.php b/widgets/lang/cs/strings.php deleted file mode 100644 index e6da406d..00000000 --- a/widgets/lang/cs/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["%d person likes this"] = "Array"; -$a->strings["%d person doesn't like this"] = "Array"; -$a->strings["Connect on Friendica!"] = "Připojit na Friendica!"; -$a->strings["Generate new key"] = "Generovat nové klíče"; -$a->strings["Widgets key"] = "Widgety klíč"; -$a->strings["Widgets available"] = "Widgety k dispozici"; -$a->strings["Addon Settings"] = "Nastavení doplňku"; -$a->strings["Get added to this list!"] = "Nechte se přidat do tohoto listu!"; diff --git a/widgets/lang/de/strings.php b/widgets/lang/de/strings.php deleted file mode 100644 index 86e42c68..00000000 --- a/widgets/lang/de/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["%d person likes this"] = "Array"; -$a->strings["%d person doesn't like this"] = "Array"; -$a->strings["Connect on Friendica!"] = "In Friendica verbinden!"; -$a->strings["Generate new key"] = "Neuen Schlüssel erstellen"; -$a->strings["Widgets key"] = "Widgets Schlüssel"; -$a->strings["Widgets available"] = "Verfügbare Widgets"; -$a->strings["Addon Settings"] = "Addon-Einstellungen"; -$a->strings["Get added to this list!"] = "Werde Mitglied dieser Liste"; diff --git a/widgets/lang/eo/strings.php b/widgets/lang/eo/strings.php deleted file mode 100644 index 7585a6bb..00000000 --- a/widgets/lang/eo/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["%d person likes this"] = "Array"; -$a->strings["%d person doesn't like this"] = "Array"; -$a->strings["Connect on Friendica!"] = "Konekti ĉe Friendica!"; -$a->strings["Generate new key"] = "Generi novan ĉifroŝlosilon"; -$a->strings["Widgets key"] = "Ŝlosilo por fenestraĵoj"; -$a->strings["Widgets available"] = "Disponeblaj fenestraĵoj"; -$a->strings["Addon Settings"] = "Kromprogramoagordoj"; -$a->strings["Get added to this list!"] = "Iĝu membro de ĉi tiu listo!"; diff --git a/widgets/lang/es/strings.php b/widgets/lang/es/strings.php deleted file mode 100644 index 736ae769..00000000 --- a/widgets/lang/es/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["%d person likes this"] = "Array"; -$a->strings["%d person doesn't like this"] = "Array"; -$a->strings["Connect on Friendica!"] = "¡Conéctate en Friendica!"; -$a->strings["Generate new key"] = "Generar clave nueva"; -$a->strings["Widgets key"] = "Clave de aplicaciones"; -$a->strings["Widgets available"] = "Aplicaciones disponibles"; -$a->strings["Addon Settings"] = "Configuración de los módulos"; -$a->strings["Get added to this list!"] = "¡Añadido a la lista!"; diff --git a/widgets/lang/fr/strings.php b/widgets/lang/fr/strings.php deleted file mode 100644 index 2a3000e3..00000000 --- a/widgets/lang/fr/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["%d person likes this"] = "Array"; -$a->strings["%d person doesn't like this"] = "Array"; -$a->strings["Connect on Friendica!"] = "Se connecter sur Friendica!"; -$a->strings["Generate new key"] = "Générer une nouvelle clé"; -$a->strings["Widgets key"] = "Clé des widgets"; -$a->strings["Widgets available"] = "Widgets disponibles"; -$a->strings["Addon Settings"] = "Extensions"; -$a->strings["Get added to this list!"] = "Ajoutez-vous à cette liste!"; diff --git a/widgets/lang/is/strings.php b/widgets/lang/is/strings.php deleted file mode 100644 index 7867762d..00000000 --- a/widgets/lang/is/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["%d person likes this"] = "Array"; -$a->strings["%d person doesn't like this"] = "Array"; -$a->strings["Connect on Friendica!"] = "Tengist á Friendica!"; -$a->strings["Generate new key"] = "Búa til nýjan lykil"; -$a->strings["Widgets key"] = "Lykill smáforrits "; -$a->strings["Widgets available"] = "Smáforrit til"; -$a->strings["Addon Settings"] = "Eininga stillingar"; -$a->strings["Get added to this list!"] = "Láta bæta þér við þennan lista!"; diff --git a/widgets/lang/it/strings.php b/widgets/lang/it/strings.php deleted file mode 100644 index 277f1f86..00000000 --- a/widgets/lang/it/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["%d person likes this"] = "Array"; -$a->strings["%d person doesn't like this"] = "Array"; -$a->strings["Connect on Friendica!"] = "Connettiti su Friendica!"; -$a->strings["Generate new key"] = "Genera una nuova chiave"; -$a->strings["Widgets key"] = "Chiave Widget"; -$a->strings["Widgets available"] = "Widget disponibili"; -$a->strings["Addon Settings"] = "Impostazioni addon"; -$a->strings["Get added to this list!"] = "Aggiungiti a questa lista!"; diff --git a/widgets/lang/nb-no/strings.php b/widgets/lang/nb-no/strings.php deleted file mode 100644 index cdcf3f43..00000000 --- a/widgets/lang/nb-no/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["%d person likes this"] = "Array"; -$a->strings["%d person doesn't like this"] = "Array"; -$a->strings["Connect on Friendica!"] = ""; -$a->strings["Generate new key"] = "Lag ny nøkkel"; -$a->strings["Widgets key"] = "Nøkkel til småprogrammer"; -$a->strings["Widgets available"] = "Småprogrammer er tilgjengelige"; -$a->strings["Addon Settings"] = "Tilleggsinnstillinger"; -$a->strings["Get added to this list!"] = ""; diff --git a/widgets/lang/pl/strings.php b/widgets/lang/pl/strings.php deleted file mode 100644 index b36b2cf5..00000000 --- a/widgets/lang/pl/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["%d person likes this"] = "Array"; -$a->strings["%d person doesn't like this"] = "Array"; -$a->strings["Connect on Friendica!"] = "Połączono z Friendica!"; -$a->strings["Generate new key"] = "Stwórz nowy klucz"; -$a->strings["Widgets key"] = ""; -$a->strings["Widgets available"] = "Widgety są dostępne"; -$a->strings["Addon Settings"] = "Ustawienia wtyczki"; -$a->strings["Get added to this list!"] = "Zostań dodany do listy!"; diff --git a/widgets/lang/pt-br/strings.php b/widgets/lang/pt-br/strings.php deleted file mode 100644 index 934ffea3..00000000 --- a/widgets/lang/pt-br/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["%d person likes this"] = "Array"; -$a->strings["%d person doesn't like this"] = "Array"; -$a->strings["Connect on Friendica!"] = "Conecte no Friendica!"; -$a->strings["Generate new key"] = "Gerar nova chave"; -$a->strings["Widgets key"] = "Chave de widgets"; -$a->strings["Widgets available"] = "Widgets disponíveis"; -$a->strings["Addon Settings"] = "Configurações do addon"; -$a->strings["Get added to this list!"] = ""; diff --git a/widgets/lang/ru/strings.php b/widgets/lang/ru/strings.php deleted file mode 100644 index 8d8cf250..00000000 --- a/widgets/lang/ru/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["%d person likes this"] = "Array"; -$a->strings["%d person doesn't like this"] = "Array"; -$a->strings["Connect on Friendica!"] = "Подключены к Friendica!"; -$a->strings["Generate new key"] = "Сгенерировать новый ключ"; -$a->strings["Widgets key"] = "Ключ виджетов"; -$a->strings["Widgets available"] = "Виджеты доступны"; -$a->strings["Addon Settings"] = "Настройки плагина"; -$a->strings["Get added to this list!"] = ""; diff --git a/widgets/lang/sv/strings.php b/widgets/lang/sv/strings.php deleted file mode 100644 index 6b34aac1..00000000 --- a/widgets/lang/sv/strings.php +++ /dev/null @@ -1,3 +0,0 @@ -strings["Addon Settings"] = "Inställningar för insticksprogram"; diff --git a/widgets/lang/zh-cn/strings.php b/widgets/lang/zh-cn/strings.php deleted file mode 100644 index df8fc494..00000000 --- a/widgets/lang/zh-cn/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["%d person likes this"] = "Array"; -$a->strings["%d person doesn't like this"] = "Array"; -$a->strings["Connect on Friendica!"] = "连接在Friendica!"; -$a->strings["Generate new key"] = "造成新钥匙"; -$a->strings["Widgets key"] = "小窗口钥匙"; -$a->strings["Widgets available"] = "可用的小窗口"; -$a->strings["Addon Settings"] = "插件设置"; -$a->strings["Get added to this list!"] = "被在这个单子加入!"; diff --git a/widgets/templates/settings.tpl b/widgets/templates/settings.tpl deleted file mode 100644 index 017fa120..00000000 --- a/widgets/templates/settings.tpl +++ /dev/null @@ -1,19 +0,0 @@ -
-

{{$title}}

-
- - {{$key}} -
- -
- -
- -

{{$widgets_h}}

-
    - {{foreach $widgets as $w}} -
  • {{$w.1}}
  • - {{/foreach}} -
- -
diff --git a/widgets/templates/widget_like.tpl b/widgets/templates/widget_like.tpl deleted file mode 100644 index b99dbda4..00000000 --- a/widgets/templates/widget_like.tpl +++ /dev/null @@ -1,5 +0,0 @@ - -{{$like}} like -{{if $dislike}} -{{$dislike}} dislike -{{/if}} diff --git a/widgets/widget_friendheader.php b/widgets/widget_friendheader.php deleted file mode 100644 index 0f414beb..00000000 --- a/widgets/widget_friendheader.php +++ /dev/null @@ -1,49 +0,0 @@ - - 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;} - - "; - $o .= _abs_url(ContactBlock::getHTML($owner)); - $o .= "". DI::l10n()->t('Get added to this list!') .""; - - return $o; -} diff --git a/widgets/widget_friends.php b/widgets/widget_friends.php deleted file mode 100644 index b04844e0..00000000 --- a/widgets/widget_friends.php +++ /dev/null @@ -1,48 +0,0 @@ - - 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;} - - "; - $o .= _abs_url(ContactBlock::getHTML($owner)); - $o .= "". DI::l10n()->t('Connect on Friendica!') .""; - return $o; -} diff --git a/widgets/widget_like.php b/widgets/widget_like.php deleted file mode 100644 index 9b347d94..00000000 --- a/widgets/widget_like.php +++ /dev/null @@ -1,73 +0,0 @@ -KEY 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; -} diff --git a/widgets/widgets.js b/widgets/widgets.js deleted file mode 100644 index f7b7ac9e..00000000 --- a/widgets/widgets.js +++ /dev/null @@ -1,37 +0,0 @@ -/** - * @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 = ''; - } - -}; - -document.writeln("
"); -document.writeln(""); -document.writeln("
"); -(function() { - f9a_widget_$widget_id.load(); -})(); - diff --git a/widgets/widgets.php b/widgets/widgets.php deleted file mode 100644 index 9366bd56..00000000 --- a/widgets/widgets.php +++ /dev/null @@ -1,172 +0,0 @@ - - * 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 "
"; 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 .= "";
-			$o .= "

Preview Widget

"; - $o .= ''. DI::l10n()->t("Addon Settings") .''; - - $o .= "

".call_user_func(DI::args()->get(1).'_widget_name')."

"; - $o .= call_user_func(DI::args()->get(1).'_widget_help'); - $o .= "

"; - $o .= " -

-

Copy and paste this code

- " - - .htmlspecialchars('') - .""; - - - return $o; - } - } - - echo $o; - exit(); -}