0, 'y1' => 0, 'x2' => $row['width'], 'y2' => $row['height'], 'width' => $conf['upload_form_thumb_maxwidth'], 'height' => $conf['upload_form_thumb_maxheight'], ); $template->assign(array( 'IMG_SRC' => get_image_url($row), 'IMG_WIDTH' => $row['width'], 'IMG_HEIGHT' => $row['height'], 'IMG_ID' => $_GET['image_id'], 'thumb_data' => $thumb_data, 'TC_PWG_TOKEN' => get_pwg_token() )); $template->set_prefilter('picture_modify','tc_prefilter'); load_language('plugin.lang', dirname(__FILE__).'/'); } } function tc_prefilter($content,&$smarty) { $pattern = '#(