From 6a765a9355661659b4a4329e125d15c2f29406b0 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Tue, 30 Jun 2009 13:12:45 -0400
Subject: [PATCH] Use html_table class to build password form + add german localizations + codestyle (no tabs, just spaces)

---
 plugins/password/drivers/sasl.php |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/plugins/password/drivers/sasl.php b/plugins/password/drivers/sasl.php
index 3613334..0f762e5 100644
--- a/plugins/password/drivers/sasl.php
+++ b/plugins/password/drivers/sasl.php
@@ -22,18 +22,20 @@
     $username = escapeshellcmd($_SESSION['username']);
 
     if ($fh = popen("$curdir/chgsaslpasswd -p $username", 'w')) {
-	fwrite($fh, $newpass."\n");
+        fwrite($fh, $newpass."\n");
         $code = pclose($fh);
 
-	if($code == 0)
-    	    return PASSWORD_SUCCESS;
-    } else 
-	raise_error(array(
+        if ($code == 0)
+            return PASSWORD_SUCCESS;
+    }
+    else {
+        raise_error(array(
             'code' => 600,
-	    'type' => 'php',
-	    'file' = __FILE__,
-	    'message' => "Password plugin: Unable to execute $curdir/chgsaslpasswd"
-	), true, false);				    
+            'type' => 'php',
+            'file' => __FILE__,
+            'message' => "Password plugin: Unable to execute $curdir/chgsaslpasswd"
+            ), true, false);
+    }
 
     return PASSWORD_ERROR;
 }

--
Gitblit v1.9.1