Changeset 563 for trunk/jabberit_messenger/inc/login.php
- Timestamp:
- 01/05/09 09:25:35 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jabberit_messenger/inc/login.php
r551 r563 13 13 define('PHPGW_API_INC','../../phpgwapi/inc'); 14 14 require_once(PHPGW_API_INC . '/class.Template.inc.php'); 15 require_once('class.db_im.inc.php'); 15 16 16 17 if(isset($_SESSION['phpgw_info']['jabberit_messenger']['name_jabberit'])) … … 19 20 $path = $_SESSION['phpgw_info']['jabberit_messenger']['webserver_url']; 20 21 $SERVER_EXPRESSO = $_SERVER['HTTP_HOST'] . $path; 21 22 // Type Protocol http / https 23 $protocol = trim("http"); 22 23 /** 24 ****** Type Protocol http / https ********************************************************** 25 * Esta variável é carregada no header.inc.php, onde é possível definir 26 * se será com http ou https. Verifique em seu arquivo header.inc.php como está configurada 27 * a variável $GLOBALS['phpgw_info']['server']['use_https']. 28 * Abaixo segue esquema : 29 * Expresso 0 = Sem https 30 * Expresso 1 = Com https apenas no login 31 * Expresso 2 = Completo 32 ********************************************************************************************* 33 **/ 34 35 $PROTOCOL = trim("http"); 24 36 if( $_SESSION['phpgw_info']['jabberit_messenger']['use_https'] === 2 ) 25 $ protocol= trim("https");26 37 $PROTOCOL = trim("https"); 38 27 39 // Uid user 28 40 $uid = $_SESSION['phpgw_info']['jabberit_messenger']['user']; … … 36 48 // FirstName 37 49 $CnName = explode(" ",$_SESSION['phpgw_info']['jabberit_messenger']['fullname']); 50 51 // Preferences 52 $obj = new db_im(); 53 $preferences = $obj->getPreferences(); 54 $preferences = substr($preferences,(strpos($preferences,";") + 1), strlen($preferences)); 55 $preferences = explode(":", $preferences); 38 56 39 57 if(is_array($organization)) … … 78 96 $template->set_var("value_userproxy",$_SESSION['phpgw_info']['jabberit_messenger']['use_proxy_java']); 79 97 $template->set_var("value_expresso",$SERVER_EXPRESSO); 80 $template->set_var("value_use_https", $ protocol);98 $template->set_var("value_use_https", $PROTOCOL); 81 99 $template->set_var("value_company", $_SESSION['phpgw_info']['jabberit_messenger']['name_company']); 82 100 $template->set_var("value_cnname",$CnName[0]); 101 $template->set_var("value_preference_userOfflineJabberit", strtoupper($preferences[1])); 83 102 $template->set_file(Array('jabberit_messenger' => 'jabberIM.tpl')); 84 103 $template->set_block('jabberit_messenger','index');
Note: See TracChangeset
for help on using the changeset viewer.