From: kink Date: Wed, 27 Jun 2007 16:24:01 +0000 (+0000) Subject: update randomizing themes for larger color array X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f5952e796a6e5f1873f6c6a628a894c95083bc0b;p=squirrelmail.git update randomizing themes for larger color array git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12485 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/themes/greenhouse_effect.php b/themes/greenhouse_effect.php index a3f9b931..e524d36b 100755 --- a/themes/greenhouse_effect.php +++ b/themes/greenhouse_effect.php @@ -25,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); diff --git a/themes/in_the_pink.php b/themes/in_the_pink.php index 8d91e4e1..d2db4fad 100755 --- a/themes/in_the_pink.php +++ b/themes/in_the_pink.php @@ -26,9 +26,9 @@ 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 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 */ $r = mt_rand(248,255); $b = mt_rand(140,255); diff --git a/themes/kind_of_blue.php b/themes/kind_of_blue.php index 12552f2e..630b255a 100755 --- a/themes/kind_of_blue.php +++ b/themes/kind_of_blue.php @@ -26,9 +26,9 @@ 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 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 */ $b = mt_rand(248,255); $r = mt_rand(180,255); diff --git a/themes/monostochastic.php b/themes/monostochastic.php index 952ea41c..2cc37c0f 100755 --- a/themes/monostochastic.php +++ b/themes/monostochastic.php @@ -51,8 +51,8 @@ $gt = mt_rand($cmin_t,$cmax_t); $bt = mt_rand($cmin_t,$cmax_t); /** set array element as hex string with hashmark (for HTML output) **/ -for ($i = 0; $i <= 15; $i++) { - if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12) { +for ($i = 0; $i <= 16; $i++) { + if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12 or $i == 16) { $color[$i] = sprintf('#%02X%02X%02X',$rb,$gb,$bb); } else { $color[$i] = sprintf('#%02X%02X%02X',$rt,$gt,$bt); diff --git a/themes/shades_of_grey.php b/themes/shades_of_grey.php index 50592acb..83e5a62a 100755 --- a/themes/shades_of_grey.php +++ b/themes/shades_of_grey.php @@ -25,9 +25,9 @@ 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 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 */ $r = mt_rand(176,255); $g = $r;