if ($BracketImg && $useImage && &ImageAllowed($text)) {
if ( $text =~ /$UploadPattern/ ) { $text = '<img src="' . $UploadUrl. '/' . &GetUploadURL($1) . '">'; } else { $text = "<img src=\"$text\">"; } } else { $text = "[$text]"; } return &StoreRaw("<a href=\"$url\">$text</a>"); }
$imagePrefixes = 'http:|https:|ftp:';
$imagePrefixes = 'http:|https:|ftp:|upload:';
if ($BracketImg && $useImage && &ImageAllowed($text)) {
if ( $text =~ /$UploadPattern/ ) { $text = '<img src="' . $UploadUrl. '/' . &GetUploadURL($1) . '">'; } else { $text = "<img src=\"$text\">"; } } else { $text = "[$text]"; } return &StoreRaw("<a href=\"$url\">$text</a>"); }
sub GetUploadURL { my ($url) = @_; return &StoreRaw($url); }Hope this helps anyone, --UdoGüngerich, 2005-08-22