Zou dit de tekst kunnen zijn van de source uit de plugin? En zo ja, is er dan iemand die kan zeggen, dan is dit of dat gebeurd.
if ($pic <> '' and $action == 'writecomment') {
//HI Validate input & captcha and return blank form with messages on errors
$gallery_comment = true;
include_once $pth['folder']['plugins'].$plugin.'/securimage/securimage.php';
$securimage = new Securimage();
if ($securimage->check($_POST['captcha_code']) == false) {
$t .= "\n".'<div class="gallery_comment_error">• '.$plugin_tx['gallery']['captcha_error'].'</div>';
$gallery_comment = false;
}
if ($_POST['comment_name'] == '') {
$t .= "\n".'<div class="gallery_comment_error">• '.$plugin_tx['gallery']['comment_name_error'].'</div>';
$gallery_comment = false;
}
if ($_POST['comment_text'] == '') {
$t .= "\n".'<div class="gallery_comment_error">• '.$plugin_tx['gallery']['comment_text_error'].'</div>';
$gallery_comment = false;
}
if ($gallery_comment == false) {
$t .= tag('br')."\n";
$t .= AddComment($dir,$pic);
return $t;
} //HI End Captcha and input validation
else {
$file = preg_replace("/.jpg/i", "-text.txt", $files[$pic]);
if (eregi("true", $plugin_cf['gallery']['multilanguage_comments'])) {
if ($sl != $cf['language']['default']) {
$file = preg_replace("/.jpg/i", "-".$sl."-text.txt", $files[$pic]);
}
}
}
$now = date($plugin_tx['gallery']['comments_datesformat'], time());
$handle = fopen("$dir"."$file", "a");
fwrite($handle, "\r\n".$now.$plugin_cf['gallery']['delimiter'].$comment_name.$plugin_cf['gallery']['delimiter'].$comment_text.$plugin_cf['gallery']['delimiter']);
fclose($handle);
unset($_GET['action']);
//HI Notification on new comment
if ($plugin_cf['gallery']['comment_notification_mail_address'] != '') {
if ($plugin_cf['gallery']['comment_notification_mail_from'] == '') $plugin_cf['gallery']['comment_notification_mail_from'] = "lb_Gallery@".$_SERVER['HTTP_HOST'];
$gallery_mail_header = "From: ".$plugin_cf['gallery']['comment_notification_mail_from']. "\r\n" . 'X-Mailer: PHP/' . phpversion();
mail($plugin_cf['gallery']['comment_notification_mail_address'], $plugin_tx['gallery']['comment_notification_mail_subject'], wordwrap($plugin_tx['gallery']['comment_notification_mail_text'] . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . "&pic=" . $pic . "&page=" . $page, 70), $gallery_mail_header);
}
if (eregi("true", $plugin_cf['gallery']['addcomment_redir_to_thumbview'])) {
if (!$page) {
//header("Location: http://".sv('HTTP_HOST').((dirname(sv('PHP_SELF')) == "/") ? "/" : dirname(sv('PHP_SELF'))."/")."?".sv('QUERY_STRING'));
header("Location: ".$sn."?".$su);
exit;
} else {
//header("Location: http://".sv('HTTP_HOST').((dirname(sv('PHP_SELF')) == "/") ? "/" : dirname(sv('PHP_SELF'))."/")."?".sv('QUERY_STRING')."&page=".$page);
header("Location: ".$sn."?".$su."&page=".$page);
exit;
}
} else {
if (!$page) {
//header("Location: http://".sv('HTTP_HOST').((dirname(sv('PHP_SELF')) == "/") ? "/" : dirname(sv('PHP_SELF'))."/")."?".sv('QUERY_STRING')."&pic=".$pic);
header("Location: ".$sn."?".$su."&pic=".$pic);
exit;
} else {
//header("Location: http://".sv('HTTP_HOST').((dirname(sv('PHP_SELF')) == "/") ? "/" : dirname(sv('PHP_SELF'))."/")."?".sv('QUERY_STRING')."&pic=".$pic."&page=".$page);
header("Location: ".$sn."?".$su."&pic=".$pic."&page=".$page);
exit;
}
}
exit;
}
if ($pic <> '' and $action == 'addcomment') {
$t .= AddComment($dir, $pic);
return $t;
}