Changeset 61 for trunk


Ignore:
Timestamp:
Dec 8, 2007, 7:05:30 PM (16 years ago)
Author:
sebas
Message:

limpieza

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/alternc/patches/class/m_mail_egw.php

    r60 r61  
    33
    44class 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-ALL
    18 //              $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 //      }
    415
    426        function _createpop($mail,$dom,$pass) {
     
    4913                else
    5014                        return false;
    51 
    5215        }
    5316
     
    6124                else
    6225                        return false;
    63 
    6426        }
    6527
     
    7335                else
    7436                        return false;
    75 
    7637        }
    7738
     
    11980                }
    12081                return $res;
    121 
    12282        }       
    12383
     
    151111                }
    152112                return $res;
    153 
    154113        }       
    155 
    156114
    157115        function _update_passwd_egw_account($mail,$dom,$pass) {
     
    183141                }
    184142                return $res;
    185 
    186143        }       
    187 
    188144}
    189145
    190 
    191 
    192146?>
Note: See TracChangeset for help on using the changeset viewer.