source: branches/2.2/expressoMail1_2/inc/class.user.inc.php @ 1059

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 *
Line 
1<?php
2
3class user{
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        }
45?>
Note: See TracBrowser for help on using the repository browser.