Revision 1037,
1.2 KB
checked in by amuller, 15 years ago
(diff) |
Ticket #559 - Correção de problema, usando caminho relativo
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[2] | 1 | <?php |
---|
[1037] | 2 | if(!isset($GLOBALS['phpgw_info'])){ |
---|
| 3 | $GLOBALS['phpgw_info']['flags'] = array( |
---|
| 4 | 'currentapp' => 'expressoMail1_2', |
---|
| 5 | 'nonavbar' => true, |
---|
| 6 | 'noheader' => true |
---|
| 7 | ); |
---|
| 8 | require_once '../header.inc.php'; |
---|
| 9 | } |
---|
| 10 | class user{ |
---|
[2] | 11 | |
---|
| 12 | function get_user(){ |
---|
| 13 | |
---|
| 14 | return "<br><font color='blue'>GET USER</font>". |
---|
| 15 | "<br>usuario =".$_SESSION['phpgw_info']['expressomail']['user']['userid']. |
---|
| 16 | "<br>senha =".$_SESSION['phpgw_info']['expressomail']['user']['passwd']; |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | function verify_user($params){ |
---|
| 20 | |
---|
| 21 | $userId = $params['userid']; |
---|
| 22 | $delay = $params['delay']; |
---|
| 23 | |
---|
| 24 | if($delay) |
---|
| 25 | sleep($delay); |
---|
| 26 | |
---|
| 27 | $result = ''; |
---|
| 28 | |
---|
| 29 | if($userId == $_SESSION['phpgw_info']['expressomail']['user']['userid']) |
---|
| 30 | $result = '<br><font color="green">VERIFY USER ... VERIFIED</font>'; |
---|
| 31 | else |
---|
| 32 | $result = '<br><font color="red">VERIFY USER ... NOT VERIFIED</font>'; |
---|
| 33 | |
---|
| 34 | return $result; |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | function verify_user_get($params){ |
---|
| 38 | |
---|
| 39 | return $params; |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | function verify_user_post($params){ |
---|
| 43 | |
---|
| 44 | return $this -> verify_user($params); |
---|
| 45 | } |
---|
| 46 | |
---|
| 47 | function get_email(){ |
---|
| 48 | return $_SESSION['phpgw_info']['expressomail']['user']['email']; |
---|
| 49 | } |
---|
| 50 | |
---|
| 51 | } |
---|
[1037] | 52 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.