BBCodeBox3

prosilver | subsilver2

Willkommen und Guten Morgen, Guest  Beim nächsten Piep ist es zwischen 8:00 und 9:00 Uhr

It is currently Fri 2. May 2025, 08:16

All times are UTC + 1 hour [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
PostPosted: Sat 12. Sep 2009, 16:35 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

so werden alle Bildlinks, die von "Außen" gepostet werden im Klartext ausgeworfen.
Nur die Domain-eigenen Pics werden angezeigt

Es erfolgt also keinerlei Hotlinking :wink:

Öffne

includes/bbcode.php

Finde

Code:
         case 4:
               if ($user->optionget('viewimg'))
               {
                  $this->bbcode_cache[$bbcode_id] = array(
                     'preg' => array(
                        '#\[img:$uid\](.*?)\[/img:$uid\]#s'      => $this->bbcode_tpl('img', $bbcode_id),
                     )
                  );
               }
               else
               {
                  $this->bbcode_cache[$bbcode_id] = array(
                     'preg' => array(
                        '#\[img:$uid\](.*?)\[/img:$uid\]#s'      => str_replace('$2', '[ img ]', $this->bbcode_tpl('url', $bbcode_id, true)),
                     )
                  );
               }

            break;


Ersetze mit


Code:
         case 4:
               if ($user->optionget('viewimg'))
               {
                  $this->bbcode_cache[$bbcode_id] = array(
                     'preg' => array(
'#\[img:$uid\](http://www.deinforum.de/?.*?)\[/img:$uid\]#s'      => $this->bbcode_tpl('img', $bbcode_id),
'#\[img:$uid\](http://deinforum.de/?.*?)\[/img:$uid\]#s'      => $this->bbcode_tpl('img', $bbcode_id),
                     )
                  );
               }
               else
               {
                  $this->bbcode_cache[$bbcode_id] = array(
                     'preg' => array(
'#\[img:$uid\](http://www.deinforum.de/?.*?)\[/img:$uid\]#s'      => str_replace('$2', '[ img ]', $this->bbcode_tpl('url', $bbcode_id, true)),
'#\[img:$uid\](http://deinforum.de/?.*?)\[/img:$uid\]#s'      => str_replace('$2', '[ img ]', $this->bbcode_tpl('url', $bbcode_id, true)),
                     )
                  );
               }

            break;


http://www.deinforum.de/ ist zu ersetzen


Top
 Profile  
 
PostPosted: Sat 12. Sep 2009, 16:35 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

um die Liste der erlaubten ins-Forum-Hotlinker zu erweitern:

Öffne

includes/bbcode.php

und dupliziere den relevanten Eintrag (s.o.) nach belieben

Code:
         case 4:
               if ($user->optionget('viewimg'))
               {
                  $this->bbcode_cache[$bbcode_id] = array(
                     'preg' => array(
'#\[img:$uid\](http://www.deinforum.de/?.*?)\[/img:$uid\]#s'      => $this->bbcode_tpl('img', $bbcode_id),
'#\[img:$uid\](http://deinforum.de/?.*?)\[/img:$uid\]#s'      => $this->bbcode_tpl('img', $bbcode_id),
'#\[img:$uid\](http://static.flickr.com/?.*?)\[/img:$uid\]#s'      => $this->bbcode_tpl('img', $bbcode_id),   
'#\[img:$uid\](http://img1.imageshack.us/?.*?)\[/img:$uid\]#s'      => $this->bbcode_tpl('img', $bbcode_id),   
                     )
                  );
               }
               else
               {
                  $this->bbcode_cache[$bbcode_id] = array(
                     'preg' => array(
'#\[img:$uid\](http://www.deinforum.de/?.*?)\[/img:$uid\]#s'      => str_replace('$2', '[ img ]', $this->bbcode_tpl('url', $bbcode_id, true)),
'#\[img:$uid\](http://deinforum.de/?.*?)\[/img:$uid\]#s'      => str_replace('$2', '[ img ]', $this->bbcode_tpl('url', $bbcode_id, true)),
'#\[img:$uid\](http://static.flickr.com/?.*?)\[/img:$uid\]#s'      => str_replace('$2', '[ img ]', $this->bbcode_tpl('url', $bbcode_id, true)),
'#\[img:$uid\](http://img1.imageshack.us/?.*?)\[/img:$uid\]#s'      => str_replace('$2', '[ img ]', $this->bbcode_tpl('url', $bbcode_id, true)),   
                     )
                  );
               }

            break;


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
POWERED_BY
[ Time : 0.013s | 16 Queries | GZIP : Off | Board-Version: 3.0.7 PL1 ]