Source for file greenhouse_effect.php
Documentation is available at greenhouse_effect.php
* Name: Greenhouse Effect
* Comment: This theme generates random colors, featuring a
* light greenish background.
* @copyright © 2000-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: greenhouse_effect.php,v 1.13 2006/07/15 12:01:31 tokul Exp $
/** 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__
) ) {
/** load sq_mt_randomize() */
include_once(SM_PATH .
'functions/strings.php');
/** seed the random number generator **/
for ($i =
0; $i <=
15; $i++
) {
/* background/foreground toggle **/
if (($i ==
0) ||
($i ==
3) ||
($i ==
4) ||
($i ==
5)
||
($i ==
9) ||
($i ==
10) ||
($i ==
12)) {
/** generate random color **/
/** set array element as hex string with hashmark (for HTML output) **/
$color[$i] =
sprintf('#%02X%02X%02X',$r,$g,$b);
Documentation generated on Sat, 07 Oct 2006 16:11:29 +0300 by phpDocumentor 1.3.0RC6