Subversion Repositories php_guestbook

Compare Revisions

No changes between revisions

Regard whitespace Rev 3 → Rev 2

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