<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://fbb.just4test.de/extern.php?action=feed&amp;tid=143&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / E-Mail verschlüsseln]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=143</link>
		<description><![CDATA[Die aktuellsten Beiträge in E-Mail verschlüsseln.]]></description>
		<lastBuildDate>Fri, 23 May 2014 19:04:33 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: E-Mail verschlüsseln]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=31097#p31097</link>
			<description><![CDATA[<p>Du kannst die Funktion in einen Modifier umbauen:</p><p>modifier.mailsecure.php --&gt; ins ./plugin Verzeichnis</p><div class="codebox"><pre class="vscroll"><code>&lt;?php
function smarty_modifier_mailsecure($tpl_source)
{
   return encrypt_content_email($tpl_source);
}

function fm_cryptmail($email){
	$n = 0;
	$r = &#039;&#039;;
	$s = $email;

	for($i=0; $i &lt; strlen($s); $i++){
		$n = ord($s[$i]);
		 
		if($n &gt;= 8364){
			$n = 128;
		}
		$r .= chr($n+1);
	}

	return $r;
}

function encrypt_content_email($content) {

    // Attribute, ggf. aendern
    $atzeichen = &quot;(at)&quot;; // Ersatzzeichen fuer das @    
    
    // hier via regEx alle email-adressen heraussuchen
    preg_match_all(&quot;/(mailto:)?([a-z0-9_-]+(\.[a-z0-9_-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+([a-z]{2,4}|museum))/im&quot;,$content,$matches);
        
    // hier jetzt alle gefundenen durchgehen und ersetzen
    if ( isset ($matches[0][0]) and $matches[0][0] != &#039;&#039;) {
        for ($m = 0; $m &lt; count ($matches[0]); $m++) {
            $mystring = $matches[0][$m];
            $findme  = &#039;mailto:&#039;;
            $pos = strpos($mystring, $findme);
            $encrypted_email_address = &quot;&quot;; 
            if ($pos === false) {
                $encrypted_email_address .= str_replace(&quot;@&quot;,$atzeichen,$mystring);
            } else {
                $encrypted_email_address .= &quot;javascript:linkTo_UnCryptMailto(&#039;{literal}&quot;.fm_cryptmail($mystring).&quot;{/literal}&#039;)&quot;;
            }
            $content = str_replace($matches[0][$m],$encrypted_email_address,$content);
        }
    }
    return $content;
}</code></pre></div><p>Der Aufruf erfolgt wie folgt:</p><div class="codebox"><pre><code>{$entry-&gt;content|mailsecure}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (nockenfell)]]></author>
			<pubDate>Fri, 23 May 2014 19:04:33 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=31097#p31097</guid>
		</item>
		<item>
			<title><![CDATA[Re: E-Mail verschlüsseln]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=31093#p31093</link>
			<description><![CDATA[<p>@nockenfell<br />Lasst sich Deine Lösung auch für News-/CGBlog-Artikel realisieren? Hier ist sie für Varianten, die den Seiten-Content ersetzen, leider unwirksam. Habe auch schon probiert, das JS ganz oben ins News-Template zu packen anstatt ins Seitentemplate.</p>]]></description>
			<author><![CDATA[dummy@example.com (COR9)]]></author>
			<pubDate>Fri, 23 May 2014 12:43:03 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=31093#p31093</guid>
		</item>
		<item>
			<title><![CDATA[Re: E-Mail verschlüsseln]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=30374#p30374</link>
			<description><![CDATA[<p>Prima, nun läuft es.&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/smile.png" alt="smile" /> </p><p>Dankeschön für Deine Hilfe.</p><p>LG. Ampelmann</p>]]></description>
			<author><![CDATA[dummy@example.com (ampelmann)]]></author>
			<pubDate>Fri, 28 Mar 2014 22:50:54 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=30374#p30374</guid>
		</item>
		<item>
			<title><![CDATA[Re: E-Mail verschlüsseln]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=30365#p30365</link>
			<description><![CDATA[<p>Danke für die Präzisierung: Hier das aktualisierte Plugin</p><p>Datei prefilter.mailsecure.php (ab CMSMS 1.11):</p><div class="codebox"><pre class="vscroll"><code>&lt;?php

function smarty_prefilter_mailsecure($tpl_source, &amp;$smarty)
{
   return encrypt_content_email($tpl_source);
}

function fm_cryptmail($email){
	$n = 0;
	$r = &#039;&#039;;
	$s = $email;

	for($i=0; $i &lt; strlen($s); $i++){
		$n = ord($s[$i]);
		 
		if($n &gt;= 8364){
			$n = 128;
		}
		$r .= chr($n+1);
	}

	return $r;
}

function encrypt_content_email($content) {

    // Attribute, ggf. aendern
    $atzeichen = &quot;(at)&quot;; // Ersatzzeichen fuer das @    
    
    // hier via regEx alle email-adressen heraussuchen
    preg_match_all(&quot;/(mailto:)?([a-z0-9_-]+(\.[a-z0-9_-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+([a-z]{2,4}|museum))/im&quot;,$content,$matches);
        
    // hier jetzt alle gefundenen durchgehen und ersetzen
    if ( isset ($matches[0][0]) and $matches[0][0] != &#039;&#039;) {
        for ($m = 0; $m &lt; count ($matches[0]); $m++) {
            $mystring = $matches[0][$m];
            $findme  = &#039;mailto:&#039;;
            $pos = strpos($mystring, $findme);
            $encrypted_email_address = &quot;&quot;; 
            if ($pos === false) {
                $encrypted_email_address .= str_replace(&quot;@&quot;,$atzeichen,$mystring);
            } else {
                $encrypted_email_address .= &quot;javascript:linkTo_UnCryptMailto(&#039;{literal}&quot;.fm_cryptmail($mystring).&quot;{/literal}&#039;)&quot;;
            }
            $content = str_replace($matches[0][$m],$encrypted_email_address,$content);
        }
    }
    return $content;
}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (nockenfell)]]></author>
			<pubDate>Fri, 28 Mar 2014 07:44:47 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=30365#p30365</guid>
		</item>
		<item>
			<title><![CDATA[Re: E-Mail verschlüsseln]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=30363#p30363</link>
			<description><![CDATA[<div class="quotebox"><cite>nockenfell schrieb:</cite><blockquote><div><p>Kurz geänderte Funktion des Smarty Plugins:</p><p>...<br />Kannst du das mal testen?</p></div></blockquote></div><p>Habe ich gemacht aber keine Verbesserung. </p><p>Hilft das weiter? Der Fehler kommt nicht bei Umwandlung einer Mailadresse wie xyz(at)irgendwo.com sondern nur bei der Umwandlung des href-Elements:</p><p>Error: at line 709 in file pfadname/content/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php</p><div class="codebox"><pre><code>&lt;a href=&quot;javascript:linkTo_UnCryptMailto(&#039;&quot;, expected one of: &quot;}&quot; , &quot; &quot; , ATTR</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (ampelmann)]]></author>
			<pubDate>Thu, 27 Mar 2014 20:26:14 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=30363#p30363</guid>
		</item>
		<item>
			<title><![CDATA[Re: E-Mail verschlüsseln]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=30355#p30355</link>
			<description><![CDATA[<p>Kurz geänderte Funktion des Smarty Plugins:</p><div class="codebox"><pre class="vscroll"><code>&lt;?php


function smarty_prefilter_mailsecure($tpl_source, &amp;$smarty)
{
   return encrypt_content_email($tpl_source);
}

function fm_cryptmail($email){
	$n = 0;
	$r = &#039;&#039;;
	$s = $email;

	for($i=0; $i &lt; strlen($s); $i++){
		$n = ord($s[$i]);
		 
		if($n &gt;= 8364){
			$n = 128;
		}
		$r .= chr($n+1);
	}

	return $r;
}

function encrypt_content_email($content) {

    // Attribute, ggf. aendern
    $atzeichen = &quot;(at)&quot;; // Ersatzzeichen fuer das @    
    
    // hier via regEx alle email-adressen heraussuchen
    preg_match_all(&quot;/(mailto:)?([a-z0-9_-]+(\.[a-z0-9_-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+([a-z]{2,4}|museum))/im&quot;,$content,$matches);
        
    // hier jetzt alle gefundenen durchgehen und ersetzen
    if ( isset ($matches[0][0]) and $matches[0][0] != &#039;&#039;) {
        for ($m = 0; $m &lt; count ($matches[0]); $m++) {
            $mystring = $matches[0][$m];
            $findme  = &#039;mailto:&#039;;
            $pos = strpos($mystring, $findme);
            $encrypted_email_address = &quot;&quot;; 
            if ($pos === false) {
                $encrypted_email_address .= str_replace(&quot;@&quot;,$atzeichen,$mystring);
            } else {
                $encrypted_email_address .= &quot;javascript:linkTo_UnCryptMailto(&#039;&quot;.fm_cryptmail($mystring).&quot;&#039;)&quot;;
            }
            $content = str_replace($matches[0][$m],$encrypted_email_address,$content);
        }
    }
    return $content;
}</code></pre></div><p>Kannst du das mal testen?</p>]]></description>
			<author><![CDATA[dummy@example.com (nockenfell)]]></author>
			<pubDate>Wed, 26 Mar 2014 16:23:44 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=30355#p30355</guid>
		</item>
		<item>
			<title><![CDATA[Re: E-Mail verschlüsseln]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=30346#p30346</link>
			<description><![CDATA[<div class="quotebox"><cite>nockenfell schrieb:</cite><blockquote><div><p>Ich nutze dazu jeweils einen Prefilter:</p><p>.....</p><p>Der Vorteil dieser Lösung ist, dass die E-Mailadressen automatisch maskiert werden und der Benutzer bei der Eingabe im Backend keine kryptischen Smarty Funktionen für E-Mailadressen verwenden muss</p></div></blockquote></div><p>@Nockenfell:&#160; Das Ding funktioniert bei mir nicht, wenn ich an letzer Stelle der Mailadresse ein z habe z.b. Holz@hotmail.com. Kannst Du das bei Dir nachvollziehen?</p><p>LG.<br />Ampelmann</p>]]></description>
			<author><![CDATA[dummy@example.com (ampelmann)]]></author>
			<pubDate>Tue, 25 Mar 2014 22:34:58 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=30346#p30346</guid>
		</item>
		<item>
			<title><![CDATA[Re: E-Mail verschlüsseln]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21482#p21482</link>
			<description><![CDATA[<p>Habs jetzt so gelöst:</p><p>a) Im &quot;Benutzerdefinierte Listenfeld&quot; des TinyMCE folgende Zeilen ergänzen:</p><p>---|---<br />Email schützen|{mailto address=&quot;|&quot; encode=&quot;hex&quot;}</p><p>b) Mail-Adresse eingeben und markieren</p><p>c) Auf den Eintrag im Listenfeld klicken</p><p>Fertsch ...</p><p>Servus,<br />Alex</p>]]></description>
			<author><![CDATA[dummy@example.com (faglork)]]></author>
			<pubDate>Wed, 17 Oct 2012 13:54:06 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=21482#p21482</guid>
		</item>
		<item>
			<title><![CDATA[Re: E-Mail verschlüsseln]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=1018#p1018</link>
			<description><![CDATA[<p>Ich nutze dazu jeweils einen Prefilter:</p><p>Datei prefilter.mailsecure.php (ab CMSMS 1.11):</p><div class="codebox"><pre class="vscroll"><code>&lt;?php


function smarty_prefilter_mailsecure($tpl_source, &amp;$smarty)
{
   return encrypt_content_email($tpl_source);
}

function fm_cryptmail($email){
	$n = 0;
	$r = &#039;&#039;;
	$s = $email;

	for($i=0; $i &lt; strlen($s); $i++){
		$n = ord($s[$i]);
		 
		if($n &gt;= 8364){
			$n = 128;
		}
		$r .= chr($n+1);
	}

	return $r;
}

function encrypt_content_email($content) {

    // Attribute, ggf. aendern
    $atzeichen = &quot;(at)&quot;; // Ersatzzeichen fuer das @    
    
    // hier via regEx alle email-adressen heraussuchen
    preg_match_all(&quot;/(mailto:)?([a-z0-9_-]+(\.[a-z0-9_-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+([a-z]{2,4}|museum))/im&quot;,$content,$matches);
        
    // hier jetzt alle gefundenen durchgehen und ersetzen
    if ( isset ($matches[0][0]) and $matches[0][0] != &#039;&#039;) {
        for ($m = 0; $m &lt; count ($matches[0]); $m++) {
            $mystring = $matches[0][$m];
            $findme  = &#039;mailto:&#039;;
            $pos = strpos($mystring, $findme);
            $encrypted_email_address = &quot;&quot;; 
            if ($pos === false) {
                $encrypted_email_address .= str_replace(&quot;@&quot;,$atzeichen,$mystring);
            } else {
                $encrypted_email_address .= &quot;javascript:linkTo_UnCryptMailto(&#039;{literal}&quot;.fm_cryptmail($mystring).&quot;{/literal}&#039;)&quot;;
            }
            $content = str_replace($matches[0][$m],$encrypted_email_address,$content);
        }
    }
    return $content;
}</code></pre></div><p>Diese wird im Plugin-Ordner gespeichert.</p><p>Nun braucht es im Template folgendes JavaScript:</p><div class="codebox"><pre><code>function UnCryptMailto(s)
{
    var n = 0;
    var r = &quot;&quot;;
    for( var i = 0; i &lt; s.length; i++) {
        n = s.charCodeAt( i );
        if( n &gt;= 8364 ) {
            n = 128;
        }
        r += String.fromCharCode( n - 1 );
    }
    return r;
}

function linkTo_UnCryptMailto( s )
{
    location.href=UnCryptMailto( s );
}</code></pre></div><p>Der Vorteil dieser Lösung ist, dass die E-Mailadressen automatisch maskiert werden und der Benutzer bei der Eingabe im Backend keine kryptischen Smarty Funktionen für E-Mailadressen verwenden muss</p><p>Edit 28.3.2014 - Script angepasst</p>]]></description>
			<author><![CDATA[dummy@example.com (nockenfell)]]></author>
			<pubDate>Mon, 20 Dec 2010 20:26:50 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=1018#p1018</guid>
		</item>
		<item>
			<title><![CDATA[Re: E-Mail verschlüsseln]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=1017#p1017</link>
			<description><![CDATA[<p>kannscht auch ein text=&quot;parameter&quot; dazu fügen<br />{mailto address=&quot;anallehexe@t-online.de&quot; encode=&quot;hex&quot; text=&quot;voodoo&quot;}<br />gruss - spike</p>]]></description>
			<author><![CDATA[dummy@example.com (spike)]]></author>
			<pubDate>Mon, 20 Dec 2010 19:55:46 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=1017#p1017</guid>
		</item>
		<item>
			<title><![CDATA[Re: E-Mail verschlüsseln]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=1016#p1016</link>
			<description><![CDATA[<p>Sie auch:<br /><a href="http://www.smarty.net/docsv2/de/language.function.mailto.tpl" rel="nofollow">http://www.smarty.net/docsv2/de/languag … mailto.tpl</a></p>]]></description>
			<author><![CDATA[dummy@example.com (piratos)]]></author>
			<pubDate>Mon, 20 Dec 2010 19:46:20 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=1016#p1016</guid>
		</item>
		<item>
			<title><![CDATA[Re: E-Mail verschlüsseln]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=1014#p1014</link>
			<description><![CDATA[<p>mit {mailto encode=&#039;hex&#039; address=&#039;ich@du.de&#039;} wird die mailadresse &quot;verschlüsselt&quot;.</p><p>Kasimir</p>]]></description>
			<author><![CDATA[dummy@example.com (kasimir)]]></author>
			<pubDate>Mon, 20 Dec 2010 19:31:15 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=1014#p1014</guid>
		</item>
		<item>
			<title><![CDATA[E-Mail verschlüsseln]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=1013#p1013</link>
			<description><![CDATA[<p>Moin moin!</p><p>E-Mail-Adresssen hexadezimal verschlüsseln - gabs da nicht mal ein Tag dafür? Ich find nix in der aktuellen Liste. Und in der Forge gibts nur veraltete Sachen.</p><p>Hat jemand nen Tipp?</p><p>Servus<br />Alex</p>]]></description>
			<author><![CDATA[dummy@example.com (faglork)]]></author>
			<pubDate>Mon, 20 Dec 2010 19:26:05 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=1013#p1013</guid>
		</item>
	</channel>
</rss>
