Changeset 4744 for branches/2.2/mobile/login.php
- Timestamp:
- 07/14/11 15:18:41 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/login.php
r4695 r4744 17 17 $GLOBALS['sessionid'] = @$_GET['sessionid'] ? $_GET['sessionid'] : @$_COOKIE['sessionid']; 18 18 19 if(isset($GLOBALS['sessionid']) && $_GET['cd'] != 10 && $_GET['cd'] != 1) 20 start_prefered_app(); 19 if( isset($GLOBALS['sessionid']) ) 20 { 21 if( $_GET['cd'] != 10 && $_GET['cd'] != 1 && $_GET['cd'] !== 'logout_mobile' ) 22 { 23 start_prefered_app(); 24 } 25 } 21 26 22 27 if ( $GLOBALS['phpgw_info']['server']['use_https'] > 0 ) … … 83 88 function check_logoutcode($code) { 84 89 switch($code) { 90 case 'logout_mobile': 85 91 case 1: 86 92 logout(); … … 109 115 } 110 116 return lang('Your session could not be verified.'); 117 111 118 default: 112 119 return ''; … … 123 130 elseif(get_var('lem',array('GET','COOKIE')) && get_var('pem',array('GET','COOKIE'))) 124 131 { 125 if(!$_GET['cd'] || $_GET['cd'] == '1' || $_GET['cd'] == '10') { 126 $submit = True; 127 $login = base64_decode(get_var('lem',array('GET','COOKIE'))); 128 $passwd = base64_decode(get_var('pem',array('GET','COOKIE'))); 129 $passwd_type = 'text'; 130 } 131 else { 132 $GLOBALS['phpgw']->session->phpgw_setcookie('lem'); 133 $GLOBALS['phpgw']->session->phpgw_setcookie('pem'); 132 if( $_GET['cd'] !== 'logout_mobile' ) 133 { 134 if(!$_GET['cd'] || $_GET['cd'] == '1' || $_GET['cd'] == '10') 135 { 136 $submit = True; 137 $login = base64_decode(get_var('lem',array('GET','COOKIE'))); 138 $passwd = base64_decode(get_var('pem',array('GET','COOKIE'))); 139 $passwd_type = 'text'; 140 } 141 else 142 { 143 $GLOBALS['phpgw']->session->phpgw_setcookie('lem'); 144 $GLOBALS['phpgw']->session->phpgw_setcookie('pem'); 145 } 134 146 } 135 147 }
Note: See TracChangeset
for help on using the changeset viewer.