X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=themes%2Fin_the_pink.php;h=3a9fd6cc5e157bf5daaf7e633d17ad512d835bbe;hb=154ad29922545208762478453537397b094ae2d5;hp=12d8c38f9515971bf0f477502c839c1221aeb9b7;hpb=ed43020856785c7f76f40f1c7ca3c1a6dbb0df66;p=squirrelmail.git diff --git a/themes/in_the_pink.php b/themes/in_the_pink.php index 12d8c38f..3a9fd6cc 100755 --- a/themes/in_the_pink.php +++ b/themes/in_the_pink.php @@ -2,22 +2,32 @@ /** * in_the_pink.php - * Name: In the Pink - * Author: Jorey Bump - * Date: October 20, 2001 - * Comment: This theme generates random colors, featuring a reddish - * background with dark text. + * Name: In the Pink + * Date: October 20, 2001 + * Comment: This theme generates random colors, featuring a reddish + * background with dark text. * - * Copyright (c) 2000-2002 The SquirrelMail Project Team - * Licensed under the GNU GPL. For full terms see the file COPYING. - * - * $Id$ + * @author Jorey Bump + * @copyright © 2000-2006 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @version $Id$ + * @package squirrelmail + * @subpackage themes */ +/** 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__) ) { + die(); +} + +/** load sq_mt_randomize() */ +include_once(SM_PATH . 'functions/strings.php'); + /* seed the random number generator */ sq_mt_randomize(); -for ($i = 0; $i <= 14; $i++) { +for ($i = 0; $i <= 15; $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) { /* background */ @@ -32,7 +42,7 @@ for ($i = 0; $i <= 14; $i++) { } /* set array element as hex string with hashmark (for HTML output) */ - $color[$i] = sprintf("#%02X%02X%02X",$r,$g,$b); + $color[$i] = sprintf('#%02X%02X%02X',$r,$g,$b); } @@ -56,4 +66,4 @@ $color[14] = '#xxxxxx'; // Color for quoted text -- >> 2 or more */ -?> +?> \ No newline at end of file