~ubuntu-branches/ubuntu/quantal/squirrelmail/quantal

« back to all changes in this revision

Viewing changes to themes/greenhouse_effect.php

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2008-09-28 16:33:48 UTC
  • mfrom: (11.1.7 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080928163348-hgxf8au2d4zspabg
Tags: 2:1.4.15-3
Cookies sent over HTTPS will now be confined to HTTPS only
(cookie secure flag) and more support for the HTTPOnly cookie
attribute. Patch taken from upstream release.
(CVE-2008-3663, closes: #499942)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *          light greenish background.
8
8
 *
9
9
 * @author Joey Bump
10
 
 * @copyright © 2000-2006 The SquirrelMail Project Team
 
10
 * @copyright © 2000-2007 The SquirrelMail Project Team
11
11
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
12
 
 * @version $Id: greenhouse_effect.php,v 1.5.2.4 2006/02/03 22:27:56 jervfors Exp $
 
12
 * @version $Id: greenhouse_effect.php 12486 2007-06-27 16:28:52Z kink $
13
13
 * @package squirrelmail
14
14
 * @subpackage themes
15
15
 */
17
17
/** seed the random number generator **/
18
18
sq_mt_randomize();
19
19
 
20
 
for ($i = 0; $i <= 15; $i++) {
 
20
for ($i = 0; $i <= 16; $i++) {
21
21
    /* background/foreground toggle **/
22
 
    if (($i == 0) || ($i == 3) || ($i == 4) || ($i == 5)
23
 
         || ($i == 9) || ($i == 10) || ($i == 12)) {
 
22
    if ($i == 0 || $i == 3 || $i == 4 || $i == 5
 
23
         || $i == 9 || $i == 10 || $i == 12 || $i == 16) {
24
24
        /* background */
25
25
        $g = mt_rand(248,255);
26
26
        $r = mt_rand(110,248);
40
40
    $color[$i] = sprintf('#%02X%02X%02X',$r,$g,$b);
41
41
}
42
42
 
43
 
 
44
 
 
45
 
/**
46
 
 * Reference from  http://www.squirrelmail.org/wiki/CreatingThemes
47
 
 *   $color[0]   = '#xxxxxx';  // Title bar at the top of the page header
48
 
 *   $color[1]   = '#xxxxxx';  // Not currently used
49
 
 *   $color[2]   = '#xxxxxx';  // Error messages (usually red)
50
 
 *   $color[3]   = '#xxxxxx';  // Left folder list background color
51
 
 *   $color[4]   = '#xxxxxx';  // Normal background color
52
 
 *   $color[5]   = '#xxxxxx';  // Header of the message indexi
53
 
 *                             // (From, Date,Subject)
54
 
 *   $color[6]   = '#xxxxxx';  // Normal text on the left folder list
55
 
 *   $color[7]   = '#xxxxxx';  // Links in the right frame
56
 
 *   $color[8]   = '#xxxxxx';  // Normal text (usually black)
57
 
 *   $color[9]   = '#xxxxxx';  // Darker version of #0
58
 
 *   $color[10]  = '#xxxxxx';  // Darker version of #9
59
 
 *   $color[11]  = '#xxxxxx';  // Special folders color (INBOX, Trash, Sent)
60
 
 *   $color[12]  = '#xxxxxx';  // Alternate color for message list
61
 
 *                             // Alters between #4 and this one
62
 
 *   $color[13]  = '#xxxxxx';  // Color for quoted text -- > 1 quote
63
 
 *   $color[14]  = '#xxxxxx';  // Color for quoted text -- >> 2 or more
64
 
 **/
65
 
 
66
 
?>
 
 
b'\\ No newline at end of file'