Changeset 3257 in subversion


Ignore:
Timestamp:
Feb 6, 2010 12:59:41 PM (3 years ago)
Author:
alec
Message:
  • Password: fix vpopmaild driver (#1486478)
Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r3255 r3257  
    22=========================== 
    33 
     4- Password: fix vpopmaild driver (#1486478) 
    45- Add workaround for MySQL bug [http://bugs.mysql.com/bug.php?id=46293] (#1486474) 
    56- Fix quoted text wrapping when replying to an HTML email in plain text (#1484141) 
  • trunk/roundcubemail/plugins/password/drivers/vpopmaild.php

    r2975 r3257  
    66 * Driver to change passwords via vpopmaild 
    77 * 
    8  * @version 1.0 
     8 * @version 1.1 
    99 * @author Johannes Hessellund 
    1010 * 
     
    1717    $vpopmaild = new Net_Socket(); 
    1818 
    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))) { 
    2021        return PASSWORD_CONNECT_ERROR; 
    2122    } 
    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; 
    5728    } 
     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; 
    5849} 
    5950 
  • trunk/roundcubemail/plugins/password/password.php

    r3023 r3257  
    44 +-------------------------------------------------------------------------+ 
    55 | Password Plugin for Roundcube                                           | 
    6  | Version 1.3.1                                                           | 
     6 | Version 1.3.2                                                           | 
    77 |                                                                         | 
    88 | Copyright (C) 2009, RoundCube Dev.                                      | 
     
    4343 * For installation and configuration instructions please read the README file. 
    4444 * 
    45  * @version 1.3.1 
    4645 * @author Aleksander Machniak 
    4746 */ 
Note: See TracChangeset for help on using the changeset viewer.