[1121] | 1 | <?php |
---|
[5509] | 2 | /*************************************************************************** |
---|
| 3 | * Expresso Livre * |
---|
| 4 | * http://www.expressolivre.org * |
---|
| 5 | * -------------------------------------------- * |
---|
| 6 | * This program is free software; you can redistribute it and/or modify it * |
---|
| 7 | * under the terms of the GNU General Public License as published by the * |
---|
| 8 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
| 9 | * option) any later version. * |
---|
| 10 | \**************************************************************************/ |
---|
[1121] | 11 | /**************************************************************************/ |
---|
| 12 | ini_set("display_errors","1"); |
---|
| 13 | $GLOBALS['phpgw_info']['flags'] = array( |
---|
| 14 | 'currentapp' => 'expressoMail1_2', |
---|
| 15 | 'noheader' => True, |
---|
| 16 | 'nonavbar' => True, |
---|
| 17 | 'enable_nextmatchs_class' => True |
---|
| 18 | ); |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | require_once('../header.inc.php'); |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | $GLOBALS['phpgw']->common->phpgw_header(); |
---|
| 25 | print parse_navbar(); |
---|
| 26 | |
---|
| 27 | $GLOBALS['phpgw']->template->set_file(array( |
---|
| 28 | 'expressoMail_prefs' => 'offline_preferences.tpl' |
---|
| 29 | )); |
---|
| 30 | |
---|
| 31 | $GLOBALS['phpgw']->template->set_var('url_offline','offline.php'); |
---|
| 32 | $GLOBALS['phpgw']->template->set_var('url_icon','templates/default/images/offline.png'); |
---|
| 33 | $GLOBALS['phpgw']->template->set_var('user_uid',$GLOBALS['phpgw_info']['user']['account_id']); |
---|
| 34 | $GLOBALS['phpgw']->template->set_var('user_login',$GLOBALS['phpgw_info']['user']['account_lid']); |
---|
| 35 | $GLOBALS['phpgw']->template->set_var('lang_install_offline',lang('Install Offline')); |
---|
| 36 | $GLOBALS['phpgw']->template->set_var('lang_pass_offline',lang('Offline Pass')); |
---|
| 37 | $GLOBALS['phpgw']->template->set_var('lang_expresso_offline',lang('Expresso Offline')); |
---|
| 38 | $GLOBALS['phpgw']->template->set_var('lang_uninstall_offline',lang('Uninstall Offline')); |
---|
| 39 | $GLOBALS['phpgw']->template->set_var('lang_gears_redirect',lang('To use local messages you have to install google gears. Would you like to be redirected to gears installation page?')); |
---|
| 40 | $GLOBALS['phpgw']->template->set_var('lang_offline_installed',lang('Offline success installed')); |
---|
| 41 | $GLOBALS['phpgw']->template->set_var('lang_offline_uninstalled',lang('Offline success uninstalled')); |
---|
| 42 | $GLOBALS['phpgw']->template->set_var('lang_only_spaces_not_allowed',lang('The password cant have only spaces')); |
---|
| 43 | $GLOBALS['phpgw']->template->set_var('go_back','../preferences/'); |
---|
| 44 | |
---|
| 45 | $GLOBALS['phpgw']->template->set_var('value_save_in_folder',$o_folders); |
---|
| 46 | $GLOBALS['phpgw']->template->set_var('lang_save',lang('Save')); |
---|
| 47 | $GLOBALS['phpgw']->template->set_var('lang_cancel',lang('Cancel')); |
---|
[3533] | 48 | |
---|
| 49 | $proxies=explode(',',$_SERVER['HTTP_X_FORWARDED_HOST']); |
---|
| 50 | if ($GLOBALS['phpgw_info']['server']['use_https'] != 2) |
---|
| 51 | { |
---|
| 52 | $fwConstruct = 'http://'; |
---|
| 53 | } |
---|
| 54 | else |
---|
| 55 | { |
---|
| 56 | $fwConstruct = 'https://'; |
---|
| 57 | } |
---|
| 58 | $fwConstruct .= isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $proxies[0] : $_SERVER['HTTP_HOST']; |
---|
| 59 | $GLOBALS['phpgw']->template->set_var('root',$fwConstruct); |
---|
| 60 | $GLOBALS['phpgw']->template->set_var('offline_install_msg',lang("If you want to install a desktop shortcut for accessing the offline ExpressoMail please confirm it after pressing the Install offline button. </br> The application also can be accessed using the URL:" )); |
---|
[1121] | 61 | $GLOBALS['phpgw']->template->set_var('th_bg',$GLOBALS['phpgw_info']["theme"][th_bg]); |
---|
| 62 | |
---|
| 63 | $tr_color = $GLOBALS['phpgw']->nextmatchs->alternate_row_color($tr_color); |
---|
| 64 | $GLOBALS['phpgw']->template->set_var('tr_color1',$GLOBALS['phpgw_info']['theme']['row_on']); |
---|
| 65 | $GLOBALS['phpgw']->template->set_var('tr_color2',$GLOBALS['phpgw_info']['theme']['row_off']); |
---|
| 66 | |
---|
| 67 | $GLOBALS['phpgw']->template->parse('out','expressoMail_prefs',True); |
---|
| 68 | $GLOBALS['phpgw']->template->p('out'); |
---|
| 69 | // Com o Módulo do IM habilitado, ocorre um erro no IE |
---|
| 70 | //$GLOBALS['phpgw']->common->phpgw_footer(); |
---|
| 71 | ?> |
---|