Changeset 1617
- Timestamp:
- 12/04/2006 07:10:45 AM (2 years ago)
- Files:
-
- 1 modified
-
trunk/log.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/log.php
r1595 r1617 172 172 if(JLOG_INFO_BY_COMMENT === true) { 173 173 $mail['headers'] = "From: "; 174 if( isset($com_form['name'])) $mail['headers'] .= $com_form['name'];174 if(!empty($com_form['name'])) $mail['headers'] .= str_replace(array("\n", "\r"), "", $com_form['name']); 175 175 else $mail['headers'] .= $l['admin']['comments_anonym']; 176 if( isset($com_form['email'])) $mail['headers'] .= " <".$com_form['email'].">";176 if(!empty($com_form['email'])) $mail['headers'] .= " <".str_replace(array("\n", "\r"), "", $com_form['email']).">"; 177 177 $mail['headers'] .= "\r\nX-Mailer: PHP/".phpversion(); 178 178 179 179 180 180 $mail['text'] = $l['admin']['comments_mail_txt']." »".$blogentry['topic']."«\n- -\n"; 181 if( isset($com_form['name'])) $mail['text'] .= $com_form['name'];181 if(!empty($com_form['name'])) $mail['text'] .= $com_form['name']; 182 182 else $mail['text'] .= $l['admin']['comments_anonym']; 183 if( isset($com_form['city'])) $mail['text'] .= " ".$l['comments_from']." ".$com_form['city'];183 if(!empty($com_form['city'])) $mail['text'] .= " ".$l['comments_from']." ".$com_form['city']; 184 184 $mail['text'] .= " ".$l['admin']['comments_posted']." ".$date.":\n\n"; 185 185 $mail['text'] .= html_entity_decode(strip_tags($bbcomments->parse($com_form['content'])));
