logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

SF.net SVN: squirrelmail: [12483] branches/SM-1_4-STABLE/squirrelmail/ them: msg#00048

Subject: SF.net SVN: squirrelmail: [12483] branches/SM-1_4-STABLE/squirrelmail/ themes
Revision: 12483
          
http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=12483&view=rev
Author:   kink
Date:     2007-06-27 09:16:00 -0700 (Wed, 27 Jun 2007)

Log Message:
-----------
remove unnecessary code and fix theme for current color array

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/themes/spice_of_life.php
    branches/SM-1_4-STABLE/squirrelmail/themes/spice_of_life_dark.php
    branches/SM-1_4-STABLE/squirrelmail/themes/spice_of_life_lite.php

Modified: branches/SM-1_4-STABLE/squirrelmail/themes/spice_of_life.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/themes/spice_of_life.php        
2007-06-27 16:12:07 UTC (rev 12482)
+++ branches/SM-1_4-STABLE/squirrelmail/themes/spice_of_life.php        
2007-06-27 16:16:00 UTC (rev 12483)
@@ -23,9 +23,9 @@
 /** range delimiter **/
 $bgrd = $bg * 128;
 
-for ($i = 0; $i <= 15; $i++) {
+for ($i = 0; $i <= 16; $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) {
+    if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i 
== 12 or $i == 16) {
         /** background **/
         $cmin = 0 + $bgrd;
         $cmax = 127 + $bgrd;
@@ -45,24 +45,3 @@
 }
 
 
-/* Reference from  http://www.squirrelmail.org/wiki/CreatingThemes
-
-$color[0]   = '#xxxxxx';  // Title bar at the top of the page header
-$color[1]   = '#xxxxxx';  // Not currently used
-$color[2]   = '#xxxxxx';  // Error messages (usually red)
-$color[3]   = '#xxxxxx';  // Left folder list background color
-$color[4]   = '#xxxxxx';  // Normal background color
-$color[5]   = '#xxxxxx';  // Header of the message index // (From, 
Date,Subject)
-$color[6]   = '#xxxxxx';  // Normal text on the left folder list
-$color[7]   = '#xxxxxx';  // Links in the right frame
-$color[8]   = '#xxxxxx';  // Normal text (usually black)
-$color[9]   = '#xxxxxx';  // Darker version of #0
-$color[10]  = '#xxxxxx';  // Darker version of #9
-$color[11]  = '#xxxxxx';  // Special folders color (INBOX, Trash, Sent)
-$color[12]  = '#xxxxxx';  // Alternate color for message list // Alters 
between #4 and this one
-$color[13]  = '#xxxxxx';  // Color for quoted text -- > 1 quote
-$color[14]  = '#xxxxxx';  // Color for quoted text -- >> 2 or more
-
-*/
-
-?>
\ No newline at end of file

Modified: branches/SM-1_4-STABLE/squirrelmail/themes/spice_of_life_dark.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/themes/spice_of_life_dark.php   
2007-06-27 16:12:07 UTC (rev 12482)
+++ branches/SM-1_4-STABLE/squirrelmail/themes/spice_of_life_dark.php   
2007-06-27 16:16:00 UTC (rev 12483)
@@ -17,15 +17,9 @@
 /** seed the random number generator **/
 sq_mt_randomize();
 
-/** light(1) or dark(0) background? **/
-$bg = mt_rand(0,1);
-
-/** range delimiter **/
-$bgrd = $bg * 128;
-
-for ($i = 0; $i <= 15; $i++) {
+for ($i = 0; $i <= 16; $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) {
+    if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i 
== 12 or $i == 16) {
         /** background **/
         $cmin = 0;
         $cmax = 127;
@@ -44,25 +38,3 @@
     $color[$i] = sprintf('#%02X%02X%02X',$r,$g,$b);
 }
 
-
-/* Reference from  http://www.squirrelmail.org/wiki/CreatingThemes
-
-$color[0]   = '#xxxxxx';  // Title bar at the top of the page header
-$color[1]   = '#xxxxxx';  // Not currently used
-$color[2]   = '#xxxxxx';  // Error messages (usually red)
-$color[3]   = '#xxxxxx';  // Left folder list background color
-$color[4]   = '#xxxxxx';  // Normal background color
-$color[5]   = '#xxxxxx';  // Header of the message index // (From, 
Date,Subject)
-$color[6]   = '#xxxxxx';  // Normal text on the left folder list
-$color[7]   = '#xxxxxx';  // Links in the right frame
-$color[8]   = '#xxxxxx';  // Normal text (usually black)
-$color[9]   = '#xxxxxx';  // Darker version of #0
-$color[10]  = '#xxxxxx';  // Darker version of #9
-$color[11]  = '#xxxxxx';  // Special folders color (INBOX, Trash, Sent)
-$color[12]  = '#xxxxxx';  // Alternate color for message list // Alters 
between #4 and this one
-$color[13]  = '#xxxxxx';  // Color for quoted text -- > 1 quote
-$color[14]  = '#xxxxxx';  // Color for quoted text -- >> 2 or more
-
-*/
-
-?>
\ No newline at end of file

Modified: branches/SM-1_4-STABLE/squirrelmail/themes/spice_of_life_lite.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/themes/spice_of_life_lite.php   
2007-06-27 16:12:07 UTC (rev 12482)
+++ branches/SM-1_4-STABLE/squirrelmail/themes/spice_of_life_lite.php   
2007-06-27 16:16:00 UTC (rev 12483)
@@ -17,15 +17,9 @@
 /** seed the random number generator **/
 sq_mt_randomize();
 
-/** light(1) or dark(0) background? **/
-$bg = mt_rand(0,1);
-
-/** range delimiter **/
-$bgrd = $bg * 128;
-
-for ($i = 0; $i <= 15; $i++) {
+for ($i = 0; $i <= 16; $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) {
+    if ($i == 0 or $i == 3 or $i == 4 or $i == 5 or $i == 9 or $i == 10 or $i 
== 12 or $i == 16) {
         /** background **/
         $cmin = 128;
         $cmax = 255;
@@ -44,25 +38,3 @@
     $color[$i] = sprintf('#%02X%02X%02X',$r,$g,$b);
 }
 
-
-/* Reference from  http://www.squirrelmail.org/wiki/CreatingThemes
-
-$color[0]   = '#xxxxxx';  // Title bar at the top of the page header
-$color[1]   = '#xxxxxx';  // Not currently used
-$color[2]   = '#xxxxxx';  // Error messages (usually red)
-$color[3]   = '#xxxxxx';  // Left folder list background color
-$color[4]   = '#xxxxxx';  // Normal background color
-$color[5]   = '#xxxxxx';  // Header of the message index // (From, 
Date,Subject)
-$color[6]   = '#xxxxxx';  // Normal text on the left folder list
-$color[7]   = '#xxxxxx';  // Links in the right frame
-$color[8]   = '#xxxxxx';  // Normal text (usually black)
-$color[9]   = '#xxxxxx';  // Darker version of #0
-$color[10]  = '#xxxxxx';  // Darker version of #9
-$color[11]  = '#xxxxxx';  // Special folders color (INBOX, Trash, Sent)
-$color[12]  = '#xxxxxx';  // Alternate color for message list // Alters 
between #4 and this one
-$color[13]  = '#xxxxxx';  // Color for quoted text -- > 1 quote
-$color[14]  = '#xxxxxx';  // Color for quoted text -- >> 2 or more
-
-*/
-
-?>
\ No newline at end of file


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


<Prev in Thread] Current Thread [Next in Thread>