[1121] | 1 | <?php |
---|
| 2 | /**************************************************************************/ |
---|
| 3 | ini_set("display_errors","1"); |
---|
| 4 | $GLOBALS['phpgw_info']['flags'] = array( |
---|
| 5 | 'currentapp' => 'expressoMail1_2', |
---|
| 6 | 'noheader' => True, |
---|
| 7 | 'nonavbar' => True, |
---|
| 8 | 'enable_nextmatchs_class' => True |
---|
| 9 | ); |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | require_once('../header.inc.php'); |
---|
| 13 | |
---|
| 14 | |
---|
| 15 | $GLOBALS['phpgw']->common->phpgw_header(); |
---|
| 16 | print parse_navbar(); |
---|
| 17 | |
---|
| 18 | $GLOBALS['phpgw']->template->set_file(array( |
---|
| 19 | 'expressoMail_prefs' => 'offline_preferences.tpl' |
---|
| 20 | )); |
---|
| 21 | |
---|
| 22 | $GLOBALS['phpgw']->template->set_var('url_offline','offline.php'); |
---|
| 23 | $GLOBALS['phpgw']->template->set_var('url_icon','templates/default/images/offline.png'); |
---|
| 24 | $GLOBALS['phpgw']->template->set_var('user_uid',$GLOBALS['phpgw_info']['user']['account_id']); |
---|
| 25 | $GLOBALS['phpgw']->template->set_var('user_login',$GLOBALS['phpgw_info']['user']['account_lid']); |
---|
| 26 | $GLOBALS['phpgw']->template->set_var('lang_install_offline',lang('Install Offline')); |
---|
| 27 | $GLOBALS['phpgw']->template->set_var('lang_pass_offline',lang('Offline Pass')); |
---|
| 28 | $GLOBALS['phpgw']->template->set_var('lang_expresso_offline',lang('Expresso Offline')); |
---|
| 29 | $GLOBALS['phpgw']->template->set_var('lang_uninstall_offline',lang('Uninstall Offline')); |
---|
| 30 | $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?')); |
---|
| 31 | $GLOBALS['phpgw']->template->set_var('lang_offline_installed',lang('Offline success installed')); |
---|
| 32 | $GLOBALS['phpgw']->template->set_var('lang_offline_uninstalled',lang('Offline success uninstalled')); |
---|
| 33 | $GLOBALS['phpgw']->template->set_var('lang_only_spaces_not_allowed',lang('The password cant have only spaces')); |
---|
| 34 | $GLOBALS['phpgw']->template->set_var('go_back','../preferences/'); |
---|
| 35 | |
---|
| 36 | $GLOBALS['phpgw']->template->set_var('value_save_in_folder',$o_folders); |
---|
| 37 | $GLOBALS['phpgw']->template->set_var('lang_save',lang('Save')); |
---|
| 38 | $GLOBALS['phpgw']->template->set_var('lang_cancel',lang('Cancel')); |
---|
[3533] | 39 | |
---|
| 40 | $proxies=explode(',',$_SERVER['HTTP_X_FORWARDED_HOST']); |
---|
| 41 | if ($GLOBALS['phpgw_info']['server']['use_https'] != 2) |
---|
| 42 | { |
---|
| 43 | $fwConstruct = 'http://'; |
---|
| 44 | } |
---|
| 45 | else |
---|
| 46 | { |
---|
| 47 | $fwConstruct = 'https://'; |
---|
| 48 | } |
---|
| 49 | $fwConstruct .= isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $proxies[0] : $_SERVER['HTTP_HOST']; |
---|
| 50 | $GLOBALS['phpgw']->template->set_var('root',$fwConstruct); |
---|
| 51 | $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] | 52 | $GLOBALS['phpgw']->template->set_var('save_action',$GLOBALS['phpgw']->link('/'.'expressoMail1_2'.'/preferences.php')); |
---|
| 53 | $GLOBALS['phpgw']->template->set_var('th_bg',$GLOBALS['phpgw_info']["theme"][th_bg]); |
---|
| 54 | |
---|
| 55 | $tr_color = $GLOBALS['phpgw']->nextmatchs->alternate_row_color($tr_color); |
---|
| 56 | $GLOBALS['phpgw']->template->set_var('tr_color1',$GLOBALS['phpgw_info']['theme']['row_on']); |
---|
| 57 | $GLOBALS['phpgw']->template->set_var('tr_color2',$GLOBALS['phpgw_info']['theme']['row_off']); |
---|
| 58 | |
---|
| 59 | $GLOBALS['phpgw']->template->parse('out','expressoMail_prefs',True); |
---|
| 60 | $GLOBALS['phpgw']->template->p('out'); |
---|
| 61 | // Com o Módulo do IM habilitado, ocorre um erro no IE |
---|
| 62 | //$GLOBALS['phpgw']->common->phpgw_footer(); |
---|
| 63 | ?> |
---|