Revision 2,
994 bytes
checked in by niltonneto, 18 years ago
(diff) |
Removida todas as tags usadas pelo CVS ($Id, $Source).
Primeira versão no CVS externo.
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Line | |
---|
1 | <?php |
---|
2 | class user{ |
---|
3 | |
---|
4 | function get_user(){ |
---|
5 | |
---|
6 | return "<br><font color='blue'>GET USER</font>". |
---|
7 | "<br>usuario =".$_SESSION['phpgw_info']['expressomail']['user']['userid']. |
---|
8 | "<br>senha =".$_SESSION['phpgw_info']['expressomail']['user']['passwd']; |
---|
9 | } |
---|
10 | |
---|
11 | function verify_user($params){ |
---|
12 | |
---|
13 | $userId = $params['userid']; |
---|
14 | $delay = $params['delay']; |
---|
15 | |
---|
16 | if($delay) |
---|
17 | sleep($delay); |
---|
18 | |
---|
19 | $result = ''; |
---|
20 | |
---|
21 | if($userId == $_SESSION['phpgw_info']['expressomail']['user']['userid']) |
---|
22 | $result = '<br><font color="green">VERIFY USER ... VERIFIED</font>'; |
---|
23 | else |
---|
24 | $result = '<br><font color="red">VERIFY USER ... NOT VERIFIED</font>'; |
---|
25 | |
---|
26 | return $result; |
---|
27 | } |
---|
28 | |
---|
29 | function verify_user_get($params){ |
---|
30 | |
---|
31 | return $params; |
---|
32 | } |
---|
33 | |
---|
34 | function verify_user_post($params){ |
---|
35 | |
---|
36 | return $this -> verify_user($params); |
---|
37 | } |
---|
38 | |
---|
39 | function get_email(){ |
---|
40 | return $_SESSION['phpgw_info']['expressomail']['user']['email']; |
---|
41 | } |
---|
42 | |
---|
43 | } |
---|
44 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.