bug 1389: Consistent indentation bug-1389
authorBenny Baumann <BenBE@geshi.org>
Wed, 29 Jul 2015 20:43:10 +0000 (22:43 +0200)
committerBenny Baumann <BenBE@geshi.org>
Wed, 29 Jul 2015 20:43:10 +0000 (22:43 +0200)
includes/mysql.php.sample

index 10c6d35..77be95f 100644 (file)
@@ -49,8 +49,8 @@
                $smtp = fsockopen("localhost", 25);
                if(!$smtp)
                {
-                 echo("Could not connect to mailserver at localhost:25\n");
-                 return;
+                       echo("Could not connect to mailserver at localhost:25\n");
+                       return;
                }
                $InputBuffer = fgets($smtp, 1024);
                fputs($smtp, "HELO www.cacert.org\r\n");
@@ -99,9 +99,9 @@
 //             fputs($smtp, chunk_split(base64_encode(recode("html..utf-8", $message)))."\r\n.\r\n");
                $encoded_lines = explode( "\n", str_replace("\r", "", $message) );
                array_walk( $encoded_lines,
-               function (&$a) {
-                 $a = quoted_printable_encode(recode("html..utf-8", $a));
-               });
+                       function (&$a) {
+                               $a = quoted_printable_encode(recode("html..utf-8", $a));
+                       });
                $encoded_message = implode("\n", $encoded_lines);
 
                $encoded_message = str_replace("\r.", "\r=2E", $encoded_message);