Revision 2360,
1.7 KB
checked in by amuller, 15 years ago
(diff) |
Ticket #1008 - Adicionando informações sobre licenças
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /*************************************************************************** |
---|
4 | * Expresso Livre * |
---|
5 | * http://www.expressolivre.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 | class user{ |
---|
14 | |
---|
15 | function get_user(){ |
---|
16 | |
---|
17 | return "<br><font color='blue'>GET USER</font>". |
---|
18 | "<br>usuario =".$_SESSION['phpgw_info']['expressomail']['user']['userid']. |
---|
19 | "<br>senha =".$_SESSION['phpgw_info']['expressomail']['user']['passwd']; |
---|
20 | } |
---|
21 | |
---|
22 | function verify_user($params){ |
---|
23 | |
---|
24 | $userId = $params['userid']; |
---|
25 | $delay = $params['delay']; |
---|
26 | |
---|
27 | if($delay) |
---|
28 | sleep($delay); |
---|
29 | |
---|
30 | $result = ''; |
---|
31 | |
---|
32 | if($userId == $_SESSION['phpgw_info']['expressomail']['user']['userid']) |
---|
33 | $result = '<br><font color="green">VERIFY USER ... VERIFIED</font>'; |
---|
34 | else |
---|
35 | $result = '<br><font color="red">VERIFY USER ... NOT VERIFIED</font>'; |
---|
36 | |
---|
37 | return $result; |
---|
38 | } |
---|
39 | |
---|
40 | function verify_user_get($params){ |
---|
41 | |
---|
42 | return $params; |
---|
43 | } |
---|
44 | |
---|
45 | function verify_user_post($params){ |
---|
46 | |
---|
47 | return $this -> verify_user($params); |
---|
48 | } |
---|
49 | |
---|
50 | function get_email(){ |
---|
51 | return $_SESSION['phpgw_info']['expressomail']['user']['email']; |
---|
52 | } |
---|
53 | |
---|
54 | } |
---|
55 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.