Changeset 8232 for branches/2.5/emailadmin
- Timestamp:
- 10/08/13 16:20:46 (11 years ago)
- Location:
- branches/2.5/emailadmin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/emailadmin/inc/class.ui.inc.php
r7673 r8232 77 77 print $this->t->get('out','main'); 78 78 } 79 79 80 function countProfiles(){ 81 $return = $this->boemailadmin->getProfileList(); 82 (is_array($return) && count($return) > 0) ? $return = count($return) : $return = 0; 83 return $return; 84 } 85 86 function addDefaultProfile() 87 { 88 $emailServer = $_SESSION['phpgw_info']['expressomail']['email_server']; 89 $globalSettings = array( 90 "profileID" => "", 91 "description" => "Expresso", 92 "defaultDomain" => $emailServer['defaultDomain'], 93 "organisationName" => $emailServer['organisationName'], 94 "userDefinedAccounts" => "0" 95 ); 96 97 $smtpSettings = array( 98 "smtpServer" => "127.0.0.1", 99 "smtpPort" => "25", 100 "smtpAuth" => "", 101 "smtpType" => "2", 102 "smtpLDAPServer" => "127.0.0.1", 103 "smtpLDAPAdminDN" => $emailServer['smtpLDAPAdminDN'], 104 "smtpLDAPAdminPW" => $emailServer['smtpLDAPAdminPW'], 105 "smtpLDAPBaseDN" => $emailServer['smtpLDAPBaseDN]'], 106 "smtpLDAPUseDefault" => "yes" 107 ); 108 109 $imapSettings = array( 110 'imapServer' => "127.0.0.1", 111 'imapPort' => "143", 112 'imapDelimiter' => "/", 113 'imapType' => "3", 114 'imapLoginType' => "standard", 115 'imapTLSEncryption' => "1", 116 'imapTLSAuthentication' => "", 117 'imapoldcclient' => "", 118 'imapEnableCyrusAdmin' => "yes", 119 'imapAdminUsername' => "expresso-admin", 120 'imapAdminPW' => $emailServer['imapAdminPW'], 121 'imapEnableSieve' => "yes", 122 'imapSieveServer' => "127.0.0.1", 123 'imapSievePort' => "2000", 124 'imapCreateSpamFolder' => "yes", 125 'imapCyrusUserPostSpam' => "", 126 'imapDefaultTrashFolder' => "Trash", 127 'imapDefaultSentFolder' => "Sent", 128 'imapDefaultDraftsFolder' => "Drafts", 129 'imapDefaultSpamFolder' => "Spam" 130 ); 131 132 $this->boemailadmin->saveProfile($globalSettings, $smtpSettings, $imapSettings); 133 } 134 80 135 function css() 81 136 { -
branches/2.5/emailadmin/setup/setup.inc.php
r7516 r8232 14 14 $setup_info['emailadmin']['name'] = 'emailadmin'; 15 15 $setup_info['emailadmin']['title'] = 'EMailAdmin'; 16 $setup_info['emailadmin']['version'] = '2.5. 0';16 $setup_info['emailadmin']['version'] = '2.5.1'; 17 17 $setup_info['emailadmin']['app_order'] = 10; 18 18 $setup_info['emailadmin']['enable'] = 2; … … 40 40 $setup_info['emailadmin']['depends'][] = array( 41 41 'appname' => 'phpgwapi', 42 'versions' => Array('2.5. 0')42 'versions' => Array('2.5.1.1') 43 43 ); 44 44 -
branches/2.5/emailadmin/setup/tables_update.inc.php
r7516 r8232 142 142 return $GLOBALS['setup_info']['emailadmin']['currentver']; 143 143 } 144 $test[] = '2.4.2'; 145 function emailadmin_upgrade2_4_2() 146 { 147 $GLOBALS['setup_info']['emailadmin']['currentver'] = '2.5.0'; 148 return $GLOBALS['setup_info']['emailadmin']['currentver']; 149 } 144 $test[] = '2.4.2'; 145 function emailadmin_upgrade2_4_2() 146 { 147 $GLOBALS['setup_info']['emailadmin']['currentver'] = '2.5.0'; 148 return $GLOBALS['setup_info']['emailadmin']['currentver']; 149 } 150 151 $test[] = '2.5.0'; 152 function emailadmin_upgrade2_5_0() 153 { 154 $GLOBALS['setup_info']['emailadmin']['currentver'] = '2.5.1'; 155 return $GLOBALS['setup_info']['emailadmin']['currentver']; 156 } 150 157 151 158 ?>
Note: See TracChangeset
for help on using the changeset viewer.