1 | <?php |
---|
2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
3 | |
---|
4 | global $conf, $template; |
---|
5 | $params = array_merge(unserialize($conf['Junk'])); |
---|
6 | |
---|
7 | $c= array( '#ffffff','#000000','#008000','#ff8a00','#dadada','#696868','#252525','#8e8e8e','#838383','#686868','#053000','#56c056','#30c030','#186018','#e32119', |
---|
8 | '#135384','#f1817b','#f15850','#aa3e39','#940f08','#cd0074','#00cc00','#e667af','#992667','#85004b','#ffff40','#f8bedf','#e765b2','#ce34b6','#fff896', |
---|
9 | '#11808a','#e32319','#06535a','#236267','#43bac5','#66bcc5','#585858','#112222','#505050','#acacac','#424242','#353535','#808080','#ffff00','#fb008e', |
---|
10 | '#ffd100','#ffff73','#fda200','#42036f','#6d9c00','#2a014b','#4c2d64','#7f31b7','#8e55b7', |
---|
11 | ); |
---|
12 | |
---|
13 | $color = array( |
---|
14 | 'green' => array($c[0] ,$c[2] ,$c[3] ,$c[4] ,$c[5], $c[6], $c[0], ), |
---|
15 | 'dark_green' => array($c[1] ,$c[2] ,$c[3] ,$c[7] ,$c[8], $c[9], $c[0], ), |
---|
16 | 'greene' => array($c[10],$c[2] ,$c[3] ,$c[11],$c[12],$c[13],$c[0], ), |
---|
17 | 'light_greene' => array($c[0] ,$c[2] ,$c[3] ,$c[12],$c[13],$c[10],$c[0], ), |
---|
18 | 'red' => array($c[0] ,$c[14],$c[15],$c[4] ,$c[5], $c[6], $c[0], ), |
---|
19 | 'dark_red' => array($c[1] ,$c[14],$c[15],$c[7] ,$c[8], $c[9], $c[0], ), |
---|
20 | 'rede' => array($c[19],$c[14],$c[15],$c[16],$c[17],$c[18],$c[0], ), |
---|
21 | 'light_rede' => array($c[0] ,$c[14],$c[15],$c[17],$c[18],$c[19],$c[0], ), |
---|
22 | 'pink' => array($c[0] ,$c[20],$c[21],$c[4] ,$c[5], $c[6], $c[0], ), |
---|
23 | 'dark_pink' => array($c[1] ,$c[20],$c[21],$c[7] ,$c[8], $c[9], $c[0], ), |
---|
24 | 'pinki' => array($c[22],$c[20],$c[21],$c[22],$c[23],$c[24],$c[25],), |
---|
25 | 'light_pinki' => array($c[0] ,$c[20],$c[21],$c[26],$c[27],$c[28],$c[29],), |
---|
26 | 'blue' => array($c[0] ,$c[30],$c[31],$c[4] ,$c[5], $c[6], $c[0], ), |
---|
27 | 'dark_blue' => array($c[1] ,$c[30],$c[31],$c[7] ,$c[8], $c[9], $c[0], ), |
---|
28 | 'blube' => array($c[32],$c[30],$c[31],$c[33],$c[34],$c[35],$c[0], ), |
---|
29 | 'light_blube' => array($c[0] ,$c[30],$c[31],$c[34],$c[35],$c[32],$c[0], ), |
---|
30 | 'gray' => array($c[0] ,$c[36],$c[37],$c[4] ,$c[5], $c[6], $c[0], ), |
---|
31 | 'dark_gray' => array($c[1] ,$c[36],$c[37],$c[7] ,$c[8], $c[9], $c[0], ), |
---|
32 | 'grayb' => array($c[38],$c[36],$c[37],$c[39],$c[40],$c[41],$c[0], ), |
---|
33 | 'light_grayb' => array($c[0] ,$c[36],$c[37],$c[40],$c[41],$c[38],$c[0], ), |
---|
34 | 'black' => array($c[0] ,$c[1] ,$c[42],$c[4] ,$c[5], $c[6], $c[0], ), |
---|
35 | 'dark_black' => array($c[1] ,$c[1] ,$c[42],$c[7] ,$c[8], $c[9], $c[0], ), |
---|
36 | 'white' => array($c[0] ,$c[0] ,$c[42],$c[4] ,$c[5], $c[6], $c[1], ), |
---|
37 | 'dark_white' => array($c[1] ,$c[0] ,$c[42],$c[7] ,$c[8], $c[9], $c[1], ), |
---|
38 | 'yellow' => array($c[0] ,$c[43],$c[44],$c[4] ,$c[5], $c[6], $c[1], ), |
---|
39 | 'dark_yellow' => array($c[1] ,$c[43],$c[44],$c[7] ,$c[8], $c[9], $c[1], ), |
---|
40 | 'yello' => array($c[45],$c[43],$c[44],$c[46],$c[25],$c[47],$c[1], ), |
---|
41 | 'light_yello' => array($c[0] ,$c[43],$c[44],$c[25],$c[47],$c[45],$c[1], ), |
---|
42 | 'purple' => array($c[0] ,$c[48],$c[49],$c[4] ,$c[5], $c[6], $c[0], ), |
---|
43 | 'dark_purple' => array($c[1] ,$c[48],$c[49],$c[7] ,$c[8], $c[9], $c[0], ), |
---|
44 | 'purp' => array($c[50],$c[48],$c[49],$c[53],$c[52],$c[51],$c[0], ), |
---|
45 | 'light_purp' => array($c[0] ,$c[48],$c[49],$c[52],$c[51],$c[50],$c[0], ), |
---|
46 | ); |
---|
47 | |
---|
48 | $style = $params['style']; |
---|
49 | $col = $color[$style]; |
---|
50 | |
---|
51 | $template->assign('junk', $col); |
---|