source: companies/serpro/jabberit_messenger/inc/login.php @ 903

Revision 903, 2.5 KB checked in by niltonneto, 15 years ago (diff)

Importacao inicial do Expresso do Serpro

Line 
1<?php
2  /***************************************************************************\
3  *  Expresso - Expresso Messenger                                            *
4  *     - Alexandre Correia / Rodrigo Souza                                                               *
5  *     - JETI - http://jeti-im.org/                                                                              *
6  * ------------------------------------------------------------------------- *
7  *  This program is free software; you can redistribute it and/or modify it  *
8  *  under the terms of the GNU General Public License as published by the    *
9  *  Free Software Foundation; either version 2 of the License, or (at your   *
10  *  option) any later version.                                               *
11  \***************************************************************************/
12
13        define('PHPGW_API_INC','../../phpgwapi/inc');
14        require_once(PHPGW_API_INC . '/class.Template.inc.php');
15
16        if(isset($_SESSION['phpgw_info']['jabberit_messenger']['name_jabberit']))
17    {
18                $path = $_SESSION['phpgw_info']['jabberit_messenger']['webserver_url'];
19                $SERVER_EXPRESSO = $_SERVER['HTTP_HOST'] . $path;
20               
21                $template = new Template('templates/default');
22                $template->set_var("path", $path);
23                $template->set_var("file0", filemtime("applet.jar"));
24                $template->set_var("file1", filemtime("plugins/groupchat.jar"));
25                $template->set_var("file2", filemtime("plugins/sound.jar"));
26                $template->set_var("file3", filemtime("plugins/xhtml.jar"));           
27                $template->set_var("value_server",$_SESSION['phpgw_info']['jabberit_messenger']['name_jabberit']);
28                $template->set_var("value_host",$_SESSION['phpgw_info']['jabberit_messenger']['name_jabberit']);                       
29                $template->set_var("value_port",$_SESSION['phpgw_info']['jabberit_messenger']['port_jabberit']);
30                $template->set_var("value_resource",$_SESSION['phpgw_info']['jabberit_messenger']['resource_jabberit']);
31                $template->set_var("value_user",$_SESSION['phpgw_info']['jabberit_messenger']['user']);
32                $template->set_var("value_password",$_SESSION['phpgw_info']['jabberit_messenger']['passwd']);
33                $template->set_var("value_ssl",$_SESSION['phpgw_info']['jabberit_messenger']['use_ssl_jabberit']);
34                $template->set_var("value_hideloginstatus","TRUE");
35                $template->set_var("value_userproxy",$_SESSION['phpgw_info']['jabberit_messenger']['use_proxy_java']);
36                $template->set_var("value_expresso",$SERVER_EXPRESSO);
37                $template->set_var("value_company", $_SESSION['phpgw_info']['jabberit_messenger']['name_company']);
38                $template->set_file(Array('jabberit_messenger' => 'jabberIM.tpl'));
39                $template->set_block('jabberit_messenger','index');
40                $template->pfp('out','index');
41    }
42
43?>
Note: See TracBrowser for help on using the repository browser.