[19486] | 1 | <?php |
---|
[19990] | 2 | $patterns = array(); |
---|
[19486] | 3 | $patterns[0] = '_'; |
---|
| 4 | $replacements = array(); |
---|
| 5 | $replacements[0] = '#'; |
---|
| 6 | if ( !isset($_GET['theme']) ) { |
---|
| 7 | global $nb_template; |
---|
[19990] | 8 | $nb_template=5 ; |
---|
| 9 | $params['theme']="cuise"; |
---|
| 10 | $params['parent']="cuise"; |
---|
| 11 | $params['redraw']="ok"; |
---|
| 12 | $keys=array(); |
---|
| 13 | $name_img=array("cbmt.gif","bpv.png","bp3.jpg","bph.png","header.png"); |
---|
[19486] | 14 | for($id=0;$id<$nb_template;$id++){ |
---|
| 15 | $params = array_merge($params,array( |
---|
[19990] | 16 | "bg_cuise_$id" => '#d4d4d4', |
---|
| 17 | "bgho_cuise_$id" => '#a0a0a0', |
---|
[19486] | 18 | "bd_cuise_$id" => '#4F4F4F', |
---|
| 19 | "co_cuise_$id" => '#4F4F4F', |
---|
[19990] | 20 | "coho_cuise_$id" => '#5f5f5f', |
---|
| 21 | "img_cuise_$id" => $name_img[$id], |
---|
| 22 | "chk_cuise_x_$id" => 'checked', |
---|
| 23 | "chk_cuise_y_$id" => '', |
---|
[19486] | 24 | "rayon_cuise_$id" => '8px', |
---|
[19990] | 25 | "chk_cuise_$id" => '' |
---|
[19486] | 26 | |
---|
| 27 | )); |
---|
| 28 | } |
---|
| 29 | $keys=$params ; |
---|
| 30 | |
---|
| 31 | }else{ |
---|
| 32 | $keys=$_GET; |
---|
| 33 | } |
---|
[19990] | 34 | global $theme ; |
---|
[19486] | 35 | $theme_dir = $keys['theme']; |
---|
[19990] | 36 | $theme_parent = $keys['parent']; |
---|
[19486] | 37 | /*===============================================*/ |
---|
| 38 | if ($keys['chk_cuise_0']!='checked'){ |
---|
| 39 | $fondBG = "url(./images/" . $keys['img_cuise_0'].")" ; |
---|
[19990] | 40 | $fondBG_hover = "url(./images/hover_" . $keys['img_cuise_0'].")" ; |
---|
[19486] | 41 | }else { |
---|
| 42 | $fondBG ="none"; |
---|
| 43 | $fondBG_hover ="none"; |
---|
| 44 | } |
---|
[19990] | 45 | $fondBG_rayon = $keys['rayon_cuise_0']; |
---|
[19486] | 46 | $fondBG_color = str_replace("_", "#", $keys['bg_cuise_0']); |
---|
| 47 | $fondBG_color_hover = str_replace("_", "#", $keys['bgho_cuise_0']); |
---|
[19990] | 48 | $fondBG_a = str_replace("_", "#", $keys['co_cuise_0']); |
---|
| 49 | $fondBG_a_hover= str_replace("_", "#", $keys['coho_cuise_0']); |
---|
| 50 | |
---|
| 51 | /*===============================================*/ |
---|
[19486] | 52 | if ($keys['chk_cuise_1']!='checked'){ |
---|
[19990] | 53 | $fondBp = "url(./images/" . $keys['img_cuise_1'].")" ; |
---|
| 54 | $fondBp_hover = "url(./images/hover_".$keys['img_cuise_1'].")"; |
---|
[19486] | 55 | }else { |
---|
| 56 | $fondBp ="none"; |
---|
| 57 | $fondBp_hover ="none"; |
---|
| 58 | } |
---|
| 59 | $fondBp_color = str_replace("_", "#", $keys['bg_cuise_1']); |
---|
| 60 | $fondBp_color_hover =str_replace("_", "#", $keys['bgho_cuise_1']); |
---|
[19990] | 61 | $fondBp_a = str_replace("_", "#", $keys['co_cuise_1']); |
---|
| 62 | $fondBp_a_hover= str_replace("_", "#", $keys['coho_cuise_1']); |
---|
| 63 | $fondBp_rayon = $keys['rayon_cuise_1']; |
---|
| 64 | |
---|
[19486] | 65 | /*=========== Menubar ========================*/ |
---|
| 66 | if ($keys['chk_cuise_2']!='checked'){ |
---|
[19990] | 67 | $Menu_bar = "url(images/".$keys['img_cuise_2'].")"; |
---|
| 68 | $Menu_bar_hover = "url(images/hover_".$keys['img_cuise_2'].")"; |
---|
[19486] | 69 | }else { |
---|
[19990] | 70 | $Menu_bar ="none"; |
---|
| 71 | $Menu_bar_hover = "non"; |
---|
[19486] | 72 | } |
---|
[19990] | 73 | $Menu_bar_color = str_replace("_", "#", $keys['bg_cuise_2']); |
---|
| 74 | $Menu_bar_color_hover = str_replace("_", "#", $keys['bgho_cuise_2']); |
---|
| 75 | |
---|
| 76 | $Menu_bar_a = str_replace("_", "#", $keys['co_cuise_2']); |
---|
| 77 | $Menu_bar_a_hover= str_replace("_", "#", $keys['coho_cuise_2']); |
---|
| 78 | $Menu_bar_rayon = $keys['rayon_cuise_2']; |
---|
[19486] | 79 | /*===============================================*/ |
---|
| 80 | if ($keys['chk_cuise_3']!='checked'){ |
---|
[19990] | 81 | $thumbnail = "url(images/".$keys['img_cuise_3'].")"; |
---|
| 82 | $thumbnail_hover = "url(images/hover_".$keys['img_cuise_3'].")"; |
---|
[19486] | 83 | }else { |
---|
[19990] | 84 | $thumbnail="none"; |
---|
| 85 | $thumbnail_hover="none"; |
---|
[19486] | 86 | } |
---|
[19990] | 87 | $thumbnail_color = str_replace("_", "#", $keys['bg_cuise_3']); |
---|
[19486] | 88 | |
---|
[19990] | 89 | $thumbnail_color_hover = str_replace("_", "#", $keys['bgho_cuise_3']); |
---|
| 90 | $thumbnail_rayon = $keys['rayon_cuise_3']; |
---|
| 91 | $thumbnail_a = str_replace("_", "#", $keys['co_cuise_3']); |
---|
| 92 | $thumbnail_a_hover= str_replace("_", "#", $keys['coho_cuise_3']); |
---|
[19486] | 93 | /*===============================================*/ |
---|
| 94 | $bck_header="none"; |
---|
| 95 | $bck_header_hover="none"; |
---|
| 96 | if ($keys['chk_cuise_4']!='checked'){ |
---|
| 97 | $bck_header = "url(images/".$keys['img_cuise_4'].")"; |
---|
| 98 | if(file_exists("images/hover_".$keys['img_cuise_4'])) |
---|
| 99 | $bck_header_hover = "url(images/hover_".$keys['img_cuise_4'].")"; |
---|
| 100 | } |
---|
| 101 | $bck_header_color = str_replace("_", "#", $keys['bg_cuise_4']); |
---|
| 102 | $bck_header_color_hover = str_replace("_", "#", $keys['bgho_cuise_4']); |
---|
| 103 | $bck_header_rayon = $keys['rayon_cuise_4']; |
---|
| 104 | $bck_header_a = str_replace("_", "#", $keys['co_cuise_4']); |
---|
| 105 | $bck_header_a_hover= str_replace("_", "#", $keys['coho_cuise_4']); |
---|
[19990] | 106 | $prefix=$keys['redraw']; |
---|
[19486] | 107 | header( 'content-type: text/css' ); |
---|
| 108 | /* |
---|
| 109 | if($keys['redraw'] != true ){ } |
---|
| 110 | header('HTTP/1.0 304 Not Modified'); |
---|
| 111 | header('Cache-Control: max-age=3600, must-revalidate'); |
---|
| 112 | */ |
---|
[19990] | 113 | include "admin_theme.css.php" ; |
---|
| 114 | ?> |
---|