| 1162 | | $msg = "New comment posted for picture " . basename($picdata['path']) . " $notify_msg\n\n"; |
| 1163 | | $msg .= "Author: $author (IP: $ip, $host)\n"; |
| 1164 | | $msg .= "E-mail: $email\n"; |
| 1165 | | $msg .= "URI: $url\n\n"; |
| 1166 | | $msg .= "Comment:\n$comment\n\n"; |
| 1167 | | $msg .= "You can see all the comments for this picture here:\n"; |
| | 1162 | $msg = plog_tr("New comment posted for picture ") . basename($picdata['path']) . " $notify_msg\n\n"; |
| | 1163 | $msg .= plog_tr("Author") . ": $author (IP: $ip, $host)\n"; |
| | 1164 | $msg .= plog_tr("E-mail") . ": $email\n"; |
| | 1165 | $msg .= plog_tr("URI") . ": $url\n\n"; |
| | 1166 | $msg .= plog_tr("Comment") . ":\n$comment\n\n"; |
| | 1167 | $msg .= plog_tr("You can see all the comments for this picture here") . ":\n"; |
| 1170 | | mail($config['admin_email'],SmartStripSlashes($config['gallery_name']) . ': new comment from '.$author,$msg,"From: $email"); |
| 1171 | | } |
| 1172 | | |
| 1173 | | return array("result" => "Comment added."); |
| | 1170 | $headers = "From: $author <$email>\r\n"; |
| | 1171 | $headers .= 'Content-type: text/plain; charset=utf-8\r\n'; |
| | 1172 | |
| | 1173 | // Subject should be encoded for international characters too! |
| | 1174 | mail( |
| | 1175 | $config['admin_email'], |
| | 1176 | SmartStripSlashes($config['gallery_name']) . ': ' . plog_tr('new comment from') . ' ' . $author, |
| | 1177 | $msg, |
| | 1178 | $headers); |
| | 1179 | } |
| | 1180 | |
| | 1181 | return array("result" => plog_tr("Comment added") . "."); |