code cleanup of HTML editing capability (round 1)
| | |
| | | } |
| | | } |
| | | |
| | | function log_debug($filename, $text) |
| | | { |
| | | global $CONFIG, $INSTALL_PATH; |
| | | |
| | | if (empty($CONFIG['log_dir'])) |
| | | $CONFIG['log_dir'] = $INSTALL_PATH.'logs'; |
| | | |
| | | // try to open specific log file for writing |
| | | if ($fp = @fopen($CONFIG['log_dir'].'/'.$filename, 'a')) |
| | | { |
| | | fwrite($fp, date("d-M-Y H:i:s", mktime()) . ' ' . $text . "\n"); |
| | | fclose($fp); |
| | | } |
| | | } |
| | | |
| | | ?> |
| | | ?> |
| | |
| | | $labels['pagesize'] = 'Rows per page'; |
| | | $labels['signature'] = 'Signature'; |
| | | $labels['dstactive'] = 'Daylight savings'; |
| | | $labels['htmleditor'] = 'Use HTML editor'; |
| | | $labels['htmleditor'] = 'Compose HTML messages'; |
| | | $labels['htmlsignature'] = 'HTML signature'; |
| | | |
| | | $labels['autosavedraft'] = 'Automatically save draft'; |
| | |
| | | "<tr><th align=\"right\" nowrap=\"nowrap\" valign=\"baseline\">From: </th><td>%s</td></tr>" . |
| | | "<tr><th align=\"right\" nowrap=\"nowrap\" valign=\"baseline\">To: </th><td>%s</td></tr>" . |
| | | "</tbody></table><br>", |
| | | $MESSAGE['subject'], |
| | | $MESSAGE['headers']->date, |
| | | $IMAP->decode_header($MESSAGE['headers']->from), |
| | | $IMAP->decode_header($MESSAGE['headers']->to)); |
| | | rep_specialchars_output($MESSAGE['subject']), |
| | | rep_specialchars_output($MESSAGE['headers']->date), |
| | | rep_specialchars_output($IMAP->decode_header($MESSAGE['headers']->from)), |
| | | rep_specialchars_output($IMAP->decode_header($MESSAGE['headers']->to))); |
| | | } |
| | | |
| | | // add attachments |