Changeset 60 for trunk/alternc/patches/class/m_mail_egw.php
- Timestamp:
- Dec 8, 2007, 6:43:07 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/alternc/patches/class/m_mail_egw.php
r59 r60 64 64 } 65 65 66 function _updatepop($mail,$dom,$pass) { 67 68 if ($this->_update_passwd_egw_account($mail,$dom,$pass) ) 69 if (parent::_updatepop($mail,$dom,$pass)) 70 return true; 71 else 72 return false; 73 else 74 return false; 75 76 } 66 77 67 78 function _add_egw_account($mail,$dom,$pass) { … … 143 154 } 144 155 156 157 function _update_passwd_egw_account($mail,$dom,$pass) { 158 159 $res = true; 160 $domain = explode('.',$dom); 161 $size = count($domain); 162 if ( $size >= 3 && 163 $domain[$size-3] == "cta" && 164 $domain[$size-2] == "org" && 165 $domain[$size-1] == "ar" ) { 166 167 $admincli= $GLOBALS["L_EGW_ADMINCLI"]; 168 $command= "--edit-user"; // Command to be performed 169 $adminuser = $GLOBALS["L_EGW_ADMINUSER"]; 170 $adminclave = $GLOBALS["L_EGW_ADMINCLAVE"]; 171 $email = $account = $mail ."@" .$dom; 172 173 $go= $admincli ." " .$command ." " .$adminuser ."," .$adminclave .",\"" .$account ."\",,," .$pass ; 174 175 echo ($go); 176 // exit(); 177 $cod = exec($go); 178 if ($cod) 179 { 180 die ($cod); 181 $res = false; 182 } 183 } 184 return $res; 185 186 } 187 145 188 } 146 189
Note: See TracChangeset
for help on using the changeset viewer.