X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=themes%2Fdarkness.php;h=b7ca509e5e8a28f73668a8dcaf1fd0775300cd6a;hb=6378ee4a9789ca92a93b8b0e493609877008fc46;hp=3b2491574d022b97df039aace3a6ad222a59d986;hpb=4b4abf93a9624311afef0c385023724ee46a2b60;p=squirrelmail.git
diff --git a/themes/darkness.php b/themes/darkness.php
index 3b249157..b7ca509e 100755
--- a/themes/darkness.php
+++ b/themes/darkness.php
@@ -5,24 +5,20 @@
* Like black?
*
* @author Tyler Akins
- * @copyright © 2001-2005 The SquirrelMail Project Team
+ * @copyright © 2001-2007 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
* @subpackage themes
*/
-/**
- * Load up the usual suspects.. */
-require_once(SM_PATH . 'functions/strings.php');
-
- // Note: The text distance is actually pre-squared
- // Background range is from 24-64, all three colors are the same
- // Text range is from 196 to 255
- $BackgroundTargetDistance = 12;
- $BackgroundAdjust = 1;
- $TextTargetDistance = 65536;
- $TextAdjust = 0.95;
+// Note: The text distance is actually pre-squared
+// Background range is from 24-64, all three colors are the same
+// Text range is from 196 to 255
+$BackgroundTargetDistance = 12;
+$BackgroundAdjust = 1;
+$TextTargetDistance = 65536;
+$TextAdjust = 0.95;
function IsUnique($Distance, $r, $g, $b, $usedArray)
{
@@ -42,14 +38,13 @@ function IsUnique($Distance, $r, $g, $b, $usedArray)
// Always tremble background
// This might make people go insane. Yes! *Victory dance!*
function Darkness_HeaderPlugin() {
- global $PHP_SELF;
- if (substr($PHP_SELF, -18) == '/src/left_main.php') {
+ if (defined('PAGE_NAME') && PAGE_NAME=='left_main') {
echo '' . "\n";
}
-?>