squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

darkness.php File Reference

Go to the source code of this file.

Namespaces

 squirrelmail
 

Functions

 IsUnique ($Distance, $r, $g, $b, $usedArray)
 
 Darkness_HeaderPlugin ()
 

Variables

 $BackgroundTargetDistance = 12
 
 $BackgroundAdjust = 1
 
 $TextTargetDistance = 65536
 
 $TextAdjust = 0.95
 
global $squirrelmail_plugin_hooks
 
 $squirrelmail_plugin_hooks ['generic_header']['theme_darkness']
 
 $color [3] = '#000000'
 
 $color [4] = '#000000'
 
 $used = array(0)
 
 $targetDistance = $BackgroundTargetDistance
 
 $Left = array(0, 5, 9, 10, 12)
 
while(count($Left) > 0) $r = mt_rand(196, 255)
 
 $g = mt_rand(144, ($r * .8))
 
 $color [2] = sprintf('#%02X%02X%02X', $r, $g, $g)
 
 $cmin = 196
 
 $cmax = 255
 

Function Documentation

◆ Darkness_HeaderPlugin()

Darkness_HeaderPlugin ( )

generate random color

generate random color

Definition at line 44 of file darkness.php.

References PAGE_NAME.

◆ IsUnique()

IsUnique (   $Distance,
  $r,
  $g,
  $b,
  $usedArray 
)

Definition at line 27 of file darkness.php.

References $data, $g, and $r.

Variable Documentation

◆ $BackgroundAdjust

$BackgroundAdjust = 1

Definition at line 23 of file darkness.php.

◆ $BackgroundTargetDistance

$BackgroundTargetDistance = 12

Load up the usual suspects..

Definition at line 22 of file darkness.php.

◆ $cmax

$cmax = 255

Definition at line 110 of file darkness.php.

◆ $cmin

$cmin = 196

Definition at line 109 of file darkness.php.

◆ $color [1/3]

$color[2] = sprintf('#%02X%02X%02X', $r, $g, $g)

Definition at line 105 of file darkness.php.

◆ $color [2/3]

$color[3] = '#000000'

Definition at line 79 of file darkness.php.

◆ $color [3/3]

$color[4] = '#000000'

Definition at line 80 of file darkness.php.

◆ $g

$g = mt_rand(144, ($r * .8))

Definition at line 104 of file darkness.php.

Referenced by IsUnique(), sqimap_mailbox_list_all(), and sqimap_mailbox_parse().

◆ $Left

foreach (array(6, 8) as $i) $Left = array(0, 5, 9, 10, 12)

Definition at line 83 of file darkness.php.

◆ $r

◆ $squirrelmail_plugin_hooks [1/2]

$squirrelmail_plugin_hooks[ 'generic_header'][ 'theme_darkness']
Initial value:
=
'Darkness_HeaderPlugin'

Definition at line 73 of file darkness.php.

◆ $squirrelmail_plugin_hooks [2/2]

global $squirrelmail_plugin_hooks

Definition at line 72 of file darkness.php.

◆ $targetDistance

$targetDistance = $BackgroundTargetDistance

Definition at line 82 of file darkness.php.

◆ $TextAdjust

$TextAdjust = 0.95

Definition at line 25 of file darkness.php.

◆ $TextTargetDistance

$TextTargetDistance = 65536

Definition at line 24 of file darkness.php.

◆ $used

$used = array(0)

Definition at line 81 of file darkness.php.

Referenced by sqimap_mailbox_list().