Source for file monostochastic.php
Documentation is available at monostochastic.php
* Comment: Generates random two-color frames, featuring either
* a dark or light background.
* @copyright © 2000-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: monostochastic.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 */
/** light(1) or dark(0) background toggle **/
/** generate random color **/
/** generate random color **/
/** set array element as hex string with hashmark (for HTML output) **/
for ($i =
0; $i <=
15; $i++
) {
if ($i ==
0 or $i ==
3 or $i ==
4 or $i ==
5 or $i ==
9 or $i ==
10 or $i ==
12) {
$color[$i] =
sprintf('#%02X%02X%02X',$rb,$gb,$bb);
$color[$i] =
sprintf('#%02X%02X%02X',$rt,$gt,$bt);
Documentation generated on Sat, 07 Oct 2006 16:12:38 +0300 by phpDocumentor 1.3.0RC6