Changeset 4131 for trunk/mobile/login.php
- Timestamp:
- 04/25/11 16:04:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mobile/login.php
r4129 r4131 13 13 ); 14 14 15 include ('../header.inc.php');16 include ('./mobile_header.inc.php');15 include_once('../header.inc.php'); 16 include_once('./mobile_header.inc.php'); 17 17 $GLOBALS['sessionid'] = @$_GET['sessionid'] ? $_GET['sessionid'] : @$_COOKIE['sessionid']; 18 18 … … 20 20 start_prefered_app(); 21 21 22 if ($GLOBALS['phpgw_info']['server']['use_https'] > 0) { 23 if ($_SERVER['HTTPS'] != 'on') { 24 $proxies=explode(',',$_SERVER['HTTP_X_FORWARDED_HOST']); 22 if ( $GLOBALS['phpgw_info']['server']['use_https'] > 0 ) 23 { 24 if ($_SERVER['HTTPS'] != 'on') 25 { 26 $proxies = explode(',',$_SERVER['HTTP_X_FORWARDED_HOST']); 25 27 $fwConstruct = isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $proxies[0] : $_SERVER['HTTP_HOST']; 26 28 Header('Location: https://' . $fwConstruct . '/' . $_SERVER['REQUEST_URI']); … … 48 50 $browser = CreateObject('mobile.browser'); 49 51 50 switch ($browser->get_platform()) { 52 switch ($browser->get_platform()) 53 { 51 54 case browser::PLATFORM_IPHONE: 52 55 case browser::PLATFORM_IPOD: … … 116 119 } 117 120 } 118 119 else{121 else 122 { 120 123 $passwd = $_POST['passwd']; 121 124 $passwd_type = $_POST['passwd_type']; 122 125 } 123 126 124 if( isset($passwd_type) || $_POST['submitit_x'] || $_POST['submitit_y'] || $submit)127 if( isset($passwd_type) || $_POST['submitit_x'] || $_POST['submitit_y'] || $submit ) 125 128 { 126 129 if( !get_var('pem',array('GET','COOKIE')) && getenv('REQUEST_METHOD') != 'POST' … … 165 168 } 166 169 } 167 elseif ($_GET['lang']) { 170 elseif ($_GET['lang']) 171 { 168 172 $GLOBALS['phpgw_info']['user']['preferences']['common']['lang'] = $_GET['lang']; 169 173 } 170 elseif(!isset($_COOKIE['last_loginid']) || !$prefs->account_id) { 174 elseif(!isset($_COOKIE['last_loginid']) || !$prefs->account_id) 175 { 171 176 list($lang) = explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']); 172 177 $GLOBALS['phpgw_info']['user']['preferences']['common']['lang'] = $lang;
Note: See TracChangeset
for help on using the changeset viewer.