/**
* in_the_pink.php
- * Name: In the Pink
- * Author: Jorey Bump
- * Date: October 20, 2001
- * Comment: This theme generates random colors, featuring a reddish
- * background with dark text.
+ * Name: In the Pink
+ * Date: October 20, 2001
+ * Comment: This theme generates random colors, featuring a reddish
+ * background with dark text.
*
- * Copyright (c) 2000-2002 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
- * $Id$
+ * @author Jorey Bump
+ * @copyright © 2000-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package squirrelmail
+ * @subpackage themes
*/
+/** 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__) ) {
+ die();
+}
+
+/** load sq_mt_randomize() */
+include_once(SM_PATH . 'functions/strings.php');
+
/* seed the random number generator */
sq_mt_randomize();
-for ($i = 0; $i <= 14; $i++) {
+for ($i = 0; $i <= 15; $i++) {
/* background/foreground toggle */
if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i == 12) {
/* background */
}
/* set array element as hex string with hashmark (for HTML output) */
- $color[$i] = sprintf("#%02X%02X%02X",$r,$g,$b);
+ $color[$i] = sprintf('#%02X%02X%02X',$r,$g,$b);
}
*/
-?>
+?>
\ No newline at end of file