Revision 1059,
995 bytes
checked in by amuller, 15 years ago
(diff) |
Ticket #559 - Removendo inclusão de header.inc.php nas classes e colocando no controler
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[2] | 1 | <?php |
---|
[1040] | 2 | |
---|
[1037] | 3 | class user{ |
---|
[2] | 4 | |
---|
| 5 | function get_user(){ |
---|
| 6 | |
---|
| 7 | return "<br><font color='blue'>GET USER</font>". |
---|
| 8 | "<br>usuario =".$_SESSION['phpgw_info']['expressomail']['user']['userid']. |
---|
| 9 | "<br>senha =".$_SESSION['phpgw_info']['expressomail']['user']['passwd']; |
---|
| 10 | } |
---|
| 11 | |
---|
| 12 | function verify_user($params){ |
---|
| 13 | |
---|
| 14 | $userId = $params['userid']; |
---|
| 15 | $delay = $params['delay']; |
---|
| 16 | |
---|
| 17 | if($delay) |
---|
| 18 | sleep($delay); |
---|
| 19 | |
---|
| 20 | $result = ''; |
---|
| 21 | |
---|
| 22 | if($userId == $_SESSION['phpgw_info']['expressomail']['user']['userid']) |
---|
| 23 | $result = '<br><font color="green">VERIFY USER ... VERIFIED</font>'; |
---|
| 24 | else |
---|
| 25 | $result = '<br><font color="red">VERIFY USER ... NOT VERIFIED</font>'; |
---|
| 26 | |
---|
| 27 | return $result; |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | function verify_user_get($params){ |
---|
| 31 | |
---|
| 32 | return $params; |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | function verify_user_post($params){ |
---|
| 36 | |
---|
| 37 | return $this -> verify_user($params); |
---|
| 38 | } |
---|
| 39 | |
---|
| 40 | function get_email(){ |
---|
| 41 | return $_SESSION['phpgw_info']['expressomail']['user']['email']; |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | } |
---|
[1037] | 45 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.