├── uninstall.php
├── update.php
├── boot.php
├── pages
├── index.php
├── help.license.php
├── help.readme.php
├── help.changelog.php
└── config.php
├── package.yml
├── install.php
├── lang
└── de_de.lang
├── LICENSE.md
├── README.md
├── CHANGELOG.md
└── lib
└── rex_email_obfuscator.php
/uninstall.php:
--------------------------------------------------------------------------------
1 | i18n('title'));
4 |
5 | $subpage = rex_be_controller::getCurrentPagePart(2);
6 |
7 | include rex_be_controller::getCurrentPageObject()->getSubPath();
8 |
--------------------------------------------------------------------------------
/pages/help.license.php:
--------------------------------------------------------------------------------
1 | getPath('LICENSE.md'));
3 |
4 | $parsedown = new Parsedown();
5 | $content = $parsedown->text($file);
6 |
7 | $fragment = new rex_fragment();
8 | $fragment->setVar('title', $this->i18n('help_license'));
9 | $fragment->setVar('body', $content, false);
10 |
11 | echo $fragment->parse('core/page/section.php');
12 |
--------------------------------------------------------------------------------
/pages/help.readme.php:
--------------------------------------------------------------------------------
1 | getPath('README.md'));
3 |
4 | $parsedown = new Parsedown();
5 | $content = $parsedown->text($file);
6 |
7 | $fragment = new rex_fragment();
8 | $fragment->setVar('title', $this->i18n('help_readme'));
9 | $fragment->setVar('body', $content, false);
10 |
11 | echo $fragment->parse('core/page/section.php');
12 |
--------------------------------------------------------------------------------
/pages/help.changelog.php:
--------------------------------------------------------------------------------
1 | getPath('CHANGELOG.md'));
3 |
4 | $parsedown = new Parsedown();
5 | $content = $parsedown->text($file);
6 |
7 | $fragment = new rex_fragment();
8 | $fragment->setVar('title', $this->i18n('help_changelog'));
9 | $fragment->setVar('body', $content, false);
10 |
11 | echo $fragment->parse('core/page/section.php');
12 |
--------------------------------------------------------------------------------
/package.yml:
--------------------------------------------------------------------------------
1 | package: email_obfuscator
2 | version: '2.0.0'
3 | author: RexDude
4 | supportpage: http://www.redaxo.org/de/forum/
5 | load: late
6 | page:
7 | title: 'translate:title'
8 | perm: admin[]
9 | icon: rex-icon fa-envelope
10 | subpages:
11 | config: { title: 'translate:config' }
12 | help:
13 | title: 'translate:help'
14 | subpages:
15 | readme: { title: 'translate:help_readme' }
16 | changelog: { title: 'translate:help_changelog' }
17 | license: { title: 'translate:help_license' }
18 | conflicts:
19 | packages:
20 | emailobfuscator: '*'
21 |
--------------------------------------------------------------------------------
/install.php:
--------------------------------------------------------------------------------
1 | hasConfig('javascriptmethod')) {
5 | $this->setConfig('javascriptmethod', 1);
6 | }
7 |
8 | if (!$this->hasConfig('nojavascriptmethod')) {
9 | $this->setConfig('nojavascriptmethod', 0);
10 | }
11 |
12 | if (!$this->hasConfig('noscript_msg')) {
13 | $this->setConfig('noscript_msg', 'Bitte JavaScript aktivieren um die Email-Adresse sichtbar zu machen! / Please activate JavaScript to see email address!');
14 | }
15 |
16 | if (!$this->hasConfig('articles')) {
17 | $this->setConfig('articles');
18 | }
19 |
20 | if (!$this->hasConfig('templates')) {
21 | $this->setConfig('templates');
22 | }
23 |
--------------------------------------------------------------------------------
/lang/de_de.lang:
--------------------------------------------------------------------------------
1 |
2 | email_obfuscator_title = Email Obfuscator
3 | email_obfuscator_main_title = Email Obfuscator
4 | email_obfuscator_help = Hilfe
5 | email_obfuscator_help_readme = Readme
6 | email_obfuscator_help_changelog = Changelog
7 | email_obfuscator_help_license = Lizenz
8 |
9 | email_obfuscator_config = Einstellungen
10 | email_obfuscator_config_save = Einstellungen speichern
11 | email_obfuscator_config_saved = Einstellungen wurden gespeichert!
12 |
13 | email_obfuscator_config_javascriptmethod = JavaScript ROT13 Encryption Methode
14 | email_obfuscator_config_nojavascriptmethod = CSS "display:none" Methode - (siehe Readme für benötigten Style!)
15 | email_obfuscator_config_noscript_msg = Hinweis wenn JavaScript deaktiviert
16 | email_obfuscator_config_articles = Artikel ausschließen
17 | email_obfuscator_config_templates = Templates ausschließen
18 |
19 |
20 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Friends Of REDAXO
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ⚠️ Die Funktionalität dieses Addons wurde in das Addon [emailobfuscator](https://github.com/FriendsOfREDAXO/emailobfuscator) integriert und wird an dieser Stelle nicht länger gepflegt.
2 |
3 |
4 | Email Obfuscator AddOn für REDAXO 5
5 | ===================================
6 |
7 | Durch dieses Addon werden alle Email-Adressen automatisch so verschleiert, dass sie von Spambots nicht mehr erkannt werden können. Dabei ist es egal ob die Email-Adressen sich in einem Template oder einem Block/Modul befinden.
8 |
9 | Email-Adressen können mit oder ohne Anchor-Tag angegeben werden. Die folgenden Bespiele sind also möglich:
10 |
11 | * `foo@gmx.de`
12 | * `Foo's EMail Adresse>`
13 |
14 | Um die Email-Adressen zu schützen, werden die Techniken "CSS display:none" und "ROT13 Encryption" angewendet. Diese können weiter unten ein- oder ausgeschaltet werden. Weitere Informationen zu den Techniken in diesem Artikel: [Nine ways to obfuscate e-mail addresses compared](http://techblog.tilllate.com/2008/07/20/ten-methods-to-obfuscate-e-mail-addresses-compared)
15 |
16 | __Wichtiger Hinweis:__ die CSS Display None Methode benötigt diesen Style: `span.hide { display: none; }`
17 |
18 | Features
19 | --------
20 |
21 | * Vollautomatisches Verschleiern der Email-Adressen mit bewährten Algorithmen
22 | * Sowohl nackte als auch Email-Adressen in einem A-Tag werden berücksichtigt
23 | * Mehrere Verschleierungs-Methoden zur Auswahl
24 |
25 | Hinweise
26 | --------
27 |
28 | * Getestet mit REDAXO 5.2
29 | * Addon-Ordner lautet: `email_obfuscator`
30 | * Die CSS Methode benötigt diesen Eintrag in Ihrem Stylesheet: `span.hide { display: none; }`
31 |
32 | Changelog
33 | ---------
34 |
35 | siehe CHANGELOG.md
36 |
37 | Lizenz
38 | ------
39 |
40 | MIT, siehe LICENSE.md
41 |
42 | Credits
43 | -------
44 |
45 | * Danke an WordPress für die `make_clickable()` Funktion :)
46 | * Danke an [Xong](https://github.com/xong) für die Hilfe zu RegEx
47 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | Email Obfuscator - Changelog
2 | ============================
3 |
4 | ### Version 2.0.0 - 15. März 2017
5 |
6 | * Portierung zu REDAXO 5
7 | * Templates und Artikel können vom Verschlüsseln ausgeschlossen werden
8 | * Attribute in den a-Tags bleiben nun erhalten
9 | * Bei leerer NoScript Message wird die Ausgabe von dem `noscript` Tag unterdrückt
10 |
11 | ### Version 1.6.0 - 25. Oktober 2014
12 |
13 | * Updatefähigkeit für REDAXO 4.6 hergestellt. Einstellungen werden jetzt im Data-Ordner gespeichert.
14 |
15 | ### Version 1.5.1 - 23. August 2014
16 |
17 | * Addon ab 1.5.1 nur noch für REDAXO 4.5+
18 | * Späte OUTPUT_FILTER Registrierung, so dass andere Addons (opf_lang, String Table etc.) vorab Ersetzungen durchführen können, thx@ceekay82
19 |
20 | ### Version 1.5.0 - 25. Oktober 2013
21 |
22 | * Fixed: Email-Adressen wurden innerhalb Input-Tags fälschlicherweise verschleiert
23 | * Fixed: EMail-Adressen mit z.B. `.co.uk` Endung wurden nicht korrekt verschleiert
24 | * Man kann in der `config.inc.php` den Hinweistext ändern, der erscheint wenn JavaScript deaktiviert ist.
25 | * Man kann in der `config.inc.php` für die NoScript Meldung ein Key für das String Table Addon angeben (so mehrsprachiger Hinweistext möglich).
26 |
27 | ### Version 1.3.0 - 22. September 2013
28 |
29 | * Fixed #7: Manche nackten Email-Adressen wurden nicht ersetzt insbesondere wenn diese zwischen einem HTML-Tag standen (z.B. ` foo@bar.de