source: branches/2.5/phpgwapi/templates/news/logout_code.php @ 8232

Revision 8232, 1.5 KB checked in by douglas, 11 years ago (diff)

Ticket #0000 - Copiadas as alterações do Trunk. Versão final 2.5.1.

  • Property svn:executable set to *
Line 
1<?php   
2       
3        function check_logoutcode($code)
4        {
5                switch($code)
6                {
7                        case 1:
8                                return lang('You have been successfully logged out');
9                               
10                        case 2:
11                                return lang('Sorry, your login has expired');
12                               
13                        case 4:
14                                return lang('Cookies are required to login to this site.');
15                               
16                        case 5:
17                                return '<font color="FF0000">' . lang('Bad login or password') . '</font>';
18
19                        case 6:
20                                return '<font color="FF0000">' . lang('Your password has expired, and you do not have access to change it') . '</font>';
21                               
22                        case 98:
23                                return '<font color="FF0000">' . lang('Account is expired') . '</font>';
24                               
25                        case 99:
26                                return '<font color="FF0000">' . lang('Blocked, too many attempts(%1)! Retry in %2 minute(s)',$GLOBALS['phpgw_info']['server']['num_unsuccessful_id'],$GLOBALS['phpgw_info']['server']['block_time']) . '</font>';
27
28                        case 200:
29                            //return '<font color="FF0000">' . lang('Invalid code') . '</font>';
30                return '<font color="FF0000">' . lang('Bad login or password') . '</font>';
31                            break;
32
33                        case 10:
34                                $GLOBALS['phpgw']->session->phpgw_setcookie('sessionid');
35                                $GLOBALS['phpgw']->session->phpgw_setcookie('kp3');
36                                $GLOBALS['phpgw']->session->phpgw_setcookie('domain');
37
38                                //fix for bug php4 expired sessions bug
39                                if($GLOBALS['phpgw_info']['server']['sessions_type'] == 'php4')
40                                {
41                                        $GLOBALS['phpgw']->session->phpgw_setcookie(PHPGW_PHPSESSID);
42                                }
43
44                                return '<font color="#FF0000">' . lang('Your session could not be verified.') . '</font>';
45                               
46                        default:
47                                return '';
48                }
49        }
50
51?>
Note: See TracBrowser for help on using the repository browser.