documenting one more get var
[squirrelmail.git] / themes / spice_of_life.php
index 88e6bea14e3d7ee6ca4eef6a8d86ecc034c6bb90..e19b235cb2ada26a76e146a02dfd7f6b018a6a63 100755 (executable)
@@ -1,17 +1,17 @@
 <?php
 
 /**
- * spice_of_life.php
- *    Name:    Spice of Life
- *    Author:  Jorey Bump
- *    Date:    October 20, 2001
- *    Comment: Generates random colors for each frame,
- *             featuring either a dark or light background.
+ * Name:   Spice of Life
+ * Date:   October 20, 2001
+ * Comment Generates random colors for each frame,
+ *         featuring either a dark or light background.
  *
- * Copyright (c) 2000-2002 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
- * $Id$
+ * @author Jorey Bump
+ * @copyright &copy; 2000-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package squirrelmail
+ * @subpackage themes
  */
 
 /** seed the random number generator **/
@@ -19,11 +19,11 @@ sq_mt_randomize();
 
 /** light(1) or dark(0) background? **/
 $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);
 }
 
 
@@ -65,4 +65,4 @@ $color[14]  = '#xxxxxx';  // Color for quoted text -- >> 2 or more
 
 */
 
-?>
+?>
\ No newline at end of file