From 98064eb295422aed6236826b18929dac7e13229e Mon Sep 17 00:00:00 2001 From: Patrick Canterino Date: Wed, 11 Jan 2012 17:54:31 +0000 Subject: [PATCH] Debug-Code und ueberfluessige Leerzeichen entfernt --- form-email/mailer.php | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/form-email/mailer.php b/form-email/mailer.php index 6e87d46..76fc648 100644 --- a/form-email/mailer.php +++ b/form-email/mailer.php @@ -354,12 +354,12 @@ for($x=0;$x 0) { $dp = opendir($store_mails_dir); - + while($stored_mail_file = readdir($dp)) { if($stored_mail_file != '.' && $stored_mail_file != '..' && substr($stored_mail_file,0,strlen($store_mails_prefix)) == $store_mails_prefix) { $stored_mail_files[$store_mails_dir.'/'.$stored_mail_file] = filemtime($store_mails_dir.'/'.$stored_mail_file); } } - + closedir($dp); - + arsort($stored_mail_files); - - #print sizeof($stored_mail_files); - - #print_r($stored_mail_files); - + $x = 0; - + foreach(array_keys($stored_mail_files) as $stored_mail_filename) { $x++; - + if($x > $store_mails_max) { unlink($stored_mail_filename); } -- 2.34.1