Revision 1040,
1.2 KB
checked in by amuller, 15 years ago
(diff) |
Ticket #559 - Atualização de download de arquivos e sessão
|
-
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 | } |
---|
[1040] | 9 | require_once '../header.inc.php'; |
---|
| 10 | |
---|
[1037] | 11 | class user{ |
---|
[2] | 12 | |
---|
| 13 | function get_user(){ |
---|
| 14 | |
---|
| 15 | return "<br><font color='blue'>GET USER</font>". |
---|
| 16 | "<br>usuario =".$_SESSION['phpgw_info']['expressomail']['user']['userid']. |
---|
| 17 | "<br>senha =".$_SESSION['phpgw_info']['expressomail']['user']['passwd']; |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | function verify_user($params){ |
---|
| 21 | |
---|
| 22 | $userId = $params['userid']; |
---|
| 23 | $delay = $params['delay']; |
---|
| 24 | |
---|
| 25 | if($delay) |
---|
| 26 | sleep($delay); |
---|
| 27 | |
---|
| 28 | $result = ''; |
---|
| 29 | |
---|
| 30 | if($userId == $_SESSION['phpgw_info']['expressomail']['user']['userid']) |
---|
| 31 | $result = '<br><font color="green">VERIFY USER ... VERIFIED</font>'; |
---|
| 32 | else |
---|
| 33 | $result = '<br><font color="red">VERIFY USER ... NOT VERIFIED</font>'; |
---|
| 34 | |
---|
| 35 | return $result; |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | function verify_user_get($params){ |
---|
| 39 | |
---|
| 40 | return $params; |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | function verify_user_post($params){ |
---|
| 44 | |
---|
| 45 | return $this -> verify_user($params); |
---|
| 46 | } |
---|
| 47 | |
---|
| 48 | function get_email(){ |
---|
| 49 | return $_SESSION['phpgw_info']['expressomail']['user']['email']; |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | } |
---|
[1037] | 53 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.