6a3ea45df6def509018db84da534f4e8e1a6e128
6 * Date: October 20, 2001
7 * Comment: This theme generates random colors, featuring a reddish
8 * background with dark text.
11 * @copyright © 2000-2007 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
14 * @package squirrelmail
18 /** Prevent direct script loading */
19 if ((isset($_SERVER['SCRIPT_FILENAME']) && $_SERVER['SCRIPT_FILENAME'] == __FILE__
) ||
20 (isset($HTTP_SERVER_SERVER['SCRIPT_FILENAME']) && $HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__
) ) {
24 /** load sq_mt_randomize() */
25 include_once(SM_PATH
. 'functions/strings.php');
27 /* seed the random number generator */
30 for ($i = 0; $i <= 15; $i++
) {
31 /* background/foreground toggle */
32 if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12) {
34 $r = mt_rand(248,255);
35 $b = mt_rand(140,255);
44 /* set array element as hex string with hashmark (for HTML output) */
45 $color[$i] = sprintf('#%02X%02X%02X',$r,$g,$b);