Open includes/functions_content.php
Find
Tip: This may be a partial find and not the whole line.
Tip: Add the following line(s) on a new blank line after the preceding line(s) of find.
Tip: This may be a partial find and not the whole line.
Code: Select all
Add after case MAGIC_URL_FULL:
$tag = 'm';
$text = $short_url;
$text = make_title_link($url, $text);
Tip: Add the following line(s) on a new blank line after the preceding line(s) of find.
Code: Select all
$handle = @fopen($url, "r");
if ($handle)
{
while (($line = fgets($handle, 4096)) !== false)
{
if (feof($handle)) break;
$match = preg_match('$(\<title\>)(.*)(\<\/title\>)$i', $line, $matches);
if ($match and trim($matches[2] !== ''))
{
$text = strip_tags($matches[2]);
break;
}
}
fclose($handle);
}