Ignore:
Timestamp:
09/05/11 17:12:06 (13 years ago)
Author:
alexandrecorreia
Message:

Ticket #2260 - Sincronismo do branch2.2(versão 2.2.8) do modulo mobile para 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mobile/login.php

    r4277 r5037  
    158158                        $_SESSION['phpgw_info']['user']['preferences']['expressoMail'] = $preferences['expressoMail']; 
    159159                         
    160                         if($_POST['save_login'] == 'yes') 
     160                        if($_POST['save_login'] === 'on') 
    161161                        { 
    162162                                // Time to keep values into cookies 
     
    165165                                $GLOBALS['phpgw']->session->phpgw_setcookie('pem', base64_encode($passwd), $ttl);                       // pem = password 
    166166                        } 
    167                         start_prefered_app(); 
    168                 } 
    169         } 
    170         elseif ($_GET['lang']) 
    171         { 
    172                 $GLOBALS['phpgw_info']['user']['preferences']['common']['lang'] = $_GET['lang']; 
     167                         
     168                        if( isset($GLOBALS['sessionid']) ) 
     169                        { 
     170                                if( $_GET['cd'] != 10 && $_GET['cd'] != 1 && $_GET['cd'] !== 'logout_mobile' && $_GET['cd'] != 66 ) 
     171                                { 
     172                                        start_prefered_app(); 
     173                                } 
     174                        } 
     175                } 
    173176        } 
    174177        elseif(!isset($_COOKIE['last_loginid']) || !$prefs->account_id) 
Note: See TracChangeset for help on using the changeset viewer.