Revert to 1.15: we don't currently use this field but it's defined
[squirrelmail.git] / themes / spice_of_life.php
index 88e6bea14e3d7ee6ca4eef6a8d86ecc034c6bb90..a25d2e4f98665363cb04e45d6d89f38d207bd52c 100755 (executable)
@@ -8,7 +8,7 @@
  *    Comment: Generates random colors for each frame,
  *             featuring either a dark or light background.
  *
- * Copyright (c) 2000-2002 The SquirrelMail Project Team
+ * Copyright (c) 2000-2003 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * $Id$
@@ -23,7 +23,7 @@ $bg = mt_rand(0,1);
 /** range delimiter **/
 $bgrd = $bg * 128;
 
-for ($i = 0; $i <= 14; $i++) {
+for ($i = 0; $i <= 15; $i++) {
     /** background/foreground toggle **/
     if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12) {
         /** background **/
@@ -41,7 +41,7 @@ for ($i = 0; $i <= 14; $i++) {
     $b = mt_rand($cmin,$cmax);
 
     /** set array element as hex string with hashmark (for HTML output) **/
-    $color[$i] = sprintf("#%02X%02X%02X",$r,$g,$b);
+    $color[$i] = sprintf('#%02X%02X%02X',$r,$g,$b);
 }