source: sandbox/jabberit_messenger/trophy_expresso/inc/class.CommonFunctions.inc.php @ 2607

Revision 2607, 541 bytes checked in by alexandrecorreia, 14 years ago (diff)

Ticket #986 - Codificacao da senha para nao passar em texto puro

Line 
1<?php
2
3class CommonFunctions
4{
5        private $userJabber;
6        private $password;
7       
8        function __construct()
9        {
10                $this->userJabber       = $_SESSION['phpgw_info']['jabberit_messenger']['user_jabber']."@".$_SESSION['phpgw_info']['jabberit_messenger']['name_jabberit'];
11                $this->password         = $_SESSION['phpgw_info']['jabberit_messenger']['passwd'];
12        }
13
14        function getUserCurrentUserJabber()
15        {
16                return "YWxleG5K87W".base64_encode($this->userJabber);
17        }       
18
19        function getUserCurrentPassword()
20        {
21                return "TWxGeG55K7W".base64_encode($this->password);
22        }       
23       
24}
25
26?>
Note: See TracBrowser for help on using the repository browser.