source: trunk/expressoMail1_2/inc/class.user.inc.php @ 1036

Revision 1036, 1.2 KB checked in by amuller, 15 years ago (diff)

Ticket #559 - Atualização de segurança

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