Beispiel #1
0
 function UpdateFromSessionArray()
 {
     $sessionArray = isset($_SESSION[WM_SESS_USERMINI]) ? $_SESSION[WM_SESS_USERMINI] : array();
     if (count($sessionArray) > 0) {
         $this->_login = ap_Utils::ArrayValue($sessionArray, '_login', $this->_login);
         $this->ClearSessionArray();
     }
 }
Beispiel #2
0
 function UpdateFromSessionArray()
 {
     $sessionArray = isset($_SESSION[CM_SESS_SUBADMIN]) ? $_SESSION[CM_SESS_SUBADMIN] : array();
     if (count($sessionArray) > 0) {
         $this->Id = ap_Utils::ArrayValue($sessionArray, 'Id', $this->Id);
         $this->Login = ap_Utils::ArrayValue($sessionArray, 'Login', $this->Login);
         $this->Password = ap_Utils::ArrayValue($sessionArray, 'Password', $this->Password);
         $this->Description = ap_Utils::ArrayValue($sessionArray, 'Description', $this->Description);
         $this->DomainIds = ap_Utils::ArrayValue($sessionArray, 'DomainIds', $this->DomainIds);
         $this->ClearSessionArray();
     }
 }
Beispiel #3
0
 function UpdateFromSessionArray()
 {
     $sessionArray = isset($_SESSION[WM_SESS_ACCOUNT]) ? $_SESSION[WM_SESS_ACCOUNT] : array();
     if (count($sessionArray) > 0) {
         $this->Id = ap_Utils::ArrayValue($sessionArray, 'Id', $this->Id);
         $this->IdUser = ap_Utils::ArrayValue($sessionArray, 'IdUser', $this->IdUser);
         $this->DomainId = ap_Utils::ArrayValue($sessionArray, 'DomainId', $this->DomainId);
         $this->DefaultAccount = ap_Utils::ArrayValue($sessionArray, 'DefaultAccount', $this->DefaultAccount);
         $this->Email = ap_Utils::ArrayValue($sessionArray, 'Email', $this->Email);
         $this->MailProtocol = ap_Utils::ArrayValue($sessionArray, 'MailProtocol', $this->MailProtocol);
         $this->MailIncHost = ap_Utils::ArrayValue($sessionArray, 'MailIncHost', $this->MailIncHost);
         $this->MailIncLogin = ap_Utils::ArrayValue($sessionArray, 'MailIncLogin', $this->MailIncLogin);
         $this->MailIncPassword = ap_Utils::ArrayValue($sessionArray, 'MailIncPassword', $this->MailIncPassword);
         $this->MailIncPort = ap_Utils::ArrayValue($sessionArray, 'MailIncPort', $this->MailIncPort);
         $this->MailOutHost = ap_Utils::ArrayValue($sessionArray, 'MailOutHost', $this->MailOutHost);
         $this->MailOutLogin = ap_Utils::ArrayValue($sessionArray, 'MailOutLogin', $this->MailOutLogin);
         $this->MailOutPassword = ap_Utils::ArrayValue($sessionArray, 'MailOutPassword', $this->MailOutPassword);
         $this->MailOutPort = ap_Utils::ArrayValue($sessionArray, 'MailOutPort', $this->MailOutPort);
         $this->MailOutAuthentication = ap_Utils::ArrayValue($sessionArray, 'MailOutAuthentication', $this->MailOutAuthentication);
         $this->AllowDirectMode = ap_Utils::ArrayValue($sessionArray, 'AllowDirectMode', $this->AllowDirectMode);
         $this->FriendlyName = ap_Utils::ArrayValue($sessionArray, 'FriendlyName', $this->FriendlyName);
         $this->UseFriendlyName = ap_Utils::ArrayValue($sessionArray, 'UseFriendlyName', $this->UseFriendlyName);
         $this->GetMailAtLogin = ap_Utils::ArrayValue($sessionArray, 'GetMailAtLogin', $this->GetMailAtLogin);
         $this->MailMode = ap_Utils::ArrayValue($sessionArray, 'MailMode', $this->MailMode);
         $this->MailsOnServerDays = ap_Utils::ArrayValue($sessionArray, 'MailsOnServerDays', $this->MailsOnServerDays);
         $this->MailboxLimit = ap_Utils::ArrayValue($sessionArray, 'MailboxLimit', $this->MailboxLimit);
         $this->AllowChangeSettings = ap_Utils::ArrayValue($sessionArray, 'AllowChangeSettings', $this->AllowChangeSettings);
         $this->ImapQuota = (int) ap_Utils::ArrayValue($sessionArray, 'ImapQuota', $this->ImapQuota);
         $this->MailsPerPage = (int) ap_Utils::ArrayValue($sessionArray, 'MailsPerPage', $this->MailsPerPage);
         $this->ContactsPerPage = (int) ap_Utils::ArrayValue($sessionArray, 'ContactsPerPage', $this->ContactsPerPage);
         $this->ViewMode = (int) ap_Utils::ArrayValue($sessionArray, 'ViewMode', $this->ViewMode);
         $this->DefaultSkin = ap_Utils::ArrayValue($sessionArray, 'DefaultSkin', $this->DefaultSkin);
         $this->DefaultIncCharset = ap_Utils::ArrayValue($sessionArray, 'DefaultIncCharset', $this->DefaultIncCharset);
         $this->DefaultTimeZone = ap_Utils::ArrayValue($sessionArray, 'DefaultTimeZone', $this->DefaultTimeZone);
         $this->DefaultLanguage = ap_Utils::ArrayValue($sessionArray, 'DefaultLanguage', $this->DefaultLanguage);
         $this->ClearSessionArray();
     }
     /*
     
     'Deleted' => $this->Deleted,
     'DefaultOrder' => $this->DefaultOrder,
     'Signature' => $this->Signature,
     'SignatureType' => $this->SignatureType,
     'SignatureOptions' => $this->SignatureOptions,
     'HideContacts' => $this->HideContacts,
     'Delimiter' => $this->Delimiter,
     'MailsPerPage' => $this->MailsPerPage,
     'WhiteListing' => $this->WhiteListing,
     'XSpam' => $this->XSpam,
     'LastLogin' => $this->LastLogin,
     'LoginsCount' => $this->LoginsCount,
     'DefaultSkin' => $this->DefaultSkin,
     'DefaultLanguage' => $this->DefaultLanguage,
     'DefaultIncCharset' => $this->DefaultIncCharset,
     'DefaultOutCharset' => $this->DefaultOutCharset,
     'DefaultTimeZone' => $this->DefaultTimeZone,			
     'DefaultDateFormat' => $this->DefaultDateFormat,
     'DefaultTimeFormat' => $this->DefaultTimeFormat,
     'HideFolders' => $this->HideFolders,
     'MailboxSize' => $this->MailboxSize,
     'AllowDhtmlEditor' => $this->AllowDhtmlEditor,			
     'DbCharset' => $this->DbCharset,			
     'HorizResizer' => $this->HorizResizer,			
     'VertResizer' => $this->VertResizer,			
     'Mark' => $this->Mark,
     'Reply' => $this->Reply,
     'ContactsPerPage' => $this->ContactsPerPage,
     'ViewMode' => $this->ViewMode
     */
 }
Beispiel #4
0
 function UpdateFromSessionArray()
 {
     $sessionArray = isset($_SESSION[WM_SESS_DOMAIN]) ? $_SESSION[WM_SESS_DOMAIN] : array();
     if (count($sessionArray) > 0) {
         $this->_id = ap_Utils::ArrayValue($sessionArray, '_id', $this->_id);
         $this->_name = ap_Utils::ArrayValue($sessionArray, '_name', $this->_name);
         $this->_mailProtocol = ap_Utils::ArrayValue($sessionArray, '_mailProtocol', $this->_mailProtocol);
         $this->_mailIncomingHost = ap_Utils::ArrayValue($sessionArray, '_mailIncomingHost', $this->_mailIncomingHost);
         $this->_mailIncomingPort = ap_Utils::ArrayValue($sessionArray, '_mailIncomingPort', $this->_mailIncomingPort);
         $this->_mailSmtpHost = ap_Utils::ArrayValue($sessionArray, '_mailSmtpHost', $this->_mailSmtpHost);
         $this->_mailSmtpPort = ap_Utils::ArrayValue($sessionArray, '_mailSmtpPort', $this->_mailSmtpPort);
         $this->_mailSmtpAuth = ap_Utils::ArrayValue($sessionArray, '_mailSmtpAuth', $this->_mailSmtpAuth);
         $this->_isInternal = ap_Utils::ArrayValue($sessionArray, '_isInternal', $this->_isInternal);
         $this->_globalAddrBook = ap_Utils::ArrayValue($sessionArray, '_globalAddrBook', $this->_globalAddrBook);
         $this->_ldapAuth = ap_Utils::ArrayValue($sessionArray, '_ldapAuth', $this->_ldapAuth);
         $this->ClearSessionArray();
     }
 }