Changeset 5304 in subversion
- Timestamp:
- Oct 3, 2011 1:55:29 PM (20 months ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcmail.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r5299 r5304 2 2 =========================== 3 3 4 - Fix namespace handling in special folders settings (#1488112) 4 5 - Disable time limit for CLI scripts (#1488109) 5 6 - Fix misleading display when chaning editor type (#1488104) -
trunk/roundcubemail/program/include/rcmail.php
r5285 r5304 731 731 $this->session->set_keep_alive($keep_alive); 732 732 } 733 733 734 734 $this->session->set_secret($this->config->get('des_key') . $_SERVER['HTTP_USER_AGENT']); 735 735 $this->session->set_ip_check($this->config->get('ip_check')); … … 841 841 return false; 842 842 843 $this->set_imap_prop();844 845 843 // user already registered -> update user's record 846 844 if (is_object($user)) { 847 // fix some old settings according to namespace prefix848 $this->fix_namespace_settings($user);849 850 // create default folders on first login851 if (!$user->data['last_login'] && $config['create_default_folders'])852 $this->imap->create_default_folders();853 845 // update last login timestamp 854 846 $user->touch(); … … 858 850 if ($created = rcube_user::create($username, $host)) { 859 851 $user = $created; 860 861 // fix default settings according to namespace prefix862 $this->fix_namespace_settings($user);863 864 // create default folders on first login865 if ($config['create_default_folders'])866 $this->imap->create_default_folders();867 852 } 868 853 else { … … 884 869 // login succeeded 885 870 if (is_object($user) && $user->ID) { 871 // Configure environment 886 872 $this->set_user($user); 873 $this->set_imap_prop(); 887 874 $this->session_configure(); 875 876 // fix some old settings according to namespace prefix 877 $this->fix_namespace_settings($user); 878 879 // create default folders on first login 880 if ($config['create_default_folders'] && (!empty($created) || empty($user->data['last_login']))) { 881 $this->imap->create_default_folders(); 882 } 888 883 889 884 // set session vars … … 895 890 $_SESSION['password'] = $this->encrypt($pass); 896 891 $_SESSION['login_time'] = mktime(); 897 892 898 893 if (isset($_REQUEST['_timezone']) && $_REQUEST['_timezone'] != '_default_') 899 894 $_SESSION['timezone'] = floatval($_REQUEST['_timezone']); … … 1568 1563 // use strtr behaviour of going through source string once 1569 1564 $cmd = strtr($cmd, $replacements); 1570 1565 1571 1566 return (string)shell_exec($cmd); 1572 1567 } … … 1604 1599 } 1605 1600 } 1606 1601 1607 1602 /** 1608 1603 * Returns current action filename … … 1634 1629 return; 1635 1630 1636 $prefs = $ user->get_prefs();1637 if ( empty($prefs) || $prefs['namespace_fixed'])1631 $prefs = $this->config->all(); 1632 if (!empty($prefs['namespace_fixed'])) 1638 1633 return; 1639 1634
Note: See TracChangeset
for help on using the changeset viewer.
