';
$theimage = '

1) { $theimage .= ' alt="'.stripslashes(urldecode($vals[4])).'"'; }
if($vals[1]>0) { $theimage .= ' width="'.$vals[1].'"'; }
if($vals[2]>0) { $theimage .= ' height="'.$vals[2].'"'; }
$theimage .= ' />';
if($vals[5]==1) {
$output .= '
'.$theimage.'';
} else {
$output .= $theimage;
}
if(isset($bottomlink) && $vals[8]==1) {
$output .= $bottomlink;
}
$output .= '
';
if($method==0) {
echo $output;
} else {
return $output;
}
}
function filter_wpcam_viewer(&$content) {
$temp = explode('[[wpcam]]',$content);
if(sizeof($temp)>1) {
$content = str_replace('[[wpcam]]',show_wpimgcam_viewer(1),$content);
}
return $content;
}
add_action('admin_menu', 'wp_imcam_addoptionpage');
add_action('the_content', 'filter_wpcam_viewer',5);
?>