Ignore:
Timestamp:
07/31/09 11:01:35 (15 years ago)
Author:
eduardoalex
Message:

Ticket #548 - Tornar o Expresso Offline opcional para o adm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/preferences/index.php

    r35 r1231  
    2323                'pref' => 'index.tpl' 
    2424        ); 
     25 
     26        //Check preferences that influences the hooks 
     27        $c = CreateObject('phpgwapi.config','expressoMail1_2'); 
     28    $c->read_repository(); 
     29    $current_config = $c->config_data; 
     30        $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['enable_expresso_offline'] = $current_config['enable_expresso_offline']; 
    2531 
    2632        $pref_tpl->set_file($templates); 
     
    136142                                $url = 'https://' . $_SERVER['HTTP_HOST'] . $GLOBALS['phpgw_info']['server']['webserver_url'] . '/preferences/changepassword.php'; 
    137143                        } 
     144 
     145                        if($text == 'Expresso Offline' &&  
     146                                $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['enable_expresso_offline']!='True') 
     147                                continue;                        
    138148                        section_item($url,lang($text)); 
    139149                } 
Note: See TracChangeset for help on using the changeset viewer.