Changeset 39 for trunk/alternc/patches/m_mail_egw.php
- Timestamp:
- Nov 10, 2007, 8:31:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/alternc/patches/m_mail_egw.php
r35 r39 5 5 6 6 7 function __construct () {8 global $mail;9 $mail = $this;10 }7 // function __construct () { 8 // global $mail; 9 // $mail = $this; 10 // } 11 11 // function _createpop($mail,$dom,$pass) { 12 12 // global $err,$cuid,$db; … … 43 43 44 44 if ($this->_add_egw_account($mail,$dom,$pass) ) 45 if (parent::_ _createpop($mail,$dom,$pass))46 return true;45 if (parent::_createpop($mail,$dom,$pass)) 46 return true; 47 47 else 48 48 return false; … … 55 55 56 56 $res = true; 57 if (substr($dom,-10) == "cta.org.ar") { 57 $domain = explode('.',$dom); 58 $size = count($domain); 59 if ( $size >= 3 && 60 $domain[$size-3] == "cta" && 61 $domain[$size-2] == "org" && 62 $domain[$size-1] == "ar" ) { 58 63 59 64 $admincli= "/var/alternc/html/i/intranet/intranet.redcta.org.ar/wwws/stable/admin/admin-cli.php"; … … 69 74 $canchangepw= "yes"; 70 75 $anonuser= "no"; 71 $primarygroup = substr($dom,-10); 72 $secondarygroup = substr($dom,0,-11); 73 76 $primarygroup = $domain[$size-3]; 77 $secundarygroup = join(',', array_slice($domain,0,-3)); 74 78 $lastname = "-"; 75 79 $firstname = $mail;
Note: See TracChangeset
for help on using the changeset viewer.