95b5b26d |
1 | <?php |
d88b6310 |
2 | |
3 | /** |
c4309fbd |
4 | * Name: Greenhouse Effect |
5 | * @author Joey Bump |
6 | * Date: October 20, 2001 |
7 | * Comment: This theme generates random colors, featuring a |
8 | * light greenish background. |
d88b6310 |
9 | * |
82d304a0 |
10 | * Copyright (c) 2000-2004 The SquirrelMail Project Team |
d88b6310 |
11 | * Licensed under the GNU GPL. For full terms see the file COPYING. |
12 | * |
13 | * $Id$ |
c4309fbd |
14 | * @package squirrelmail |
15 | * @subpackage themes |
d88b6310 |
16 | */ |
17 | |
18 | /** seed the random number generator **/ |
19 | sq_mt_randomize(); |
20 | |
ecf5c1bd |
21 | for ($i = 0; $i <= 15; $i++) { |
d88b6310 |
22 | /* background/foreground toggle **/ |
23 | if (($i == 0) || ($i == 3) || ($i == 4) || ($i == 5) |
24 | || ($i == 9) || ($i == 10) || ($i == 12)) { |
25 | /* background */ |
26 | $g = mt_rand(248,255); |
27 | $r = mt_rand(110,248); |
28 | $b = mt_rand(109,$r); |
29 | } else { |
30 | /* text */ |
31 | $cmin = 0; |
32 | $cmax = 96; |
33 | |
34 | /** generate random color **/ |
35 | $b = mt_rand($cmin,$cmax); |
36 | $g = mt_rand($cmin,$cmax); |
37 | $r = mt_rand($cmin,$cmax); |
38 | } |
39 | |
40 | /** set array element as hex string with hashmark (for HTML output) **/ |
1681f4d9 |
41 | $color[$i] = sprintf('#%02X%02X%02X',$r,$g,$b); |
ecf5c1bd |
42 | } |
d88b6310 |
43 | |
44 | |
45 | |
46 | /** |
47 | * Reference from http://www.squirrelmail.org/wiki/CreatingThemes |
48 | * $color[0] = '#xxxxxx'; // Title bar at the top of the page header |
49 | * $color[1] = '#xxxxxx'; // Not currently used |
50 | * $color[2] = '#xxxxxx'; // Error messages (usually red) |
51 | * $color[3] = '#xxxxxx'; // Left folder list background color |
52 | * $color[4] = '#xxxxxx'; // Normal background color |
53 | * $color[5] = '#xxxxxx'; // Header of the message indexi |
54 | * // (From, Date,Subject) |
55 | * $color[6] = '#xxxxxx'; // Normal text on the left folder list |
56 | * $color[7] = '#xxxxxx'; // Links in the right frame |
57 | * $color[8] = '#xxxxxx'; // Normal text (usually black) |
58 | * $color[9] = '#xxxxxx'; // Darker version of #0 |
59 | * $color[10] = '#xxxxxx'; // Darker version of #9 |
60 | * $color[11] = '#xxxxxx'; // Special folders color (INBOX, Trash, Sent) |
61 | * $color[12] = '#xxxxxx'; // Alternate color for message list |
62 | * // Alters between #4 and this one |
63 | * $color[13] = '#xxxxxx'; // Color for quoted text -- > 1 quote |
64 | * $color[14] = '#xxxxxx'; // Color for quoted text -- >> 2 or more |
65 | **/ |
95b5b26d |
66 | |
eb548244 |
67 | ?> |