]> git.mxchange.org Git - friendica.git/commitdiff
crypt bbcode tag
authorfriendica <info@friendica.com>
Sun, 12 Aug 2012 11:29:26 +0000 (04:29 -0700)
committerfriendica <info@friendica.com>
Sun, 12 Aug 2012 11:29:26 +0000 (04:29 -0700)
include/bbcode.php

index 85c0059ccd7b8c815cbafdbc9f0de8fb48036b65..08beeddfc174252be6e724012f1ff8faecabefc6 100644 (file)
@@ -323,6 +323,10 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
        $Text = preg_replace("/\[img\](.*?)\[\/img\]/ism", '<img src="$1" alt="' . t('Image/photo') . '" />', $Text);
 
 
+
+       $Text = preg_replace("/\[crypt\](.*?)\[\/crypt\]/ism",'<br/><img src="' .$a->get_baseurl() . '/images/lock_icon.gif" alt="' . t('Encrypted content') . '" title="' . t('Encrypted content') . '" /><br />', $Text);
+
+
        // Try to Oembed
        if ($tryoembed) {
                $Text = preg_replace("/\[video\](.*?\.(ogg|ogv|oga|ogm|webm|mp4))\[\/video\]/ism", '<video src="$1" controls="controls" width="' . $a->videowidth . '" height="' . $a->videoheight . '"><a href="$1">$1</a></video>', $Text);