Changeset 61
- Timestamp:
- Dec 8, 2007, 7:05:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/alternc/patches/class/m_mail_egw.php
r60 r61 3 3 4 4 class m_mail_egw extends m_mail { 5 6 7 // function __construct () {8 // global $mail;9 // $mail = $this;10 // }11 // function _createpop($mail,$dom,$pass) {12 // global $err,$cuid,$db;13 // $err->log("mail","_createpop",$mail."@".$dom);14 // $m=substr($mail,0,1);15 // $gecos=$mail;16 // if (!$mail) {17 // // Cas du CATCH-ALL18 // $gecos="Catch-All";19 // $m="_";20 // }21 // $db->query("INSERT INTO mail_users (uid,alias,path,password) VALUES ('$cuid','".$mail."_".$dom."','/var/alternc/mail/".$m."/".$mail."_".$dom."','"._md5cr($pass)."');");22 // $db->query("INSERT INTO mail_users (uid,alias,path,password) VALUES ('$cuid','".$mail."@".$dom."','/var/alternc/mail/".$m."/".$mail."_".$dom."','"._md5cr($pass)."');");23 // $db->query("INSERT INTO mail_alias (mail,alias) VALUES ('".$mail."_".$dom."','/var/alternc/mail/".$m."/".$mail."_".$dom."/Maildir/');");24 //25 // $f=fopen("/var/lib/squirrelmail/data/".$mail."_".$dom.".pref","wb");26 // $g=0; $g=@fopen("/etc/squirrelmail/default_pref","rb");27 // fputs($f,"email_address=$mail@$dom\nchosen_theme=default_theme.php\n");28 // if ($g) {29 // while ($s=fgets($g,1024)) {30 // if (substr($s,0,14)!="email_address=" && substr($s,0,13)!="chosen_theme=") {31 // fputs($f,$s);32 // }33 // }34 // fclose($g);35 // }36 // fclose($f);37 // @copy("/var/lib/squirrelmail/data/".$mail."_".$dom.".pref","/var/lib/squirrelmail/data/".$mail."@".$dom.".pref");38 // exec("/usr/lib/alternc/mail_add ".$mail."_".$dom." ".$cuid);39 // return true;40 // }41 5 42 6 function _createpop($mail,$dom,$pass) { … … 49 13 else 50 14 return false; 51 52 15 } 53 16 … … 61 24 else 62 25 return false; 63 64 26 } 65 27 … … 73 35 else 74 36 return false; 75 76 37 } 77 38 … … 119 80 } 120 81 return $res; 121 122 82 } 123 83 … … 151 111 } 152 112 return $res; 153 154 113 } 155 156 114 157 115 function _update_passwd_egw_account($mail,$dom,$pass) { … … 183 141 } 184 142 return $res; 185 186 143 } 187 188 144 } 189 145 190 191 192 146 ?>
Note: See TracChangeset
for help on using the changeset viewer.