Clarify and simplify how session is destroyed and separate from session restore mechanism
[squirrelmail.git] / themes / greenhouse_effect.php
index c006b0ae81e50f5f23e488df9ee647d5fe870d01..e524d36bf0526999fbd8432d090ff41705c1b33f 100755 (executable)
@@ -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();
 }
 
@@ -26,10 +25,10 @@ include_once(SM_PATH . 'functions/strings.php');
 /** seed the random number generator **/
 sq_mt_randomize();
 
-for ($i = 0; $i <= 15; $i++) {
+for ($i = 0; $i <= 16; $i++) {
     /* background/foreground toggle **/
-    if (($i == 0) || ($i == 3) || ($i == 4) || ($i == 5)
-         || ($i == 9) || ($i == 10) || ($i == 12)) {
+    if ($i == 0 || $i == 3 || $i == 4 || $i == 5
+         || $i == 9 || $i == 10 || $i == 12 || $i == 16) {
         /* background */
         $g = mt_rand(248,255);
         $r = mt_rand(110,248);