bug 827: fix copy and paste errors, remove quotes from timestamp literal
authorMichael Tänzer <neo@nhng.de>
Tue, 22 Nov 2011 23:35:36 +0000 (00:35 +0100)
committerMichael Tänzer <neo@nhng.de>
Tue, 22 Nov 2011 23:35:36 +0000 (00:35 +0100)
enable UTF-8 encoding in emails

Signed-off-by: Michael Tänzer <neo@nhng.de>
scripts/send_thawte.php.txt

index 9299f30..ce0e73d 100644 (file)
@@ -51,7 +51,7 @@
                while(!feof($fp))
                {
                        $line = trim(fgets($fp, 4096));
-                       $lines_EN .= wordwrap($line, 75, "\n")."\n";
+                       $lines_NL .= wordwrap($line, 75, "\n")."\n";
                }
                fclose($fp);
        }
@@ -63,7 +63,7 @@
                while(!feof($fp))
                {
                        $line = trim(fgets($fp, 4096));
-                       $lines_EN .= wordwrap($line, 75, "\n")."\n";
+                       $lines_FR .= wordwrap($line, 75, "\n")."\n";
                }
                fclose($fp);
        }
@@ -75,7 +75,7 @@
                while(!feof($fp))
                {
                        $line = trim(fgets($fp, 4096));
-                       $lines_EN .= wordwrap($line, 75, "\n")."\n";
+                       $lines_ES .= wordwrap($line, 75, "\n")."\n";
                }
                fclose($fp);
        }
@@ -87,7 +87,7 @@
                while(!feof($fp))
                {
                        $line = trim(fgets($fp, 4096));
-                       $lines_EN .= wordwrap($line, 75, "\n")."\n";
+                       $lines_RU .= wordwrap($line, 75, "\n")."\n";
                }
                fclose($fp);
        }
 
        echo "ID now: $lastid\n";
 
-       $query = "select `id`,`fname`,`lname`,`email`,`language` from `users` where `deleted` = '0' and `id` > '$lastid' order by `id`";
+       $query = "select `id`,`fname`,`lname`,`email`,`language` from `users` where `deleted` = 0 and `id` > '$lastid' order by `id`";
 
        $res = mysql_query($query);
 
                                break;
                }
                
-               sendmail($row['email'], "[CAcert.org] $subject", $mailtxt, "mailing@cacert.org", "", "", "CAcert", "returns@cacert.org", 1);
+               sendmail($row['email'], "[CAcert.org] $subject", $mailtxt, "mailing@cacert.org", "", "", "CAcert", "returns@cacert.org", "");
                
                $fp = fopen("send_thawte_lastid.txt", "w");
                fputs($fp, $row["id"]."\n");