Source for file random.php
Documentation is available at random.php
* Name: Random Theme Every Login
* Date: December 24, 2001
* Comment: Guess what this does!
* @copyright 2000-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: random.php 14840 2020-01-07 07:42:38Z pdontthink $
/** Initialize the random number generator */
require_once(SM_PATH .
'functions/global.php');
foreach ($theme as $data) {
if (substr($data['PATH'], -
18) !=
'/themes/random.php') {
$good_themes[] =
$data['PATH'];
if (count($good_themes) ==
0) {
$good_themes[] =
'../themes/default.php';
$random_theme_good_theme =
$good_themes[$which];
// remove current sm_path from theme name
$random_theme_good_theme=
preg_replace("/^$path/",'',$random_theme_good_theme);
// get random theme stored in session
@include_once (SM_PATH .
$random_theme_good_theme);
Documentation generated on Mon, 13 Jan 2020 04:25:11 +0100 by phpDocumentor 1.4.3