Subversion Repositories php_guestbook

Compare Revisions

No changes between revisions

Regard whitespace Rev 2 → Rev 3

/trunk/includes/ip_functions_mastercopy.inc.php
File deleted
\ No newline at end of file
Property changes:
Deleted: svn:special
-*
\ No newline at end of property
/trunk/includes/SecureMailer_mastercopy.class.php
File deleted
\ No newline at end of file
Property changes:
Deleted: svn:special
-*
\ No newline at end of property
/trunk/includes/SecureMailer.class.php
19,21 → 19,22
* limitations under the License.
*/
 
// TODO: getHeaders() als single string , attachments , remove headers etc, headers als array in/out, Braucht man auch ein addRawHeader()?
// TODO: getHeaders() as single string , attachments , remove headers etc, headers as array in/out, do you also need addRawHeader()?
 
class SecureMailer {
private $headers = '';
 
// TODO: sollte eher private sein, geht aber net
const endl = "\n"; // GMX will kein CRLF! wtf?! (Unter Postfix in Linux)
// TODO: This should rather be private, but it won't work
const endl = "\n"; // GMX doesn't like CRLF! wtf?! (tested in Postfix in Linux)
 
private function QB_SECURE_MAIL_PARAM($param_ = '', $level_ = 2) {
// Verhindert Mail-Header-Injections
// Quelle: http://www.erich-kachel.de/?p=26
// Prevents eMail header injections
// Source: http://www.erich-kachel.de/?p=26 (modified)
 
/* replace until done */
while (!isset($filtered) || ($param_ != $filtered)) {
if (isset($filtered)) {
$filtered = null;
while (is_null($filtered) || ($param_ != $filtered)) {
if (!is_null($filtered)) {
$param_ = $filtered;
}
 
94,7 → 95,7
return $this->_sendMail($recipient, $subject, $message, '');
}
 
// TODO: plain aus html berechnen als optional?
// TODO: generate plain from html (strip tags), optional
public function sendMailHTMLandPlainMultipart($to, $subject, $msg_html, $msg_plain) {
$boundary = uniqid('np');
 
/trunk/includes
Property changes:
Added: svn:ignore
+SecureMailer_mastercopy.class.php
+ip_functions_mastercopy.inc.php
+