X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=themes%2Fspice_of_life.php;h=09ec6dbb358ecea8e633b51a445c63099e47df6a;hp=192b836799439b3c7fa3b4068208b588d5bf86b2;hb=6cb3431f3b0a8210b2ec48df3a10af36b0336bf4;hpb=4b5049de2fa934c45599d6e4c74bf2bbee10d34d diff --git a/themes/spice_of_life.php b/themes/spice_of_life.php old mode 100755 new mode 100644 index 192b8367..09ec6dbb --- 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-2013 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;