Changeset 3257 in subversion
- Timestamp:
- Feb 6, 2010 12:59:41 PM (3 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
plugins/password/drivers/vpopmaild.php (modified) (2 diffs)
-
plugins/password/password.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r3255 r3257 2 2 =========================== 3 3 4 - Password: fix vpopmaild driver (#1486478) 4 5 - Add workaround for MySQL bug [http://bugs.mysql.com/bug.php?id=46293] (#1486474) 5 6 - Fix quoted text wrapping when replying to an HTML email in plain text (#1484141) -
trunk/roundcubemail/plugins/password/drivers/vpopmaild.php
r2975 r3257 6 6 * Driver to change passwords via vpopmaild 7 7 * 8 * @version 1. 08 * @version 1.1 9 9 * @author Johannes Hessellund 10 10 * … … 17 17 $vpopmaild = new Net_Socket(); 18 18 19 if (PEAR::isError($vpopmaild->connect($rcmail->config->get('password_vpopmaild_host'), $rcmail->config->get('password_vpopmaild_port'), null))) { 19 if (PEAR::isError($vpopmaild->connect($rcmail->config->get('password_vpopmaild_host'), 20 $rcmail->config->get('password_vpopmaild_port'), null))) { 20 21 return PASSWORD_CONNECT_ERROR; 21 22 } 22 else { 23 $result = $vpopmaild->readLine(); 24 if(!preg_match('/^\+OK/', $result)) { 25 $vpopmaild->disconnect(); 26 return PASSWORD_CONNECT_ERROR; 27 } 28 else { 29 $vpopmaild->writeLine("slogin ". $_SESSION['username'] . " " . $curpass); 30 $result = $vpopmaild->readLine(); 31 if(!preg_match('/^\+OK/', $result) ) { 32 $vpopmaild->writeLine("quit"); 33 $vpopmaild->disconnect(); 34 return PASSWORD_ERROR; 35 } 36 else { 37 $vpopmaild->writeLine("mod_user ". $_SESSION['username']); 38 $result = $vpopmaild->readLine(); 39 if(!preg_match('/^\+OK/', $result) ) { 40 $vpopmaild->writeLine("quit"); 41 $vpopmaild->disconnect(); 42 return PASSWORD_ERROR; 43 } 44 else { 45 $vpopmaild->writeLine("clear_text_password ". $passwd); 46 $vpopmaild->writeLine("."); 47 $result = $vpopmaild->readLine(); 48 $vpopmaild->writeLine("quit"); 49 $vpopmaild->disconnect(); 50 if (!preg_match('/^\+OK/', $result)) 51 return PASSWORD_ERROR; 52 else 53 return PASSWORD_SUCCESS; 54 } 55 } 56 } 23 24 $result = $vpopmaild->readLine(); 25 if(!preg_match('/^\+OK/', $result)) { 26 $vpopmaild->disconnect(); 27 return PASSWORD_CONNECT_ERROR; 57 28 } 29 30 $vpopmaild->writeLine("slogin ". $_SESSION['username'] . " " . $curpass); 31 $result = $vpopmaild->readLine(); 32 if(!preg_match('/^\+OK/', $result) ) { 33 $vpopmaild->writeLine("quit"); 34 $vpopmaild->disconnect(); 35 return PASSWORD_ERROR; 36 } 37 38 $vpopmaild->writeLine("mod_user ". $_SESSION['username']); 39 $vpopmaild->writeLine("clear_text_password ". $passwd); 40 $vpopmaild->writeLine("."); 41 $result = $vpopmaild->readLine(); 42 $vpopmaild->writeLine("quit"); 43 $vpopmaild->disconnect(); 44 45 if (!preg_match('/^\+OK/', $result)) 46 return PASSWORD_ERROR; 47 48 return PASSWORD_SUCCESS; 58 49 } 59 50 -
trunk/roundcubemail/plugins/password/password.php
r3023 r3257 4 4 +-------------------------------------------------------------------------+ 5 5 | Password Plugin for Roundcube | 6 | Version 1.3. 1|6 | Version 1.3.2 | 7 7 | | 8 8 | Copyright (C) 2009, RoundCube Dev. | … … 43 43 * For installation and configuration instructions please read the README file. 44 44 * 45 * @version 1.3.146 45 * @author Aleksander Machniak 47 46 */
Note: See TracChangeset
for help on using the changeset viewer.
