X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=themes%2Fspice_of_life.php;h=04d5b001e9c270f8c2da4096a7debfeba98ce5e9;hb=177f93ea0a5e4f1ed25091e0b0834194aea3035c;hp=192b836799439b3c7fa3b4068208b588d5bf86b2;hpb=4b5049de2fa934c45599d6e4c74bf2bbee10d34d;p=squirrelmail.git diff --git a/themes/spice_of_life.php b/themes/spice_of_life.php old mode 100755 new mode 100644 index 192b8367..04d5b001 --- a/themes/spice_of_life.php +++ b/themes/spice_of_life.php @@ -7,7 +7,7 @@ * featuring either a dark or light background. * * @author Jorey Bump - * @copyright © 2000-2007 The SquirrelMail Project Team + * @copyright 2000-2016 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -15,26 +15,19 @@ */ /** 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(); } -/** load sq_mt_randomize() */ -include_once(SM_PATH . 'functions/strings.php'); - -/** seed the random number generator **/ -sq_mt_randomize(); - /** light(1) or dark(0) background? **/ $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;