X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=themes%2Frandom.php;h=dbc59618e49e01362d4b63d346f851f6dd5eb49e;hb=a95fae0bb9d244d1fccb7531074371bc39f80a0f;hp=447a95bc7037ee0cd2b1b8a69aeb6401e988b081;hpb=4b5049de2fa934c45599d6e4c74bf2bbee10d34d;p=squirrelmail.git diff --git a/themes/random.php b/themes/random.php old mode 100755 new mode 100644 index 447a95bc..dbc59618 --- a/themes/random.php +++ b/themes/random.php @@ -6,7 +6,7 @@ * Comment: Guess what this does! * * @author Tyler Akins - * @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 @@ -14,17 +14,12 @@ */ /** 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 required functions */ include_once(SM_PATH . 'functions/global.php'); -include_once(SM_PATH . 'functions/strings.php'); - -/** Initialize the random number generator */ -sq_mt_randomize(); global $theme;