Fix issue not allowing save of boolean prefs that default to SMPREF_ON
[squirrelmail.git] / themes / spice_of_life.php
index 4ac729254cc5474f8d8c0e55cca011c17bd7f273..217e5e5703115e8f7d86c989c720ade68648b576 100755 (executable)
@@ -7,7 +7,7 @@
  *         featuring either a dark or light background.
  *
  * @author Jorey Bump
- * @copyright © 2000-2006 The SquirrelMail Project Team
+ * @copyright © 2000-2007 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -15,8 +15,7 @@
  */
 
 /** Prevent direct script loading */
-if ((isset($_SERVER['SCRIPT_FILENAME']) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) ||
-    (isset($HTTP_SERVER_SERVER['SCRIPT_FILENAME']) && $HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__) ) {
+if (isset($_SERVER['SCRIPT_FILENAME']) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) {
     die();
 }
 
@@ -32,9 +31,9 @@ $bg = mt_rand(0,1);
 /** range delimiter **/
 $bgrd = $bg * 128;
 
-for ($i = 0; $i <= 15; $i++) {
+for ($i = 0; $i <= 16; $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) {
+    if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12 or $i == 16) {
         /** background **/
         $cmin = 0 + $bgrd;
         $cmax = 127 + $bgrd;