X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=themes%2Fmonostochastic.php;h=82d58b54286760ff777aa7acac2ccd6219bcf5fa;hb=343200c74decd322a14e97980c6042eba30f4c3c;hp=35a5629a2f91def4f182f9f2c0d87fba81b2771d;hpb=76911253eb850bacde3d86c8cb7b4af072e67ebe;p=squirrelmail.git diff --git a/themes/monostochastic.php b/themes/monostochastic.php index 35a5629a..82d58b54 100755 --- a/themes/monostochastic.php +++ b/themes/monostochastic.php @@ -2,24 +2,34 @@ /** * monostochastic.php - * Name: Monostochastic - * Author: Jorey Bump - * Date: October 20, 2001 - * Comment: Generates random two-color frames, featuring either - * a dark or light background. + * Name: Monostochastic + * Date: October 20, 2001 + * Comment: Generates random two-color frames, featuring either + * a dark or light background. * - * Copyright (c) 2000-2003 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 */ -/* seed the random number generator */ +/** 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(); /** light(1) or dark(0) background toggle **/ $bg = mt_rand(0,1); - + /** range delimiter **/ $bgrd = $bg * 128; @@ -72,4 +82,4 @@ $color[14] = '#xxxxxx'; // Color for quoted text -- >> 2 or more */ -?> +?> \ No newline at end of file