$lid = empty( $_GET['com_itemid'] ) ? 0 : intval( $_GET['com_itemid'] ) ;
if( $lid > 0 ) {
$rs = $xoopsDB->query( "SELECT lid , cid, title ,ext FROM $table_photos WHERE lid=$lid" ) ;
list( $lid , $cid, $title ,$ext ) = $xoopsDB->fetchRow( $rs ) ;
if ($title != '') {
$com_replytext = "<img src='$thumbs_dir/$lid.$ext' />";
}
$com_replytitle = $title;
include_once XOOPS_ROOT_PATH.'/include/comment_new.php';
} else {
exit;
}