source: extensions/LLGBO2/admin/llgbo_admin.php @ 4581

Last change on this file since 4581 was 4574, checked in by EXFTB, 14 years ago

LLGBO improve Header management

  • Property svn:eol-style set to LF
File size: 19.9 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | Plugin Name : Look_Like_GBO  2                                                              |
4// | Plugin Version : 2.0                                                                                    |
5// | File Version : 0.1                                                                                       |
6// | Plugin Version author : Ex-FTB                                                               |
7// | Plugin description :                                                                                  |
8// | Ce plugin permet d'afficher les miniatures au survol des boutons     |
9// | de navigation. This plugin allows display thumbnail under buton        |
10// +-----------------------------------------------------------------------+
11// | This program is free software; you can redistribute it and/or modify  |
12// | it under the terms of the GNU General Public License as published by  |
13// | the Free Software Foundation                                          |
14// |                                                                       |
15// | This program is distributed in the hope that it will be useful, but   |
16// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
17// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
18// | General Public License for more details.                              |
19// |                                                                       |
20// | You should have received a copy of the GNU General Public License     |
21// | along with this program; if not, write to the Free Software           |
22// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
23// | USA.                                                                  |
24// +-----------------------------------------------------------------------+
25
26// ***************************************
27// ** Plugin Administration panel setup **
28// ***************************************
29if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
30include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
31$my_base_url = get_admin_plugin_menu_link(__FILE__);
32// Setup plugin Language
33load_language('plugin.lang', LLGBO_PATH);
34// +-----------------------------------------------------------------------+
35// |                            Tabssheet
36// +-----------------------------------------------------------------------+
37if (!isset($_GET['tab']))
38   { $page['tab'] = 'manage';}
39   else 
40 {$page['tab'] = $_GET['tab'];}
41
42$tabsheet = new tabsheet();
43$tabsheet->add('manage',
44               l10n('llgbo_M_manage'),
45              $my_base_url.'&amp;tab=manage');
46$tabsheet->add('tooltip',
47               l10n('llgbo_M_tooltip'),
48               $my_base_url.'&amp;tab=tooltip');
49$disptabframe = 'false';
50$disptabheader = 'false';       
51                           
52if (!isset($_POST['llgbo_frame'])   ) 
53        {$disptabframe = $conf['LLGBO_SETTINGS'][0] ;} 
54        else
55        {$disptabframe = $_POST['llgbo_frame'];}
56if (!isset($_POST['llgbo_header'])   ) 
57        {$disptabheader = $conf['LLGBO_SETTINGS'][6] ;}         
58        else
59        {$disptabheader = $_POST['llgbo_header'];} 
60                   
61if (($disptabframe == 'true'))
62{$tabsheet->add('frame',
63               l10n('llgbo_M_frame'),
64               $my_base_url.'&amp;tab=frame');}
65                           
66if (($disptabheader == 'true'))
67{$tabsheet->add('header',
68               l10n('llgbo_M_header'),
69               $my_base_url.'&amp;tab=header');}                   
70
71$tabsheet->assign();
72if ($page['tab'] == 'manage')
73{$template->set_filenames( array('llgbo_admin_content' => dirname(__FILE__).'/llgbo_adminsettings.tpl') );}
74if ($page['tab'] == 'tooltip')
75{$template->set_filenames( array('llgbo_admin_content' => dirname(__FILE__).'/llgbo_admintooltip.tpl') );}
76if ($page['tab'] == 'frame' )
77{$template->set_filenames( array('llgbo_admin_content' => dirname(__FILE__).'/llgbo_adminframe.tpl') );}
78if ($page['tab'] == 'header' )
79{$template->set_filenames( array('llgbo_admin_content' => dirname(__FILE__).'/llgbo_adminheader.tpl') );}
80$tabsheet->select($page['tab']);
81/* ****************************************************** */
82/* Plugin template initialisation for admin panel display */
83/* ****************************************************** */
84global $template , $conf,$lang;
85{$template->assign( 'LLGBO_VERSION' , LLGBO_INFO_VERSION);}
86$me = get_plugin_data($plugin_id);
87$template->clear_assign('LLGBOINFO');
88// Load configuration settings from database
89
90
91$template->append('head_elements',
92                   '<script type="text/javascript" src="./plugins/look_like_gbo2/farbtastic/farbtastic.js"></script>
93<link rel="stylesheet" type="text/css"
94      href="./plugins/look_like_gbo2/farbtastic/farbtastic.css" />
95<link rel="stylesheet" type="text/css"
96      href="./plugins/look_like_gbo2/css/look_like_gbo2_admin.css" />
97<! --- LLGBO tooltip css-->
98<style type="text/css"> 
99#toolTip {background:'.$conf['LLGBO_TOOLTIP'][3].';color:'.$conf['LLGBO_TOOLTIP'][5].';border:'.$conf['LLGBO_TOOLTIP'][1].'px solid '.$conf['LLGBO_TOOLTIP'][2].';padding:5px;min-height:1em;-moz-border-radius:5px}
100#toolTip p {margin:0;padding:0;color:'.$conf['LLGBO_TOOLTIP'][5].';font-size:0.8em;font-family:Verdana,Arial,Helvetica,sans-serif;text-align:left}
101#toolTip title {color:'.$conf['LLGBO_TOOLTIP'][4].';text-align:center;padding:0 0 3px 0;font-weight:bold}
102</style>');
103
104 
105// Update configuration settings in database
106        ////// SETTINGS
107if (($page['tab'] == 'manage') or   ( !isset($_GET['tab']))){
108        if ( isset($_POST['submit']) ) 
109        { 
110        if (!isset($_POST['llgbo_frame'])) {$_POST['llgbo_frame'] = 'false';} 
111        if (!isset($_POST['llgbo_tooltip'])) {$_POST['llgbo_tooltip'] = 'false';} 
112        if (!isset($_POST['llgbo_exifunderbt'])) {$_POST['llgbo_exifunderbt'] = 'false';} 
113        if (!isset($_POST['llgbo_usemap'])) {$_POST['llgbo_usemap'] = 'false';}
114        if (!isset($_POST['llgbo_usemap_thumb'])) {$_POST['llgbo_usemap_thumb'] = 'false';}
115        if (!isset($_POST['llgbo_title_frame'])) {$_POST['llgbo_title_frame'] = 'false';}   
116        if (!isset($_POST['llgbo_header'])) {$_POST['llgbo_header'] = 'false';} 
117        if (!isset($_POST['llgbo_maintain_header'])) {$_POST['llgbo_maintain_header'] = '';}
118        if (!isset($_POST['llgbo_allinfo'])) {$_POST['llgbo_allinfo'] = 'false';}
119        if (!isset($_POST['llgbo_default_navthumb'])) {$_POST['llgbo_default_navthumb'] = 'false';} //9 }
120         $param_llgbo = array($_POST['llgbo_frame'],
121                                $_POST['llgbo_tooltip'],             $_POST['llgbo_exifunderbt'],
122                                $_POST['llgbo_usemap'],                 $_POST['llgbo_usemap_thumb'],
123                                $_POST['llgbo_title_frame'],                    $_POST['llgbo_header'],
124                                $_POST['llgbo_maintain_header'],                        $_POST['llgbo_allinfo'],
125                                $_POST['llgbo_default_navthumb']       
126                        );               
127        $llgbo_new_value = implode ("," , $param_llgbo);
128        $query = '
129        UPDATE ' . CONFIG_TABLE . '
130          SET value="'.$llgbo_new_value. '"
131          WHERE param="LLGBO"
132          LIMIT 1';
133                        pwg_query($query);
134                         $template->assign('LLGBOINFO','llgbo_info');
135                         $conf['LLGBO_SETTINGS'] = explode ("," ,$llgbo_new_value);
136        }
137
138 // Reload settings for correct display after update
139        if ($conf['LLGBO_SETTINGS'][0] == 'true')
140          {$template->assign( 'LLGBO_FRAME' , 'true');} else {$template->assign( 'LLGBO_FRAME' , 'false');}
141        if ($conf['LLGBO_SETTINGS'][1] == 'true') 
142          {$template->assign( 'LLGBO_TOOLTIP_DISP' , 'true');}  else  {$template->assign( 'LLGBO_TOOLTIP_DISP' , "false");}
143        if ($conf['LLGBO_SETTINGS'][2]  == 'true')
144          {$template->assign('LLGBO_EXIFUNDERBT' , 'true');}  else  {$template->assign( 'LLGBO_EXIFUNDERBT' , "false");}
145        if ($conf['LLGBO_SETTINGS'][3]  == 'true')
146          {$template->assign( array( 'LLGBO_USEMAP' => 'true'));}  else  { $template->assign( array( 'LLGBO_USEMAP' => "false"));}
147        if ($conf['LLGBO_SETTINGS'][4]  == 'true')
148          {$template->assign( array( 'LLGBO_USEMAP_THUMB' => 'true'));}  else  { $template->assign( array( 'LLGBO_USEMAP_THUMB' => "false"));}
149        if ($conf['LLGBO_SETTINGS'][5]  == 'true')
150          {$template->assign( array( 'LLGBO_TITLE_FRAME' => 'true'));}  else {  $template->assign( array( 'LLGBO_TITLE_FRAME' => "false"));}
151        if ($conf['LLGBO_SETTINGS'][6] == 'true')
152          {$template->assign( array( 'LLGBO_HEADER' => 'true'));}  else  { $template->assign( array( 'LLGBO_HEADER' => "false"));}
153        $template->assign(array( 'LLGBO_MAINTAIN_HEADER' => $conf['LLGBO_SETTINGS'][7]));
154        if ($conf['LLGBO_SETTINGS'][8]  == 'true')
155          {$template->assign(array( 'LLGBO_ALLINFO' => 'true'));}  else {  $template->assign( array( 'LLGBO_ALLINFO' => "false"));} 
156        if ($conf['LLGBO_SETTINGS'][9] == 'true')
157          {$template->assign(array( 'LLGBO_DEFAULT_NAVTHUMB' => 'true'));}  else  { $template->assign(array( 'LLGBO_DEFAULT_NAVTHUMB' => "false"));}
158}
159///////////////////////////////////////////////////////////////////////////////////////
160//// TOOLTIP           
161///////////////////////////////////////////////////////////////////////////////////////
162if ($page['tab'] == 'tooltip') {
163        if ( isset($_POST['save'])  or isset($_POST['preview'])) 
164        { 
165        if (!isset($_POST['llgbo_tooltip_width'])) {$_POST['llgbo_tooltip_width'] = '150';} 
166                if (!isset($_POST['llgbo_tooltip_size'])) {$_POST['llgbo_tooltip_size'] = '2';}   
167                if (!isset($_POST['llgbo_tooltip_bordercolor'])) {$_POST['llgbo_tooltip_bordercolor'] = '#fff';}   
168                if (!isset($_POST['llgbo_tooltip_backgroundcolor'])) {$_POST['llgbo_tooltip_backgroundcolor'] = '#000';} 
169                if (!isset($_POST['llgbo_tooltip_titlecolor'])) {$_POST['llgbo_tooltip_titlecolor'] = '#c92';} 
170                if (!isset($_POST['llgbo_tooltip_color'])) {$_POST['llgbo_tooltip_color'] = '#dadada';}   
171                 
172                 $param_llgbo_tooltip = array(
173                                        $_POST['llgbo_tooltip_width'],                  $_POST['llgbo_tooltip_size'] , 
174                                        $_POST['llgbo_tooltip_bordercolor'],    $_POST['llgbo_tooltip_backgroundcolor'],
175                                        $_POST['llgbo_tooltip_titlecolor'],             $_POST['llgbo_tooltip_color']);         
176                $llgbo_newtooltip_value = implode ("," , $param_llgbo_tooltip);
177               
178                if ( isset($_POST['save']) )
179                                 {   $query = '
180                                UPDATE ' . CONFIG_TABLE . '
181                                  SET value="'.$llgbo_newtooltip_value.'"
182                                  WHERE param="LLGBOTOOLTIP"
183                                  LIMIT 1';
184                                                pwg_query($query);
185                                 $template->assign('LLGBOINFO','llgbo_info');
186                                 }
187                $conf['LLGBO_TOOLTIP'] = explode ("," ,$llgbo_newtooltip_value);
188        }
189 // Reload settings for correct display after update
190 if (isset($conf['LLGBO_TOOLTIP'][0])) {$template->assign(array( 'LLGBO_TOOLTIP_WIDTH' => $conf['LLGBO_TOOLTIP'][0]));}
191 if (isset($conf['LLGBO_TOOLTIP'][1])) {$template->assign(array( 'LLGBO_TOOLTIP_SIZE' => $conf['LLGBO_TOOLTIP'][1]));}
192 if (isset($conf['LLGBO_TOOLTIP'][2])) {$template->assign(array( 'LLGBO_TOOLTIP_BORDERCOLOR' => $conf['LLGBO_TOOLTIP' ][2]));}
193 if (isset($conf['LLGBO_TOOLTIP'][3])) {$template->assign(array( 'LLGBO_TOOLTIP_BACKGROUNDCOLOR' => $conf['LLGBO_TOOLTIP'][3]));}
194 if (isset($conf['LLGBO_TOOLTIP'][4])) {$template->assign(array( 'LLGBO_TOOLTIP_TITLECOLOR' => $conf['LLGBO_TOOLTIP'][4]));}
195 if (isset($conf['LLGBO_TOOLTIP'][5])) {$template->assign(array( 'LLGBO_TOOLTIP_COLOR' => $conf['LLGBO_TOOLTIP'][5]));}
196}
197
198///////////////////////////////////////////////
199/////              FRAME
200/////////////////////////////////////////////////
201if ($page['tab'] == 'frame') {
202        if ( isset($_POST['save'])  or isset($_POST['preview'])) 
203        { 
204        if (!isset($_POST['llgbo_title_frame_color'])) {$_POST['llgbo_title_frame_color'] = '#16195f';} 
205         for ($i = 0   ;$i < 16  ; $i++)
206                {       if (!isset($_POST['llgbo_frame_bdcolor'.$i])) {$_POST['llgbo_frame_bdcolor'.$i] = '#fff' ;}   
207                        if (!isset($_POST['llgbo_frame_bdsize'.$i])) {$_POST['llgbo_frame_bdsize'.$i] = '1' ;} 
208                }
209         
210         $param_llgbo_frame = array(           
211                                $_POST['llgbo_title_frame_color'],
212                                $_POST['llgbo_frame_bdcolor0'],                 $_POST['llgbo_frame_bdsize0'], 
213                                $_POST['llgbo_frame_bdcolor1'],                 $_POST['llgbo_frame_bdsize1'], 
214                                $_POST['llgbo_frame_bdcolor2'],                 $_POST['llgbo_frame_bdsize2'],
215                                $_POST['llgbo_frame_bdcolor3'],                 $_POST['llgbo_frame_bdsize3'],
216                                $_POST['llgbo_frame_bdcolor4'],                 $_POST['llgbo_frame_bdsize4'],
217                                $_POST['llgbo_frame_bdcolor5'],                 $_POST['llgbo_frame_bdsize5'],
218                                $_POST['llgbo_frame_bdcolor6'],                 $_POST['llgbo_frame_bdsize6'],
219                                $_POST['llgbo_frame_bdcolor7'],                 $_POST['llgbo_frame_bdsize7'],
220                                $_POST['llgbo_frame_bdcolor8'],                 $_POST['llgbo_frame_bdsize8'],
221                                $_POST['llgbo_frame_bdcolor9'],                 $_POST['llgbo_frame_bdsize9'],
222                                $_POST['llgbo_frame_bdcolor10'],                $_POST['llgbo_frame_bdsize10'],
223                                $_POST['llgbo_frame_bdcolor11'],                $_POST['llgbo_frame_bdsize11'],
224                                $_POST['llgbo_frame_bdcolor12'],                $_POST['llgbo_frame_bdsize12'],
225                                $_POST['llgbo_frame_bdcolor13'],                $_POST['llgbo_frame_bdsize13'],
226                                $_POST['llgbo_frame_bdcolor14'],                $_POST['llgbo_frame_bdsize14'],
227                                $_POST['llgbo_frame_bdcolor15'],                $_POST['llgbo_frame_bdsize15']
228                        );               
229                        $llgbo_newframe_value = implode ("," , $param_llgbo_frame);
230       
231                if ( isset($_POST['save']) )
232                         { 
233                         $query = '
234                        UPDATE ' . CONFIG_TABLE . '
235                          SET value="'.$llgbo_newframe_value.'"
236                          WHERE param="LLGBOFRAME"
237                          LIMIT 1';
238                                pwg_query($query);
239                $template->assign('LLGBOINFO','llgbo_info'); 
240                }
241                $conf['LLGBO_FRAME'] = explode ("," ,$llgbo_newframe_value );
242       
243}
244 // FRAME
245           if (isset($conf['LLGBO_FRAME'][0])) {$template->assign(array( 'LLGBO_TITLE_FRAME_COLOR' => $conf['LLGBO_FRAME'][0]));}
246         for ($i = 0   ;$i < 16  ; $i++)
247                { $x = 1 + ( 2 * $i);
248                        if (isset($conf['LLGBO_FRAME'][$x])) {$template->assign(array( 'LLGBO_FRAME_BDCOLOR'.$i => $conf['LLGBO_FRAME'][$x]));}
249                        if (isset($conf['LLGBO_FRAME'][$x+1])) {$template->assign(array( 'LLGBO_FRAME_BDSIZE'.$i => $conf['LLGBO_FRAME'][$x+1]));}
250                }
251///  re draw frame after update
252  Draw_frame();
253}
254///////////////////////////////////////////////
255/////            HEADER
256/////////////////////////////////////////////////
257if ($page['tab'] == 'header') {
258        if ( isset($_POST['submit'])) 
259        {   if (!isset($_POST['llgbo_header_home'])) {$_POST['llgbo_header_home'] = 'true';} 
260                if (!isset($_POST['llgbo_header_category'])) {$_POST['llgbo_header_category'] = 'true';}   
261                if (!isset($_POST['llgbo_header_category_filter_recent'])) {$_POST['llgbo_header_category_filter_recent'] = 'true';}   
262                if (!isset($_POST['llgbo_header_category_flat'])) {$_POST['llgbo_header_category_flat'] = 'true';} 
263                if (!isset($_POST['llgbo_header_category_posted_monthly'])) {$_POST['llgbo_header_category_posted_monthly'] = 'true';} 
264                if (!isset($_POST['llgbo_header_picture'])) {$_POST['llgbo_header_picture'] = 'true';} 
265            if (!isset($_POST['llgbo_header_additional_page'])) {$_POST['llgbo_header_additional_page'] = 'true';} 
266                if (!isset($_POST['llgbo_header_most_visited'])) {$_POST['llgbo_header_most_visited'] = 'true';} 
267                if (!isset($_POST['llgbo_header_best_rated'])) {$_POST['llgbo_header_best_rated'] = 'true';} 
268                if (!isset($_POST['llgbo_header_list'])) {$_POST['llgbo_header_list'] = 'true';}       
269                if (!isset($_POST['llgbo_header_recent_pics'])) {$_POST['llgbo_header_recent_pics'] = 'true';}   
270                if (!isset($_POST['llgbo_header_created_monthly_calendar'])) {$_POST['llgbo_header_created_monthly_calendar'] = 'true';} 
271                if (!isset($_POST['llgbo_header_tags'])) {$_POST['llgbo_header_tags'] = 'true';} 
272                if (!isset($_POST['llgbo_header_search'])) {$_POST['llgbo_header_search'] = 'true';}   
273            if (!isset($_POST['llgbo_header_comments'])) {$_POST['llgbo_header_comments'] = 'true';} 
274                if (!isset($_POST['llgbo_header_about'])) {$_POST['llgbo_header_about'] = 'true';}   
275                if (!isset($_POST['llgbo_header_notification'])) {$_POST['llgbo_header_notification'] = 'true';}   
276                if (!isset($_POST['llgbo_header_register'])) {$_POST['llgbo_header_register'] = 'true';} 
277                if (!isset($_POST['llgbo_header_identification'])) {$_POST['llgbo_header_identification'] = 'true';} 
278                if (!isset($_POST['llgbo_header_favorites'])) {$_POST['llgbo_header_favorites'] = 'true';} 
279                if (!isset($_POST['llgbo_header_recent_cats'])) {$_POST['llgbo_header_recent_cats'] = 'true';}         
280                       
281                 
282                 $param_llgbo_header = array(
283                                        $_POST['llgbo_header_home'],    $_POST['llgbo_header_category'] ,
284                                        $_POST['llgbo_header_category_filter_recent'],  $_POST['llgbo_header_category_flat'],
285                                        $_POST['llgbo_header_category_posted_monthly'], $_POST['llgbo_header_picture'],
286                                        $_POST['llgbo_header_additional_page'], $_POST['llgbo_header_most_visited'],
287                                        $_POST['llgbo_header_best_rated'] , $_POST['llgbo_header_list'],
288                                        $_POST['llgbo_header_recent_pics'],             $_POST['llgbo_header_created_monthly_calendar'],
289                                        $_POST['llgbo_header_tags'],            $_POST['llgbo_header_search'],
290                                        $_POST['llgbo_header_comments'],                $_POST['llgbo_header_about'],
291                                        $_POST['llgbo_header_notification'], $_POST['llgbo_header_register'],
292                                        $_POST['llgbo_header_identification'], $_POST['llgbo_header_favorites'],
293                                        $_POST['llgbo_header_recent_cats']);
294                $llgbo_newheader_value = implode ("," , $param_llgbo_header);
295               
296                  $query = '
297                                UPDATE ' . CONFIG_TABLE . '
298                                  SET value="'.$llgbo_newheader_value.'"
299                                  WHERE param="LLGBOHEADER"
300                                  LIMIT 1';
301                                                pwg_query($query);
302                                 $template->assign('LLGBOINFO','llgbo_info');
303                                 
304                $conf['LLGBO_HEADER'] = explode ("," ,$llgbo_newheader_value);
305        }
306 // Reload settings for correct display after update
307 if (isset($conf['LLGBO_HEADER'][0])) {$template->assign(array( 'LLGBO_HEADER_HOME' => $conf['LLGBO_HEADER'][0]));}
308 if (isset($conf['LLGBO_HEADER'][1])) {$template->assign(array( 'LLGBO_HEADER_CATEGORY' => $conf['LLGBO_HEADER'][1]));}
309 if (isset($conf['LLGBO_HEADER'][2])) {$template->assign(array( 'LLGBO_HEADER_CATEGORY_FILTER_RECENT' => $conf['LLGBO_HEADER' ][2]));}
310 if (isset($conf['LLGBO_HEADER'][3])) {$template->assign(array( 'LLGBO_HEADER_CATEGORY_FLAT' => $conf['LLGBO_HEADER'][3]));}
311 if (isset($conf['LLGBO_HEADER'][4])) {$template->assign(array( 'LLGBO_HEADER_CATEGORY_POSTED_MONTHLY' => $conf['LLGBO_HEADER'][4]));}
312 if (isset($conf['LLGBO_HEADER'][5])) {$template->assign(array( 'LLGBO_HEADER_PICTURE' => $conf['LLGBO_HEADER'][5]));}
313 if (isset($conf['LLGBO_HEADER'][6])) {$template->assign(array( 'LLGBO_HEADER_ADDITIONAL_PAGE' => $conf['LLGBO_HEADER'][6]));}
314 if (isset($conf['LLGBO_HEADER'][7])) {$template->assign(array( 'LLGBO_HEADER_MOST_VISITED' => $conf['LLGBO_HEADER'][7]));}
315 if (isset($conf['LLGBO_HEADER'][8])) {$template->assign(array( 'LLGBO_HEADER_BEST_RATED' => $conf['LLGBO_HEADER' ][8]));}
316 if (isset($conf['LLGBO_HEADER'][9])) {$template->assign(array( 'LLGBO_HEADER_LIST' => $conf['LLGBO_HEADER' ][9]));}
317 if (isset($conf['LLGBO_HEADER'][10])) {$template->assign(array( 'LLGBO_HEADER_RECENT_PICS' => $conf['LLGBO_HEADER'][10]));}
318 if (isset($conf['LLGBO_HEADER'][11])) {$template->assign(array( 'LLGBO_HEADER_TAGS' => $conf['LLGBO_HEADER'][11]));}
319 if (isset($conf['LLGBO_HEADER'][12])) {$template->assign(array( 'LLGBO_HEADER_CREATED_MONTHLY_CALENDAR' => $conf['LLGBO_HEADER'][12]));}
320 if (isset($conf['LLGBO_HEADER'][13])) {$template->assign(array( 'LLGBO_HEADER_SEARCH' => $conf['LLGBO_HEADER'][13]));}
321 if (isset($conf['LLGBO_HEADER'][14])) {$template->assign(array( 'LLGBO_HEADER_COMMENTS' => $conf['LLGBO_HEADER'][14]));}
322 if (isset($conf['LLGBO_HEADER'][15])) {$template->assign(array( 'LLGBO_HEADER_ABOUT' => $conf['LLGBO_HEADER'][15]));}
323 if (isset($conf['LLGBO_HEADER'][16])) {$template->assign(array( 'LLGBO_HEADER_NOTIFICATION' => $conf['LLGBO_HEADER' ][16]));}
324 if (isset($conf['LLGBO_HEADER'][17])) {$template->assign(array( 'LLGBO_HEADER_REGISTER' => $conf['LLGBO_HEADER'][17]));}
325 if (isset($conf['LLGBO_HEADER'][18])) {$template->assign(array( 'LLGBO_HEADER_IDENTIFICATION' => $conf['LLGBO_HEADER'][18]));}
326 if (isset($conf['LLGBO_HEADER'][19])) {$template->assign(array( 'LLGBO_HEADER_FAVORITES' => $conf['LLGBO_HEADER'][19]));}
327 if (isset($conf['LLGBO_HEADER'][20])) {$template->assign(array( 'LLGBO_HEADER_RECENT_CATS' => $conf['LLGBO_HEADER'][20]));}
328
329 }
330
331$template->assign_var_from_handle( 'ADMIN_CONTENT', 'llgbo_admin_content');
332//////////////////////////
333function Draw_frame()
334        {global $conf ,$template;
335        $bd = 0; 
336        $frame_begin ='';
337        $frame_end='';
338               
339        for ($i = 0   ;$i < 16  ; $i++)
340        { $x = 1 + ( 2 * $i);
341
342        if ((isset($conf['LLGBO_FRAME'][$x+1])) and  ($conf['LLGBO_FRAME'][$x+1] > 0))
343        {  $frame_begin = '<div id="gbo'.$i.'"  style="border: '.$conf['LLGBO_FRAME'][$x+1].'px solid '.$conf['LLGBO_FRAME'][$x].'">'."\n".$frame_begin;
344         $frame_end = $frame_end .' </div>';      }
345
346         }
347        $template->assign('FRAME_BEGIN', $frame_begin);
348        $template->assign('FRAME_END', $frame_end); 
349        }
350?>
Note: See TracBrowser for help on using the repository browser.