Changeset 1231


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

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

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/templates/default/config.tpl

    r689 r1231  
    1212   <tr bgcolor="{row_off}"> 
    1313    <td colspan="2"><b>{lang_ExpressoMail_settings}</b></td> 
     14   </tr> 
     15   <tr class="{row_on}"> 
     16    <td>{lang_Would_you_like_to_use_expresso_offline?}:</td> 
     17    <td> 
     18     <select name="newsettings[enable_expresso_offline]"> 
     19      <option value="">{lang_No}</option> 
     20      <option value="True"{selected_enable_expresso_offline_True}>{lang_Yes}</option> 
     21     </select> 
     22    </td> 
    1423   </tr> 
    1524        <tr class="{row_off}"> 
  • 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.