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-2012 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: random.php 14248 2012-01-02 00:18:17Z 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 Sun, 19 May 2013 04:22:47 +0200 by phpDocumentor 1.4.3