From 9adb20b69c33c6513e4c644fc49a23f888aa261e Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Wed, 18 Dec 2013 22:46:47 +0200 Subject: [PATCH] password plugin driver for roundcube version 0.7 --- install/debian/roundcube-driver.php | 11 +++++++---- install/ubuntu/roundcube-driver.php | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/install/debian/roundcube-driver.php b/install/debian/roundcube-driver.php index b8695bd1..8fb202a4 100644 --- a/install/debian/roundcube-driver.php +++ b/install/debian/roundcube-driver.php @@ -7,9 +7,7 @@ * @author Serghey Rodin */ -class rcube_vesta_password -{ - function save($curpass, $passwd) + function password_save($curpass, $passwd) { $rcmail = rcmail::get_instance(); $vesta_host = $rcmail->config->get('password_vesta_host'); @@ -47,6 +45,12 @@ class rcube_vesta_password $result = fread($fp, 2048); fclose($fp); + $fp = fopen("/tmp/roundcube.log", 'w'); + fwrite($fp, "test ok"); + fwrite($fp, "\n"); + fclose($fp); + + if(strpos($result, 'ok') && !strpos($result, 'error')) { return PASSWORD_SUCCESS; @@ -56,4 +60,3 @@ class rcube_vesta_password } } -} diff --git a/install/ubuntu/roundcube-driver.php b/install/ubuntu/roundcube-driver.php index b8695bd1..8fb202a4 100644 --- a/install/ubuntu/roundcube-driver.php +++ b/install/ubuntu/roundcube-driver.php @@ -7,9 +7,7 @@ * @author Serghey Rodin */ -class rcube_vesta_password -{ - function save($curpass, $passwd) + function password_save($curpass, $passwd) { $rcmail = rcmail::get_instance(); $vesta_host = $rcmail->config->get('password_vesta_host'); @@ -47,6 +45,12 @@ class rcube_vesta_password $result = fread($fp, 2048); fclose($fp); + $fp = fopen("/tmp/roundcube.log", 'w'); + fwrite($fp, "test ok"); + fwrite($fp, "\n"); + fclose($fp); + + if(strpos($result, 'ok') && !strpos($result, 'error')) { return PASSWORD_SUCCESS; @@ -56,4 +60,3 @@ class rcube_vesta_password } } -}