Zeile 1037 | Zeile 1037 |
---|
$url = "http://".$url; } $fullurl = $url;
|
$url = "http://".$url; } $fullurl = $url;
|
$url = str_replace('&', '&', $url); $name = str_replace('&', '&', $name);
| |
if(!$name) { $name = $url;
|
if(!$name) { $name = $url;
|
}
| }
|
if($name == $url && !empty($this->options['shorten_urls'])) { if(my_strlen($url) > 55)
| if($name == $url && !empty($this->options['shorten_urls'])) { if(my_strlen($url) > 55)
|
Zeile 1067 | Zeile 1064 |
---|
$name = preg_replace("#&\#([0-9]+);#si", "&#$1;", $name); // Fix & but allow unicode $link = "<a href=\"$fullurl\" target=\"_blank\"{$nofollow}>$name</a>"; return $link;
|
$name = preg_replace("#&\#([0-9]+);#si", "&#$1;", $name); // Fix & but allow unicode $link = "<a href=\"$fullurl\" target=\"_blank\"{$nofollow}>$name</a>"; return $link;
|
}
| }
|
/** * Parses URL MyCode. *
| /** * Parses URL MyCode. *
|
Zeile 1086 | Zeile 1083 |
---|
/** * Parses URL MyCode.
|
/** * Parses URL MyCode.
|
*
| *
|
* @param array Matches. * @return string The built-up link. */ function mycode_parse_url_callback2($matches)
|
* @param array Matches. * @return string The built-up link. */ function mycode_parse_url_callback2($matches)
|
{
| {
|
if(!isset($matches[2])) { $matches[2] = '';
| if(!isset($matches[2])) { $matches[2] = '';
|
Zeile 1114 | Zeile 1111 |
---|
if($align == "right") { $css_align = " style=\"float: right;\"";
|
if($align == "right") { $css_align = " style=\"float: right;\"";
|
}
| }
|
else if($align == "left") { $css_align = " style=\"float: left;\"";
| else if($align == "left") { $css_align = " style=\"float: left;\"";
|
Zeile 1126 | Zeile 1123 |
---|
} $alt = $lang->sprintf($lang->posted_image, $alt); if($dimensions[0] > 0 && $dimensions[1] > 0)
|
} $alt = $lang->sprintf($lang->posted_image, $alt); if($dimensions[0] > 0 && $dimensions[1] > 0)
|
{
| {
|
return "<img src=\"{$url}\" width=\"{$dimensions[0]}\" height=\"{$dimensions[1]}\" border=\"0\" alt=\"{$alt}\"{$css_align} />";
|
return "<img src=\"{$url}\" width=\"{$dimensions[0]}\" height=\"{$dimensions[1]}\" border=\"0\" alt=\"{$alt}\"{$css_align} />";
|
}
| }
|
else { return "<img src=\"{$url}\" border=\"0\" alt=\"{$alt}\"{$css_align} />";
|
else { return "<img src=\"{$url}\" border=\"0\" alt=\"{$alt}\"{$css_align} />";
|
} }
/** * Parses IMG MyCode. *
| } }
/** * Parses IMG MyCode. *
|
* @param array Matches. * @return string Image code. */ function mycode_parse_img_callback1($matches) { return $this->mycode_parse_img($matches[2]);
|
* @param array Matches. * @return string Image code. */ function mycode_parse_img_callback1($matches) { return $this->mycode_parse_img($matches[2]);
|
}
/** * Parses IMG MyCode. *
| }
/** * Parses IMG MyCode. *
|
* @param array Matches. * @return string Image code. */ function mycode_parse_img_callback2($matches) { return $this->mycode_parse_img($matches[4], array($matches[1], $matches[2]));
|
* @param array Matches. * @return string Image code. */ function mycode_parse_img_callback2($matches) { return $this->mycode_parse_img($matches[4], array($matches[1], $matches[2]));
|
}
/** * Parses IMG MyCode. * * @param array Matches.
| }
/** * Parses IMG MyCode. * * @param array Matches.
|
* @return string Image code. */ function mycode_parse_img_callback3($matches)
| * @return string Image code. */ function mycode_parse_img_callback3($matches)
|
Zeile 1177 | Zeile 1174 |
---|
function mycode_parse_img_callback4($matches) { return $this->mycode_parse_img($matches[5], array($matches[1], $matches[2]), $matches[3]);
|
function mycode_parse_img_callback4($matches) { return $this->mycode_parse_img($matches[5], array($matches[1], $matches[2]), $matches[3]);
|
}
| }
|
/** * Parses IMG MyCode disabled. *
| /** * Parses IMG MyCode disabled. *
|
Zeile 1192 | Zeile 1189 |
---|
$url = str_replace("\r", "", $url); $url = str_replace("\'", "'", $url);
|
$url = str_replace("\r", "", $url); $url = str_replace("\'", "'", $url);
|
if(!empty($this->options['shorten_urls'])) { if(my_strlen($url) > 55) { $name = my_substr($url, 0, 40)."...".my_substr($url, -10); } } else { $name = $url; }
$link = "<a href=\"{$url}\" target=\"_blank\">{$name}</a>"; $image = $lang->sprintf($lang->posted_image, $link);
| $image = $lang->sprintf($lang->posted_image, $this->mycode_parse_url($url));
|
return $image; }
| return $image; }
|
Zeile 1283 | Zeile 1267 |
---|
* @return string The built-up email link. */ function mycode_parse_email_callback($matches)
|
* @return string The built-up email link. */ function mycode_parse_email_callback($matches)
|
{
| {
|
if(!isset($matches[2])) { $matches[2] = '';
| if(!isset($matches[2])) { $matches[2] = '';
|
Zeile 1422 | Zeile 1406 |
---|
$url = str_replace("\r", "", $url); $url = str_replace("\'", "'", $url);
|
$url = str_replace("\r", "", $url); $url = str_replace("\'", "'", $url);
|
if(!empty($this->options['shorten_urls'])) { if(my_strlen($url) > 55) { $name = my_substr($url, 0, 40)."...".my_substr($url, -10); } } else { $name = $url; }
$link = "<a href=\"{$url}\" target=\"_blank\">{$name}</a>"; $video = $lang->sprintf($lang->posted_video, $link);
| $video = $lang->sprintf($lang->posted_video, $this->mycode_parse_url($url));
|
return $video; }
| return $video; }
|
Zeile 1558 | Zeile 1529 |
---|
function mycode_prepare_list($matches) { // Append number to identify matching list tags
|
function mycode_prepare_list($matches) { // Append number to identify matching list tags
|
if($matches[1] == '[/list]')
| if(strcasecmp($matches[1], '[/list]') == 0)
|
{ $count = array_pop($this->list_elements); if($count !== NULL)
| { $count = array_pop($this->list_elements); if($count !== NULL)
|