]> git.pld-linux.org Git - packages/squirrelmail.git/blob - squirrelmail-username.patch
- added alias for apache
[packages/squirrelmail.git] / squirrelmail-username.patch
1 --- squirrelmail-1.2.8/plugins/username/setup.php.orig  Wed May  2 20:01:39 2001
2 +++ squirrelmail-1.2.8/plugins/username/setup.php       Fri Sep 20 14:21:37 2002
3 @@ -41,20 +41,27 @@
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;
17 -      if ($show_username == 2)
18 -          echo 'Logged in as: ' . $username;
19 -       
20 -?></tt>
21 -</td></tr></table>
22 +         echo $username;
23 +      if ($show_username == 2) {
24 +         $msgpl = 'Zalogowany jako: ' .  $username;
25 +        $msgother = 'Logged in as: ' .  $username;
26 +        if (getPref($data_dir, $username, 'language') == pl_PL)
27 +           echo $msgpl;
28 +        else if ($squirrelmail_default_language = 'pl_PL' && getPref($data_dir, $username, 'language') == '')
29 +           echo $msgpl;
30 +        else
31 +           echo $msgother;
32 +        }   
33 +
34 +?></h3></tt>
35  </td></tr></table>
36  <br>
37 -<?
38 +<?php
39     }
40  
41     function username_show_options() {
42 @@ -105,10 +112,10 @@
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() {
This page took 0.036643 seconds and 3 git commands to generate.