I hve somme Error
Fatal error: Call to undefined function: handle_bbcode_img_match() in /var/www/web1/html/vb3/includes/functions_bbcodeparse.php(1085) : regexp code on line 1
do i have the comlete Line
Code:
function handle_bbcode_img_match($link)
{
$link = strip_smilies(str_replace('\\"', '"', $link));
// remove double spaces -- fixes issues with wordwrap
$link = str_replace(' ', '', $link);
and replace ist with
Code:
// Image Size hack r1.0
// Modified by SS to resize large pics and place link to full size pic
// return '<img src="' . $link . '" border="0" alt="" />';
global $max_imgsize;
$image= ($link);
// Get host url name for fsockopen to see if server is reachable
$img_host=str_replace('http://','',$link);
$img_host=substr($img_host,0,strpos($img_host,'/'));
// Check is server is reachable and timeout in 5 seconds if not
if (@fclose(@fsockopen($img_host, 80, $fsockerr1, $fsockerr2, 5))) {
// Check if image is on server
if (@fclose(@fopen("$image", "r"))) {
// Check image size and if oversize, change link
$img_width = getimagesize($link);
if ($img_width[0] > $max_imgsize) {
$biglink = '<table><tr><td align="center"><a href="' . $link . '" ><img src="'
. $link . '" width="'.$max_imgsize.'" border="0" alt=""><br>Picture has been resized, click for full size pic</a></td></tr></table>';
return $biglink;
}
else {
return '<img src="' . $link . '" border="0" alt="" />';
}
}
else {
// Image not found
return '<table border="1" cellpadding="2"><tr><td><FONT color="#FF0000">Image link is broken</font></td></tr></table>';
}
}
else {
// Server is down
return '<table border="1" cellpadding="2"><tr><td><FONT color="#FF0000">Image server is down</font></td></tr></table>';
}
// End Image Size hack r1.0
If I do this i become this error