X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=themes%2Frandom.php;h=2a09811326d0f7c0f5bf507ad1ad57acee8a8398;hp=c93d8d8c6e85468179da3cc22ee0fd33f9603d4b;hb=22387c8d44f3ab104db6e19180d3775a45762359;hpb=2c34672a65cebca402a4ef61bedbd9447fd38d24 diff --git a/themes/random.php b/themes/random.php old mode 100755 new mode 100644 index c93d8d8c..2a098113 --- a/themes/random.php +++ b/themes/random.php @@ -6,7 +6,7 @@ * Comment: Guess what this does! * * @author Tyler Akins - * @copyright © 2000-2006 The SquirrelMail Project Team + * @copyright 2000-2017 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; @@ -51,5 +46,3 @@ if (!sqsession_is_registered('random_theme_good_theme')) { } @include_once (SM_PATH . $random_theme_good_theme); - -?> \ No newline at end of file