]>
Commit | Line | Data |
---|---|---|
4d904140 | 1 | --- squirrelmail-1.2.8/plugins/username/setup.php.orig Wed May 2 20:01:39 2001 |
9e78a63f | 2 | +++ squirrelmail-1.2.8/plugins/username/setup.php Fri Sep 20 14:21:37 2002 |
3 | @@ -41,20 +41,27 @@ | |
4d904140 | 4 | return; |
5 | ||
6 | ?> | |
7 | -<table align=center cellpadding=0 cellspacing=0 border=0 bgcolor=<?php echo $color[10] ?>><tr><td> | |
8 | -<table width=100% cellpadding=2 cellspacing=1 border=0 bgcolor="<?php echo $color[5] ?>"><tr><td align=center> | |
9 | -<tt><?php | |
10 | - | |
11 | + | |
12 | +<table width=100% cellpadding=2 cellspacing=1 border=0 bgcolor="<?php echo $color[3] ?>"><tr><td align=center> | |
13 | +<tt><h3><?php | |
14 | + | |
15 | if ($show_username == 1) | |
16 | - echo $username; | |
9e78a63f | 17 | - if ($show_username == 2) |
4d904140 | 18 | - echo 'Logged in as: ' . $username; |
19 | - | |
20 | -?></tt> | |
21 | -</td></tr></table> | |
9e78a63f | 22 | + echo $username; |
23 | + if ($show_username == 2) { | |
24 | + $msgpl = 'Zalogowany jako: ' . $username; | |
25 | + $msgother = 'Logged in as: ' . $username; | |
4d904140 | 26 | + if (getPref($data_dir, $username, 'language') == pl_PL) |
9e78a63f | 27 | + echo $msgpl; |
28 | + else if ($squirrelmail_default_language = 'pl_PL' && getPref($data_dir, $username, 'language') == '') | |
29 | + echo $msgpl; | |
4d904140 | 30 | + else |
9e78a63f | 31 | + echo $msgother; |
32 | + } | |
4d904140 | 33 | + |
34 | +?></h3></tt> | |
35 | </td></tr></table> | |
36 | <br> | |
37 | -<? | |
38 | +<?php | |
39 | } | |
40 | ||
41 | function username_show_options() { | |
9e78a63f | 42 | @@ -105,10 +112,10 @@ |
4d904140 | 43 | } |
44 | ||
45 | function username_save_options() { | |
46 | - global $data_dir, $username, $username_in, $username_pos; | |
47 | + global $data_dir, $username, $username_in, $username_pos, $_POST; | |
48 | ||
49 | - setPref($data_dir, $username, 'show_username', $username_in); | |
50 | - setPref($data_dir, $username, 'show_username_pos', $username_pos); | |
51 | + setPref($data_dir, $username, 'show_username', $_POST['username_in']); | |
52 | + setPref($data_dir, $username, 'show_username_pos', $_POST['username_pos']); | |
53 | } | |
54 | ||
55 | function username_load_options() { |