Project

General

Profile

« Previous | Next » 

Revision 1356

Added by Dietmar almost 14 years ago

more little fixes in settings
change to RC2

View differences:

branches/2.8.x/CHANGELOG
11 11
! = Update/Change
12 12

  
13 13
------------------------------------- 2.8.2 -------------------------------------
14
27 Dec-2010 Build 1356 Dietmar Woellbrink (Luisehahne)
15
# more little fixes in settings
16
! change to RC2
14 17
27 Dec-2010 Build 1355 Frank Heyne (FrankH)
15 18
# security fix: remaining vulnerabilities mentioned in http://secunia.com/secunia_research/2010-90/
16 19
# security fix: in path admin/templates/ - added FTAN check
branches/2.8.x/wb/admin/interface/version.php
51 51
}
52 52

  
53 53
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
54
if(!defined('VERSION')) define('VERSION', '2.8.2.RC1');
55
if(!defined('REVISION')) define('REVISION', '1355');
54
if(!defined('VERSION')) define('VERSION', '2.8.2.RC2');
55
if(!defined('REVISION')) define('REVISION', '1356');
56 56

  
57 57
?>
branches/2.8.x/wb/admin/settings/save.php
29 29
if($advanced == '')
30 30
{
31 31
	$admin = new admin('Settings', 'settings_basic');
32
	$_POST['database_password'] = DB_PASSWORD;
33 32
} else {
34 33
	$admin = new admin('Settings', 'settings_advanced');
35 34
}
......
155 154
	$old_settings[$setting['name']] = $setting['value'];
156 155
	$setting_name = $setting['name'];
157 156
	$value = $admin->get_post($setting_name);
157
	$value = isset($_POST[$setting_name]) ? $value : $old_settings[$setting_name] ;
158 158
	switch ($setting_name) {
159 159
		case 'default_timezone':
160 160
			$value=$value*60*60;
......
166 166
			$value=$file_mode;
167 167
			break;
168 168
		case 'pages_directory':
169
			if(trim($value)=='/') $value='';
170 169
			break;
171 170
		default :
172 171

  
......
179 178

  
180 179
    $passed = in_array($setting_name, $allow_empty_values);
181 180

  
182
    if ( !in_array($value, $disallow_in_fields) && ((trim($value) <> '') || $passed == true) )
181
    if ( !in_array($value, $disallow_in_fields) && (isset($_POST[$setting_name]) || $passed == true) )
183 182
    {
184 183
        $value = trim($admin->add_slashes($value));
185 184
        $sql = 'UPDATE `'.TABLE_PREFIX.'settings` ';
......
187 186
        $sql .= 'WHERE `name` <> \'wb_version\' ';
188 187
        $sql .= 'AND `name` = \''.$setting_name.'\' ';
189 188

  
190
        if ($database->query($sql))
189
        if (!$database->query($sql))
191 190
        {
191
			if($database->is_error()) {
192
				$admin->print_error($database->get_error, ADMIN_URL.'/settings/index.php'.$advanced);
193
			}
192 194
        }
193 195
	}
194 196
}
branches/2.8.x/wb/admin/settings/index.php
1
<?php
2
/**
3
 *
4
 * @category        admin
5
 * @package         settings
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9
 * @link			http://www.websitebaker2.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 5.2.2 and higher
13
 * @version         $Id$
14
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
16
 *
17
 */
18

  
19
require('../../config.php');
20
require_once(WB_PATH.'/framework/class.admin.php');
21

  
22
if(isset($_GET['advanced']) && $_GET['advanced'] == 'yes') {
23
	$admin = new admin('Settings', 'settings_advanced');
24
} else {
25
	$admin = new admin('Settings', 'settings_basic');
26
}
27

  
28
// Include the WB functions file
29
require_once(WB_PATH.'/framework/functions.php');
30
require_once(WB_PATH.'/framework/functions-utf8.php');
31

  
32
// Create new template object
33
$template = new Template(THEME_PATH.'/templates');
34
// $template->debug = true;
35

  
36
$template->set_file('page',        'settings.htt');
37
$template->set_block('page',       'main_block', 'main');
38
$template->set_var('FTAN', $admin->getFTAN());
39

  
40
$template->set_block('main_block', 'template_list_block',         'template_list');
41
$template->set_block('main_block', 'timezone_list_block',         'timezone_list');
42
$template->set_block('main_block', 'language_list_block',         'language_list');
43
$template->set_block('main_block', 'date_format_list_block',      'date_format_list');
44
$template->set_block('main_block', 'time_format_list_block',      'time_format_list');
45
$template->set_block('main_block', 'theme_list_block',            'theme_list');
46
$template->set_block('main_block', 'search_template_list_block',  'search_template_list');
47
$template->set_block('main_block', 'group_list_block',            'group_list');
48
$template->set_block('main_block', 'charset_list_block',          'charset_list');
49
$template->set_block('main_block', 'error_reporting_list_block',  'error_reporting_list');
50
$template->set_block('main_block', 'editor_list_block',           'editor_list');
51
$template->set_block('main_block', 'page_level_limit_list_block', 'page_level_limit_list');
52

  
53
$template->set_block('main_block', 'show_page_level_limit_block', 'show_page_level_limit');
54
$template->set_block('main_block', 'show_checkbox_1_block',       'show_checkbox_1');
55
$template->set_block('main_block', 'show_checkbox_2_block',       'show_checkbox_2');
56
$template->set_block('main_block', 'show_checkbox_3_block',       'show_checkbox_3');
57
$template->set_block('main_block', 'show_php_error_level_block',  'show_php_error_level');
58
$template->set_block('main_block', 'show_charset_block',          'show_charset');
59
$template->set_block('main_block', 'show_wysiwyg_block',          'show_wysiwyg');
60
$template->set_block('main_block', 'show_access_block',           'show_access');
61
$template->set_block('main_block', 'show_search_block',           'show_search');
62
$template->set_block('main_block', 'show_redirect_timer_block',   'show_redirect_timer');
63

  
64
// Query current settings in the db, then loop through them and print them
65
$query = "SELECT * FROM ".TABLE_PREFIX."settings";
66
$results = $database->query($query);
67
while($setting = $results->fetchRow())
68
{
69
	$setting_name = $setting['name'];
70
	$setting_value = ( $setting_name != 'wbmailer_smtp_password' ) ? htmlspecialchars($setting['value']) : $setting['value'];
71
	$template->set_var(strtoupper($setting_name),$setting_value);
72
}
73

  
74
// Do the same for settings stored in config file as with ones in db
75
$database_type = '';
76
$is_advanced = (isset($_GET['advanced']) && $_GET['advanced'] == 'yes');
77
// Tell the browser whether or not to show advanced options
78
if($is_advanced)
79
{
80
	$template->set_var('DISPLAY_ADVANCED', '');
81
	$template->set_var('ADVANCED_FILE_PERMS_ID', 'file_perms_box');
82
	$template->set_var('BASIC_FILE_PERMS_ID', 'hide');
83
	$template->set_var('ADVANCED', 'yes');
84
	$template->set_var('ADVANCED_BUTTON', '&lt;&lt; '.$TEXT['HIDE_ADVANCED']);
85
	$template->set_var('ADVANCED_LINK', 'index.php?advanced=no');
86

  
87
} else {
88
	$template->set_var('DISPLAY_ADVANCED', ' style="display: none;"');
89
	$template->set_var('BASIC_FILE_PERMS_ID', 'file_perms_box');
90
	$template->set_var('ADVANCED_FILE_PERMS_ID', 'hide');
91

  
92
	$template->set_var('ADVANCED', 'no');
93
	$template->set_var('ADVANCED_BUTTON', $TEXT['SHOW_ADVANCED'].' &gt;&gt;');
94
	$template->set_var('ADVANCED_LINK', 'index.php?advanced=yes');
95
}
96

  
97
	$query = "SELECT * FROM ".TABLE_PREFIX."search WHERE extra = ''";
98
	$results = $database->query($query);
99

  
100
	// Query current settings in the db, then loop through them and print them
101
	while($setting = $results->fetchRow())
102
	{
103
		$setting_name = $setting['name'];
104
		$setting_value = htmlspecialchars(($setting['value']));
105
		switch($setting_name) {
106
			// Search header
107
			case 'header':
108
				$template->set_var('SEARCH_HEADER', $setting_value);
109
			break;
110
			// Search results header
111
			case 'results_header':
112
				$template->set_var('SEARCH_RESULTS_HEADER', $setting_value);
113
			break;
114
			// Search results loop
115
			case 'results_loop':
116
				$template->set_var('SEARCH_RESULTS_LOOP', $setting_value);
117
			break;
118
			// Search results footer
119
			case 'results_footer':
120
				$template->set_var('SEARCH_RESULTS_FOOTER', $setting_value);
121
			break;
122
			// Search no results
123
			case 'no_results':
124
				$template->set_var('SEARCH_NO_RESULTS', $setting_value);
125
			break;
126
			// Search footer
127
			case 'footer':
128
				$template->set_var('SEARCH_FOOTER', $setting_value);
129
			break;
130
			// Search module-order
131
			case 'module_order':
132
				$template->set_var('SEARCH_MODULE_ORDER', $setting_value);
133
			break;
134
			// Search max lines of excerpt
135
			case 'max_excerpt':
136
				$template->set_var('SEARCH_MAX_EXCERPT', $setting_value);
137
			break;
138
			// time-limit
139
			case 'time_limit':
140
				$template->set_var('SEARCH_TIME_LIMIT', $setting_value);
141
			break;
142
			// Search template
143
			case 'template':
144
				$search_template = $setting_value;
145
			break;
146
		}
147
	}
148

  
149
	$template->set_var(array(
150
									'PAGES_DIRECTORY' => PAGES_DIRECTORY,
151
									'MEDIA_DIRECTORY' => MEDIA_DIRECTORY,
152
									'PAGE_EXTENSION' => PAGE_EXTENSION,
153
									'PAGE_SPACER' => PAGE_SPACER,
154
									'WB_PATH' => WB_PATH,
155
									'WB_URL' => WB_URL,
156
									'THEME_URL' => THEME_URL,
157
									'ADMIN_PATH' => ADMIN_PATH,
158
									'ADMIN_URL' => ADMIN_URL,
159
								    'DATABASE_TYPE' => '',
160
									'DATABASE_HOST' => '',
161
									'DATABASE_USERNAME' => '',
162
									'DATABASE_NAME' => '',
163
									'TABLE_PREFIX' => TABLE_PREFIX
164
								 ));
165

  
166
	// Insert language values
167
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'language' ORDER BY name");
168
	if($result->numRows() > 0)
169
	{
170
		while($addon = $result->fetchRow()) {
171
			$l_codes[$addon['name']] = $addon['directory'];
172
			$l_names[$addon['name']] = entities_to_7bit($addon['name']); // sorting-problem workaround
173
		}
174
		asort($l_names);
175
		foreach($l_names as $l_name=>$v) {
176
			// Insert code and name
177
			$template->set_var(array(
178
									'CODE' => $l_codes[$l_name],
179
									'NAME' => $l_name,
180
									'FLAG' => THEME_URL.'/images/flags/'.strtolower($l_codes[$l_name]),
181
									));
182
			// Check if it is selected
183
			if(DEFAULT_LANGUAGE == $l_codes[$l_name]) {
184
				$template->set_var('SELECTED', ' selected="selected"');
185
			} else {
186
				$template->set_var('SELECTED', '');
187
			}
188
			$template->parse('language_list', 'language_list_block', true);
189
		}
190
	}
191

  
192
	// Insert default timezone values
193
	require(ADMIN_PATH.'/interface/timezones.php');
194
	foreach($TIMEZONES AS $hour_offset => $title)
195
	{
196
		// Make sure we dont list "System Default" as we are setting this value!
197
		if($hour_offset != '-20') {
198
			$template->set_var('VALUE', $hour_offset);
199
			$template->set_var('NAME', $title);
200
			if(DEFAULT_TIMEZONE == $hour_offset*60*60) {
201
				$template->set_var('SELECTED', ' selected="selected"');
202
			} else {
203
				$template->set_var('SELECTED', '');
204
			}
205
			$template->parse('timezone_list', 'timezone_list_block', true);
206
		}
207
	}
208

  
209
	// Insert default charset values
210
	require(ADMIN_PATH.'/interface/charsets.php');
211
	foreach($CHARSETS AS $code => $title) {
212
		$template->set_var('VALUE', $code);
213
		$template->set_var('NAME', $title);
214
		if(DEFAULT_CHARSET == $code) {
215
			$template->set_var('SELECTED', ' selected="selected"');
216
		} else {
217
			$template->set_var('SELECTED', '');
218
		}
219
		$template->parse('charset_list', 'charset_list_block', true);
220
	}
221

  
222

  
223
	// Insert date format list
224
	require(ADMIN_PATH.'/interface/date_formats.php');
225
	foreach($DATE_FORMATS AS $format => $title) {
226
		$format = str_replace('|', ' ', $format); // Add's white-spaces (not able to be stored in array key)
227
		if($format != 'system_default') {
228
			$template->set_var('VALUE', $format);
229
		} else {
230
			$template->set_var('VALUE', '');
231
		}
232
		$template->set_var('NAME', $title);
233
		if(DEFAULT_DATE_FORMAT == $format) {
234
			$template->set_var('SELECTED', ' selected="selected"');
235
		} else {
236
			$template->set_var('SELECTED', '');
237
		}
238
		$template->parse('date_format_list', 'date_format_list_block', true);
239
	}
240

  
241
	// Insert time format list
242
	require(ADMIN_PATH.'/interface/time_formats.php');
243
	foreach($TIME_FORMATS AS $format => $title) {
244
		$format = str_replace('|', ' ', $format); // Add's white-spaces (not able to be stored in array key)
245
		if($format != 'system_default') {
246
			$template->set_var('VALUE', $format);
247
		} else {
248
			$template->set_var('VALUE', '');
249
		}
250
		$template->set_var('NAME', $title);
251
		if(DEFAULT_TIME_FORMAT == $format) {
252
			$template->set_var('SELECTED', ' selected="selected"');
253
		} else {
254
			$template->set_var('SELECTED', '');
255
		}
256
		$template->parse('time_format_list', 'time_format_list_block', true);
257
	}
258

  
259
	// Insert templates
260
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND function != 'theme' ORDER BY name");
261
	if($result->numRows() > 0) {
262
		while($addon = $result->fetchRow()) {
263
			$template->set_var('FILE', $addon['directory']);
264
			$template->set_var('NAME', $addon['name']);
265
			if(($addon['directory'] == DEFAULT_TEMPLATE) ? $selected = ' selected="selected"' : $selected = '');
266
			$template->set_var('SELECTED', $selected);
267
			$template->parse('template_list', 'template_list_block', true);
268
		}
269
	}
270

  
271
	// Insert backend theme
272
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND function = 'theme' ORDER BY name");
273
	if($result->numRows() > 0) {
274
		while($addon = $result->fetchRow()) {
275
			$template->set_var('FILE', $addon['directory']);
276
			$template->set_var('NAME', $addon['name']);
277
			if(($addon['directory'] == DEFAULT_THEME) ? $selected = ' selected="selected"' : $selected = '');
278
			$template->set_var('SELECTED', $selected);
279
			$template->parse('theme_list', 'theme_list_block', true);
280
		}
281
	}
282

  
283
	// Insert WYSIWYG modules
284
	$file='none';
285
	$module_name=$TEXT['NONE'];
286
	$template->set_var('FILE', $file);
287
	$template->set_var('NAME', $module_name);
288
	$selected = (!defined('WYSIWYG_EDITOR') || $file == WYSIWYG_EDITOR) ? ' selected="selected"' : '';
289
	$template->set_var('SELECTED', $selected);
290
	$template->parse('editor_list', 'editor_list_block', true);
291
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'wysiwyg' ORDER BY name");
292
	if($result->numRows() > 0)
293
	{
294
		while($addon = $result->fetchRow())
295
	    {
296
			$template->set_var('FILE', $addon['directory']);
297
			$template->set_var('NAME', $addon['name']);
298
			$selected = (!defined('WYSIWYG_EDITOR') || $addon['directory'] == WYSIWYG_EDITOR) ? ' selected="selected"' : '';
299
			$template->set_var('SELECTED', $selected);
300
			$template->parse('editor_list', 'editor_list_block', true);
301
		}
302
	}
303

  
304
// Insert templates for search settings
305
	$search_template = ( ($search_template == DEFAULT_TEMPLATE) || ($search_template == '') ) ? DEFAULT_TEMPLATE : $search_template;
306
	$selected = ( ($search_template != DEFAULT_TEMPLATE) ) ?  ' selected="selected"' : $selected = '';
307

  
308
	$template->set_var(array(
309
	        'FILE' => '',
310
	        'NAME' => $TEXT['SYSTEM_DEFAULT'],
311
	        'SELECTED' => $selected
312
	    ));
313

  
314
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND function = 'template' ORDER BY name");
315
	if($result->numRows() > 0)
316
	{
317
		while($addon = $result->fetchRow())
318
	    {
319
			$template->set_var('FILE', $addon['directory']);
320
			$template->set_var('NAME', $addon['name']);
321
	        $selected = ($addon['directory'] == $search_template) ? ' selected="selected"' :  $selected = '';
322
			$template->set_var('SELECTED', $selected);
323
			$template->parse('search_template_list', 'search_template_list_block', true);
324

  
325
		}
326
	}
327

  
328
	// Insert default error reporting values
329
	require(ADMIN_PATH.'/interface/er_levels.php');
330
	foreach($ER_LEVELS AS $value => $title)
331
	{
332
		$template->set_var('VALUE', $value);
333
		$template->set_var('NAME', $title);
334
	    $selected = (ER_LEVEL == $value) ? ' selected="selected"' : '';
335
	    $template->set_var('SELECTED', $selected);
336
		$template->parse('error_reporting_list', 'error_reporting_list_block', true);
337
	}
338

  
339
	// Insert permissions values
340
	if($admin->get_permission('settings_advanced') != true)
341
	{
342
		$template->set_var('DISPLAY_ADVANCED_BUTTON', 'hide');
343
	}
344

  
345
	// Insert page level limits
346
	for($i = 1; $i <= 10; $i++)
347
	{
348
		$template->set_var('NUMBER', $i);
349
		if(PAGE_LEVEL_LIMIT == $i)
350
	    {
351
			$template->set_var('SELECTED', ' selected="selected"');
352
		} else {
353
			$template->set_var('SELECTED', '');
354
		}
355
		$template->parse('page_level_limit_list', 'page_level_limit_list_block', true);
356
	}
357

  
358
	// Work-out if multiple menus feature is enabled
359
	if(defined('MULTIPLE_MENUS') && MULTIPLE_MENUS == true)
360
	{
361
		$template->set_var('MULTIPLE_MENUS_ENABLED', ' checked="checked"');
362
	} else {
363
		$template->set_var('MULTIPLE_MENUS_DISABLED', ' checked="checked"');
364
	}
365

  
366
	// Work-out if page languages feature is enabled
367
	if(defined('PAGE_LANGUAGES') && PAGE_LANGUAGES == true)
368
	{
369
	        $template->set_var('PAGE_LANGUAGES_ENABLED', ' checked="checked"');
370
	} else {
371
	        $template->set_var('PAGE_LANGUAGES_DISABLED', ' checked="checked"');
372
	}
373

  
374
	// Work-out if smart login feature is enabled
375
	if(defined('SMART_LOGIN') && SMART_LOGIN == true)
376
	{
377
		$template->set_var('SMART_LOGIN_ENABLED', ' checked="checked"');
378
	} else {
379
		$template->set_var('SMART_LOGIN_DISABLED', ' checked="checked"');
380
	}
381

  
382
	/* Make's sure GD library is installed */
383
	if(extension_loaded('gd') && function_exists('imageCreateFromJpeg'))
384
	{
385
		$template->set_var('GD_EXTENSION_ENABLED', '');
386
	} else {
387
		$template->set_var('GD_EXTENSION_ENABLED', ' style="display: none;"');
388
	}
389

  
390
	// Work-out if section blocks feature is enabled
391
	if(defined('SECTION_BLOCKS') && SECTION_BLOCKS == true)
392
	{
393
		$template->set_var('SECTION_BLOCKS_ENABLED', ' checked="checked"');
394
	} else {
395
		$template->set_var('SECTION_BLOCKS_DISABLED', ' checked="checked"');
396
	}
397

  
398
	// Work-out if homepage redirection feature is enabled
399
	if(defined('HOMEPAGE_REDIRECTION') && HOMEPAGE_REDIRECTION == true)
400
	{
401
		$template->set_var('HOMEPAGE_REDIRECTION_ENABLED', ' checked="checked"');
402
	} else {
403
		$template->set_var('HOMEPAGE_REDIRECTION_DISABLED', ' checked="checked"');
404
	}
405

  
406
	// Work-out which server os should be checked
407
	if(OPERATING_SYSTEM == 'linux')
408
	{
409
		$template->set_var('LINUX_SELECTED', ' checked="checked"');
410
	} elseif(OPERATING_SYSTEM == 'windows') {
411
		$template->set_var('WINDOWS_SELECTED', ' checked="checked"');
412
	}
413

  
414
	// Work-out if manage sections feature is enabled
415
	if(MANAGE_SECTIONS)
416
	{
417
		$template->set_var('MANAGE_SECTIONS_ENABLED', ' checked="checked"');
418
	} else {
419
		$template->set_var('MANAGE_SECTIONS_DISABLED', ' checked="checked"');
420
	}
421

  
422
	// Work-out which wbmailer routine should be checked
423
	if(WBMAILER_ROUTINE == 'phpmail')
424
	{
425
		$template->set_var('PHPMAIL_SELECTED', ' checked="checked"');
426
		$template->set_var('SMTP_VISIBILITY', ' style="display: none;"');
427
		$template->set_var('SMTP_VISIBILITY_AUTH', ' style="display: none;"');
428
	} elseif(WBMAILER_ROUTINE == 'smtp')
429
	{
430
		$template->set_var('SMTPMAIL_SELECTED', ' checked="checked"');
431
		$template->set_var('SMTP_VISIBILITY', '');
432
	}
433

  
434
	// Work-out if SMTP authentification should be checked
435
	if(WBMAILER_SMTP_AUTH)
436
	{
437
		$template->set_var('SMTP_AUTH_SELECTED', ' checked="checked"');
438
		if(WBMAILER_ROUTINE == 'smtp')
439
	    {
440
			$template->set_var('SMTP_VISIBILITY_AUTH', '');
441

  
442
		} else {
443
			$template->set_var('SMTP_VISIBILITY_AUTH', ' style="display: none;"');
444
		}
445
	} else {
446
		$template->set_var('SMTP_VISIBILITY_AUTH', ' style="display: none;"');
447
	}
448

  
449
	// Work-out if intro feature is enabled
450
	if(INTRO_PAGE)
451
	{
452
		$template->set_var('INTRO_PAGE_ENABLED', ' checked="checked"');
453
	} else {
454
		$template->set_var('INTRO_PAGE_DISABLED', ' checked="checked"');
455
	}
456

  
457
	// Work-out if frontend login feature is enabled
458
	if(FRONTEND_LOGIN)
459
	{
460
		$template->set_var('PRIVATE_ENABLED', ' checked="checked"');
461
	} else {
462
		$template->set_var('PRIVATE_DISABLED', ' checked="checked"');
463
	}
464

  
465
	// Work-out if page trash feature is disabled, in-line, or separate
466
	if(PAGE_TRASH == 'disabled')
467
	{
468
		$template->set_var('PAGE_TRASH_DISABLED', ' checked="checked"');
469
		$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', 'display: none;');
470
	} elseif(PAGE_TRASH == 'inline')
471
	{
472
		$template->set_var('PAGE_TRASH_INLINE', ' checked="checked"');
473
		$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', 'display: none;');
474
	} elseif(PAGE_TRASH == 'separate')
475
	{
476
		$template->set_var('PAGE_TRASH_SEPARATE', ' checked="checked"');
477
		$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', 'display: inline;');
478
	}
479

  
480
	// Work-out if media home folde feature is enabled
481
	if(HOME_FOLDERS)
482
	{
483
		$template->set_var('HOME_FOLDERS_ENABLED', ' checked="checked"');
484
	} else {
485
		$template->set_var('HOME_FOLDERS_DISABLED', ' checked="checked"');
486
	}
487

  
488
	// Insert search select
489
	if(SEARCH == 'private')
490
	{
491
		$template->set_var('PRIVATE_SEARCH', ' selected="selected"');
492
	} elseif(SEARCH == 'registered') {
493
		$template->set_var('REGISTERED_SEARCH', ' selected="selected"');
494
	} elseif(SEARCH == 'none') {
495
		$template->set_var('NONE_SEARCH', ' selected="selected"');
496
	}
497

  
498
	// Work-out if 777 permissions are set
499
	if(STRING_FILE_MODE == '0777' AND STRING_DIR_MODE == '0777')
500
	{
501
		$template->set_var('WORLD_WRITEABLE_SELECTED', ' checked="checked"');
502
	}
503

  
504
	// Work-out which file mode boxes are checked
505
	if(extract_permission(STRING_FILE_MODE, 'u', 'r'))
506
	{
507
		$template->set_var('FILE_U_R_CHECKED', ' checked="checked"');
508
	}
509
	if(extract_permission(STRING_FILE_MODE, 'u', 'w'))
510
	{
511
		$template->set_var('FILE_U_W_CHECKED', ' checked="checked"');
512
	}
513
	if(extract_permission(STRING_FILE_MODE, 'u', 'e'))
514
	{
515
		$template->set_var('FILE_U_E_CHECKED', ' checked="checked"');
516
	}
517
	if(extract_permission(STRING_FILE_MODE, 'g', 'r'))
518
	{
519
		$template->set_var('FILE_G_R_CHECKED', ' checked="checked"');
520
	}
521
	if(extract_permission(STRING_FILE_MODE, 'g', 'w'))
522
	{
523
		$template->set_var('FILE_G_W_CHECKED', ' checked="checked"');
524
	}
525
	if(extract_permission(STRING_FILE_MODE, 'g', 'e'))
526
	{
527
		$template->set_var('FILE_G_E_CHECKED', ' checked="checked"');
528
	}
529
	if(extract_permission(STRING_FILE_MODE, 'o', 'r'))
530
	{
531
		$template->set_var('FILE_O_R_CHECKED', ' checked="checked"');
532
	}
533
	if(extract_permission(STRING_FILE_MODE, 'o', 'w'))
534
	{
535
		$template->set_var('FILE_O_W_CHECKED', ' checked="checked"');
536
	}
537
	if(extract_permission(STRING_FILE_MODE, 'o', 'e'))
538
	{
539
		$template->set_var('FILE_O_E_CHECKED', ' checked="checked"');
540
	}
541
	// Work-out which dir mode boxes are checked
542
	if(extract_permission(STRING_DIR_MODE, 'u', 'r'))
543
	{
544
		$template->set_var('DIR_U_R_CHECKED', ' checked="checked"');
545
	}
546
	if(extract_permission(STRING_DIR_MODE, 'u', 'w'))
547
	{
548
		$template->set_var('DIR_U_W_CHECKED', ' checked="checked"');
549
	}
550
	if(extract_permission(STRING_DIR_MODE, 'u', 'e'))
551
	{
552
		$template->set_var('DIR_U_E_CHECKED', ' checked="checked"');
553
	}
554
	if(extract_permission(STRING_DIR_MODE, 'g', 'r'))
555
	{
556
		$template->set_var('DIR_G_R_CHECKED', ' checked="checked"');
557
	}
558
	if(extract_permission(STRING_DIR_MODE, 'g', 'w'))
559
	{
560
		$template->set_var('DIR_G_W_CHECKED', ' checked="checked"');
561
	}
562
	if(extract_permission(STRING_DIR_MODE, 'g', 'e'))
563
	{
564
		$template->set_var('DIR_G_E_CHECKED', ' checked="checked"');
565
	}
566
	if(extract_permission(STRING_DIR_MODE, 'o', 'r'))
567
	{
568
		$template->set_var('DIR_O_R_CHECKED', ' checked="checked"');
569
	}
570
	if(extract_permission(STRING_DIR_MODE, 'o', 'w'))
571
	{
572
		$template->set_var('DIR_O_W_CHECKED', ' checked="checked"');
573
	}
574
	if(extract_permission(STRING_DIR_MODE, 'o', 'e'))
575
	{
576
		$template->set_var('DIR_O_E_CHECKED', ' checked="checked"');
577
	}
578

  
579
	// Insert Server Email value into template
580
	$template->set_var('SERVER_EMAIL', SERVER_EMAIL);
581

  
582
	// Insert groups into signup list
583
	$results = $database->query("SELECT group_id, name FROM ".TABLE_PREFIX."groups WHERE group_id != '1'");
584
	if($results->numRows() > 0)
585
	{
586
		while($group = $results->fetchRow())
587
	    {
588
			$template->set_var('ID', $group['group_id']);
589
			$template->set_var('NAME', $group['name']);
590
			if(FRONTEND_SIGNUP == $group['group_id'])
591
	        {
592
				$template->set_var('SELECTED', ' selected="selected"');
593
			} else {
594
				$template->set_var('SELECTED', '');
595
			}
596
			$template->parse('group_list', 'group_list_block', true);
597
		}
598
	} else {
599
		$template->set_var('ID', 'disabled');
600
		$template->set_var('NAME', $MESSAGE['GROUPS']['NO_GROUPS_FOUND']);
601
		$template->parse('group_list', 'group_list_block', true);
602
	}
603

  
604
	// Insert language headings
605
	$template->set_var(array(
606
								'HEADING_GENERAL_SETTINGS' => $HEADING['GENERAL_SETTINGS'],
607
								'HEADING_DEFAULT_SETTINGS' => $HEADING['DEFAULT_SETTINGS'],
608
								'HEADING_SEARCH_SETTINGS' => $HEADING['SEARCH_SETTINGS'],
609
								'HEADING_SERVER_SETTINGS' => $HEADING['SERVER_SETTINGS'],
610
								'HEADING_WBMAILER_SETTINGS' => $HEADING['WBMAILER_SETTINGS'],
611
								'HEADING_ADMINISTRATION_TOOLS' => $HEADING['ADMINISTRATION_TOOLS']
612
								)
613
						);
614
	// Insert language text and messages
615
	$template->set_var(array(
616
								'TEXT_WEBSITE_TITLE' => $TEXT['WEBSITE_TITLE'],
617
								'TEXT_WEBSITE_DESCRIPTION' => $TEXT['WEBSITE_DESCRIPTION'],
618
								'TEXT_WEBSITE_KEYWORDS' => $TEXT['WEBSITE_KEYWORDS'],
619
								'TEXT_WEBSITE_HEADER' => $TEXT['WEBSITE_HEADER'],
620
								'TEXT_WEBSITE_FOOTER' => $TEXT['WEBSITE_FOOTER'],
621
								'TEXT_HEADER' => $TEXT['HEADER'],
622
								'TEXT_FOOTER' => $TEXT['FOOTER'],
623
								'TEXT_VISIBILITY' => $TEXT['VISIBILITY'],
624
								'TEXT_RESULTS_HEADER' => $TEXT['RESULTS_HEADER'],
625
								'TEXT_RESULTS_LOOP' => $TEXT['RESULTS_LOOP'],
626
								'TEXT_RESULTS_FOOTER' => $TEXT['RESULTS_FOOTER'],
627
								'TEXT_NO_RESULTS' => $TEXT['NO_RESULTS'],
628
								'TEXT_TEXT' => $TEXT['TEXT'],
629
								'TEXT_DEFAULT' => $TEXT['DEFAULT'],
630
								'TEXT_LANGUAGE' => $TEXT['LANGUAGE'],
631
								'TEXT_TIMEZONE' => $TEXT['TIMEZONE'],
632
								'TEXT_CHARSET' => $TEXT['CHARSET'],
633
								'TEXT_DATE_FORMAT' => $TEXT['DATE_FORMAT'],
634
								'TEXT_TIME_FORMAT' => $TEXT['TIME_FORMAT'],
635
								'TEXT_TEMPLATE' => $TEXT['TEMPLATE'],
636
								'TEXT_THEME' => $TEXT['THEME'],
637
								'TEXT_WYSIWYG_EDITOR' => $TEXT['WYSIWYG_EDITOR'],
638
								'TEXT_PAGE_LEVEL_LIMIT' => $TEXT['PAGE_LEVEL_LIMIT'],
639
								'TEXT_INTRO_PAGE' => $TEXT['INTRO_PAGE'],
640
								'TEXT_FRONTEND' => $TEXT['FRONTEND'],
641
								'TEXT_LOGIN' => $TEXT['LOGIN'],
642
								'TEXT_REDIRECT_AFTER' => $TEXT['REDIRECT_AFTER'],
643
								'TEXT_SIGNUP' => $TEXT['SIGNUP'],
644
								'TEXT_PHP_ERROR_LEVEL' => $TEXT['PHP_ERROR_LEVEL'],
645
								'TEXT_PAGES_DIRECTORY' => $TEXT['PAGES_DIRECTORY'],
646
								'TEXT_MEDIA_DIRECTORY' => $TEXT['MEDIA_DIRECTORY'],
647
								'TEXT_PAGE_EXTENSION' => $TEXT['PAGE_EXTENSION'],
648
								'TEXT_PAGE_SPACER' => $TEXT['PAGE_SPACER'],
649
								'TEXT_RENAME_FILES_ON_UPLOAD' => $TEXT['RENAME_FILES_ON_UPLOAD'],
650
								'TEXT_APP_NAME' => $TEXT['APP_NAME'],
651
								'TEXT_SESSION_IDENTIFIER' => $TEXT['SESSION_IDENTIFIER'],
652
								'TEXT_SEC_ANCHOR' => $TEXT['SEC_ANCHOR'],
653
								'TEXT_SERVER_OPERATING_SYSTEM' => $TEXT['SERVER_OPERATING_SYSTEM'],
654
								'TEXT_LINUX_UNIX_BASED' => $TEXT['LINUX_UNIX_BASED'],
655
								'TEXT_WINDOWS' => $TEXT['WINDOWS'],
656
								'TEXT_ADMIN' => $TEXT['ADMIN'],
657
								'TEXT_TYPE' => $TEXT['TYPE'],
658
								'TEXT_DATABASE' => $TEXT['DATABASE'],
659
								'TEXT_HOST' => $TEXT['HOST'],
660
								'TEXT_USERNAME' => $TEXT['USERNAME'],
661
								'TEXT_PASSWORD' => $TEXT['PASSWORD'],
662
								'TEXT_NAME' => $TEXT['NAME'],
663
								'TEXT_TABLE_PREFIX' => $TEXT['TABLE_PREFIX'],
664
								'TEXT_SAVE' => $TEXT['SAVE'],
665
								'TEXT_RESET' => $TEXT['RESET'],
666
								'TEXT_CHANGES' => $TEXT['CHANGES'],
667
								'TEXT_ENABLED' => $TEXT['ENABLED'],
668
								'TEXT_DISABLED' => $TEXT['DISABLED'],
669
								'TEXT_MANAGE_SECTIONS' => $HEADING['MANAGE_SECTIONS'],
670
								'TEXT_MANAGE' => $TEXT['MANAGE'],
671
								'TEXT_SEARCH' => $TEXT['SEARCH'],
672
								'TEXT_PUBLIC' => $TEXT['PUBLIC'],
673
								'TEXT_PRIVATE' => $TEXT['PRIVATE'],
674
								'TEXT_REGISTERED' => $TEXT['REGISTERED'],
675
								'TEXT_NONE' => $TEXT['NONE'],
676
								'TEXT_FILES' => strtoupper(substr($TEXT['FILES'], 0, 1)).substr($TEXT['FILES'], 1),
677
								'TEXT_DIRECTORIES' => $TEXT['DIRECTORIES'],
678
								'TEXT_FILESYSTEM_PERMISSIONS' => $TEXT['FILESYSTEM_PERMISSIONS'],
679
								'TEXT_USER' => $TEXT['USER'],
680
								'TEXT_GROUP' => $TEXT['GROUP'],
681
								'TEXT_OTHERS' => $TEXT['OTHERS'],
682
								'TEXT_READ' => $TEXT['READ'],
683
								'TEXT_WRITE' => $TEXT['WRITE'],
684
								'TEXT_EXECUTE' => $TEXT['EXECUTE'],
685
								'TEXT_SMART_LOGIN' => $TEXT['SMART_LOGIN'],
686
								'TEXT_MULTIPLE_MENUS' => $TEXT['MULTIPLE_MENUS'],
687
								'TEXT_HOMEPAGE_REDIRECTION' => $TEXT['HOMEPAGE_REDIRECTION'],
688
								'TEXT_SECTION_BLOCKS' => $TEXT['SECTION_BLOCKS'],
689
								'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT'],
690
								'TEXT_PAGE_TRASH' => $TEXT['PAGE_TRASH'],
691
								'TEXT_PAGE_LANGUAGES' => $TEXT['PAGE_LANGUAGES'],
692
								'TEXT_INLINE' => $TEXT['INLINE'],
693
								'TEXT_SEPARATE' => $TEXT['SEPARATE'],
694
								'TEXT_HOME_FOLDERS' => $TEXT['HOME_FOLDERS'],
695
								'TEXT_WYSIWYG_STYLE' => $TEXT['WYSIWYG_STYLE'],
696
								'TEXT_WORLD_WRITEABLE_FILE_PERMISSIONS' => $TEXT['WORLD_WRITEABLE_FILE_PERMISSIONS'],
697
								'TEXT_WBMAILER_DEFAULT_SETTINGS_NOTICE' => $TEXT['WBMAILER_DEFAULT_SETTINGS_NOTICE'],
698
								'TEXT_WBMAILER_DEFAULT_SENDER_MAIL' => $TEXT['WBMAILER_DEFAULT_SENDER_MAIL'],
699
								'TEXT_WBMAILER_DEFAULT_SENDER_NAME' => $TEXT['WBMAILER_DEFAULT_SENDER_NAME'],
700
								'TEXT_WBMAILER_NOTICE' => $TEXT['WBMAILER_NOTICE'],
701
								'TEXT_WBMAILER_FUNCTION' => $TEXT['WBMAILER_FUNCTION'],
702
								'TEXT_WBMAILER_SMTP_HOST' => $TEXT['WBMAILER_SMTP_HOST'],
703
								'TEXT_WBMAILER_PHP' => $TEXT['WBMAILER_PHP'],
704
								'TEXT_WBMAILER_SMTP' => $TEXT['WBMAILER_SMTP'],
705
								'TEXT_WBMAILER_SMTP_AUTH' => $TEXT['WBMAILER_SMTP_AUTH'],
706
								'TEXT_WBMAILER_SMTP_AUTH_NOTICE' => $TEXT['WBMAILER_SMTP_AUTH_NOTICE'],
707
								'TEXT_WBMAILER_SMTP_USERNAME' => $TEXT['WBMAILER_SMTP_USERNAME'],
708
								'TEXT_WBMAILER_SMTP_PASSWORD' => $TEXT['WBMAILER_SMTP_PASSWORD'],
709
								'MODE_SWITCH_WARNING' => $MESSAGE['SETTINGS']['MODE_SWITCH_WARNING'],
710
								'WORLD_WRITEABLE_WARNING' => $MESSAGE['SETTINGS']['WORLD_WRITEABLE_WARNING'],
711
								'TEXT_MODULE_ORDER' => $TEXT['MODULE_ORDER'],
712
								'TEXT_MAX_EXCERPT' => $TEXT['MAX_EXCERPT'],
713
								'TEXT_TIME_LIMIT' => $TEXT['TIME_LIMIT']
714
								));
715

  
716
if($is_advanced)
717
{
718
	$template->parse('show_page_level_limit', 'show_page_level_limit_block', true);
719
	$template->parse('show_checkbox_1',       'show_checkbox_1_block', true);
720
 	$template->parse('show_checkbox_2',       'show_checkbox_2_block', true);
721
	$template->parse('show_checkbox_3',       'show_checkbox_3_block', true);
722
	$template->parse('show_php_error_level',  'show_php_error_level_block', true);
723
	$template->parse('show_charset',          'show_charset_block', true);
724
	$template->parse('show_access',           'show_access_block', true);
725
	$template->parse('show_wysiwyg',          'show_wysiwyg_block', true);
726
	$template->parse('show_search',           'show_search_block', false);
727
	$template->parse('show_redirect_timer',   'show_redirect_timer_block', true);
728
}else {
729
	$template->set_block('show_page_level_limit', '');
730
	$template->set_block('show_checkbox_1', '');
731
	$template->set_block('show_checkbox_2', '');
732
	$template->set_block('show_checkbox_3', '');
733
	$template->set_block('show_php_error_level', '');
734
	$template->set_block('show_charset', '');
735
	$template->set_block('show_access', '');
736
	$template->set_block('show_wysiwyg', '');
737
	$template->set_block('show_search', '');
738
	$template->set_block('show_redirect_timer', '');
739
}
740

  
741
// Parse template objects output
742
$template->parse('main', 'main_block', false);
743
$template->pparse('output', 'page');
744

  
745
$admin->print_footer();
746

  
1
<?php
2
/**
3
 *
4
 * @category        admin
5
 * @package         settings
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9
 * @link			http://www.websitebaker2.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 5.2.2 and higher
13
 * @version         $Id$
14
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
16
 *
17
 */
18

  
19
require('../../config.php');
20
require_once(WB_PATH.'/framework/class.admin.php');
21

  
22
if(isset($_GET['advanced']) && $_GET['advanced'] == 'yes') {
23
	$admin = new admin('Settings', 'settings_advanced');
24
} else {
25
	$admin = new admin('Settings', 'settings_basic');
26
}
27

  
28
// Include the WB functions file
29
require_once(WB_PATH.'/framework/functions.php');
30
require_once(WB_PATH.'/framework/functions-utf8.php');
31

  
32
// Create new template object
33
$template = new Template(THEME_PATH.'/templates');
34
// $template->debug = true;
35

  
36
$template->set_file('page',        'settings.htt');
37
$template->set_block('page',       'main_block', 'main');
38
$template->set_var('FTAN', $admin->getFTAN());
39

  
40
$template->set_block('main_block', 'template_list_block',         'template_list');
41
$template->set_block('main_block', 'timezone_list_block',         'timezone_list');
42
$template->set_block('main_block', 'language_list_block',         'language_list');
43
$template->set_block('main_block', 'date_format_list_block',      'date_format_list');
44
$template->set_block('main_block', 'time_format_list_block',      'time_format_list');
45
$template->set_block('main_block', 'theme_list_block',            'theme_list');
46
$template->set_block('main_block', 'search_template_list_block',  'search_template_list');
47
$template->set_block('main_block', 'group_list_block',            'group_list');
48
$template->set_block('main_block', 'charset_list_block',          'charset_list');
49
$template->set_block('main_block', 'error_reporting_list_block',  'error_reporting_list');
50
$template->set_block('main_block', 'editor_list_block',           'editor_list');
51
$template->set_block('main_block', 'page_level_limit_list_block', 'page_level_limit_list');
52

  
53
$template->set_block('main_block', 'show_page_level_limit_block', 'show_page_level_limit');
54
$template->set_block('main_block', 'show_checkbox_1_block',       'show_checkbox_1');
55
$template->set_block('main_block', 'show_checkbox_2_block',       'show_checkbox_2');
56
$template->set_block('main_block', 'show_checkbox_3_block',       'show_checkbox_3');
57
$template->set_block('main_block', 'show_php_error_level_block',  'show_php_error_level');
58
$template->set_block('main_block', 'show_charset_block',          'show_charset');
59
$template->set_block('main_block', 'show_wysiwyg_block',          'show_wysiwyg');
60
$template->set_block('main_block', 'show_access_block',           'show_access');
61
$template->set_block('main_block', 'show_search_block',           'show_search');
62
$template->set_block('main_block', 'show_redirect_timer_block',   'show_redirect_timer');
63

  
64
// Query current settings in the db, then loop through them and print them
65
$query = "SELECT * FROM ".TABLE_PREFIX."settings";
66
$results = $database->query($query);
67
while($setting = $results->fetchRow())
68
{
69
	$setting_name = $setting['name'];
70
	$setting_value = ( $setting_name != 'wbmailer_smtp_password' ) ? htmlspecialchars($setting['value']) : $setting['value'];
71
	$template->set_var(strtoupper($setting_name),$setting_value);
72
}
73

  
74
// Do the same for settings stored in config file as with ones in db
75
$database_type = '';
76
$is_advanced = (isset($_GET['advanced']) && $_GET['advanced'] == 'yes');
77
// Tell the browser whether or not to show advanced options
78
if($is_advanced)
79
{
80
	$template->set_var('DISPLAY_ADVANCED', '');
81
	$template->set_var('ADVANCED_FILE_PERMS_ID', 'file_perms_box');
82
	$template->set_var('BASIC_FILE_PERMS_ID', 'hide');
83
	$template->set_var('ADVANCED', 'yes');
84
	$template->set_var('ADVANCED_BUTTON', '&lt;&lt; '.$TEXT['HIDE_ADVANCED']);
85
	$template->set_var('ADVANCED_LINK', 'index.php?advanced=no');
86

  
87
} else {
88
	$template->set_var('DISPLAY_ADVANCED', ' style="display: none;"');
89
	$template->set_var('BASIC_FILE_PERMS_ID', 'file_perms_box');
90
	$template->set_var('ADVANCED_FILE_PERMS_ID', 'hide');
91

  
92
	$template->set_var('ADVANCED', 'no');
93
	$template->set_var('ADVANCED_BUTTON', $TEXT['SHOW_ADVANCED'].' &gt;&gt;');
94
	$template->set_var('ADVANCED_LINK', 'index.php?advanced=yes');
95
}
96

  
97
	$query = "SELECT * FROM ".TABLE_PREFIX."search WHERE extra = ''";
98
	$results = $database->query($query);
99

  
100
	// Query current settings in the db, then loop through them and print them
101
	while($setting = $results->fetchRow())
102
	{
103
		$setting_name = $setting['name'];
104
		$setting_value = htmlspecialchars(($setting['value']));
105
		switch($setting_name) {
106
			// Search header
107
			case 'header':
108
				$template->set_var('SEARCH_HEADER', $setting_value);
109
			break;
110
			// Search results header
111
			case 'results_header':
112
				$template->set_var('SEARCH_RESULTS_HEADER', $setting_value);
113
			break;
114
			// Search results loop
115
			case 'results_loop':
116
				$template->set_var('SEARCH_RESULTS_LOOP', $setting_value);
117
			break;
118
			// Search results footer
119
			case 'results_footer':
120
				$template->set_var('SEARCH_RESULTS_FOOTER', $setting_value);
121
			break;
122
			// Search no results
123
			case 'no_results':
124
				$template->set_var('SEARCH_NO_RESULTS', $setting_value);
125
			break;
126
			// Search footer
127
			case 'footer':
128
				$template->set_var('SEARCH_FOOTER', $setting_value);
129
			break;
130
			// Search module-order
131
			case 'module_order':
132
				$template->set_var('SEARCH_MODULE_ORDER', $setting_value);
133
			break;
134
			// Search max lines of excerpt
135
			case 'max_excerpt':
136
				$template->set_var('SEARCH_MAX_EXCERPT', $setting_value);
137
			break;
138
			// time-limit
139
			case 'time_limit':
140
				$template->set_var('SEARCH_TIME_LIMIT', $setting_value);
141
			break;
142
			// Search template
143
			case 'template':
144
				$search_template = $setting_value;
145
			break;
146
		}
147
	}
148

  
149
	$template->set_var(array(
150
						'WB_PATH' => WB_PATH,
151
						'WB_URL' => WB_URL,
152
						'THEME_URL' => THEME_URL,
153
						'ADMIN_PATH' => ADMIN_PATH,
154
						'ADMIN_URL' => ADMIN_URL,
155
					 ));
156

  
157
	// Insert language values
158
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'language' ORDER BY name");
159
	if($result->numRows() > 0)
160
	{
161
		while($addon = $result->fetchRow()) {
162
			$l_codes[$addon['name']] = $addon['directory'];
163
			$l_names[$addon['name']] = entities_to_7bit($addon['name']); // sorting-problem workaround
164
		}
165
		asort($l_names);
166
		foreach($l_names as $l_name=>$v) {
167
			// Insert code and name
168
			$template->set_var(array(
169
									'CODE' => $l_codes[$l_name],
170
									'NAME' => $l_name,
171
									'FLAG' => THEME_URL.'/images/flags/'.strtolower($l_codes[$l_name]),
172
									));
173
			// Check if it is selected
174
			if(DEFAULT_LANGUAGE == $l_codes[$l_name]) {
175
				$template->set_var('SELECTED', ' selected="selected"');
176
			} else {
177
				$template->set_var('SELECTED', '');
178
			}
179
			$template->parse('language_list', 'language_list_block', true);
180
		}
181
	}
182

  
183
	// Insert default timezone values
184
	require(ADMIN_PATH.'/interface/timezones.php');
185
	foreach($TIMEZONES AS $hour_offset => $title)
186
	{
187
		// Make sure we dont list "System Default" as we are setting this value!
188
		if($hour_offset != '-20') {
189
			$template->set_var('VALUE', $hour_offset);
190
			$template->set_var('NAME', $title);
191
			if(DEFAULT_TIMEZONE == $hour_offset*60*60) {
192
				$template->set_var('SELECTED', ' selected="selected"');
193
			} else {
194
				$template->set_var('SELECTED', '');
195
			}
196
			$template->parse('timezone_list', 'timezone_list_block', true);
197
		}
198
	}
199

  
200
	// Insert default charset values
201
	require(ADMIN_PATH.'/interface/charsets.php');
202
	foreach($CHARSETS AS $code => $title) {
203
		$template->set_var('VALUE', $code);
204
		$template->set_var('NAME', $title);
205
		if(DEFAULT_CHARSET == $code) {
206
			$template->set_var('SELECTED', ' selected="selected"');
207
		} else {
208
			$template->set_var('SELECTED', '');
209
		}
210
		$template->parse('charset_list', 'charset_list_block', true);
211
	}
212

  
213

  
214
	// Insert date format list
215
	require(ADMIN_PATH.'/interface/date_formats.php');
216
	foreach($DATE_FORMATS AS $format => $title) {
217
		$format = str_replace('|', ' ', $format); // Add's white-spaces (not able to be stored in array key)
218
		if($format != 'system_default') {
219
			$template->set_var('VALUE', $format);
220
		} else {
221
			$template->set_var('VALUE', '');
222
		}
223
		$template->set_var('NAME', $title);
224
		if(DEFAULT_DATE_FORMAT == $format) {
225
			$template->set_var('SELECTED', ' selected="selected"');
226
		} else {
227
			$template->set_var('SELECTED', '');
228
		}
229
		$template->parse('date_format_list', 'date_format_list_block', true);
230
	}
231

  
232
	// Insert time format list
233
	require(ADMIN_PATH.'/interface/time_formats.php');
234
	foreach($TIME_FORMATS AS $format => $title) {
235
		$format = str_replace('|', ' ', $format); // Add's white-spaces (not able to be stored in array key)
236
		if($format != 'system_default') {
237
			$template->set_var('VALUE', $format);
238
		} else {
239
			$template->set_var('VALUE', '');
240
		}
241
		$template->set_var('NAME', $title);
242
		if(DEFAULT_TIME_FORMAT == $format) {
243
			$template->set_var('SELECTED', ' selected="selected"');
244
		} else {
245
			$template->set_var('SELECTED', '');
246
		}
247
		$template->parse('time_format_list', 'time_format_list_block', true);
248
	}
249

  
250
	// Insert templates
251
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND function != 'theme' ORDER BY name");
252
	if($result->numRows() > 0) {
253
		while($addon = $result->fetchRow()) {
254
			$template->set_var('FILE', $addon['directory']);
255
			$template->set_var('NAME', $addon['name']);
256
			if(($addon['directory'] == DEFAULT_TEMPLATE) ? $selected = ' selected="selected"' : $selected = '');
257
			$template->set_var('SELECTED', $selected);
258
			$template->parse('template_list', 'template_list_block', true);
259
		}
260
	}
261

  
262
	// Insert backend theme
263
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND function = 'theme' ORDER BY name");
264
	if($result->numRows() > 0) {
265
		while($addon = $result->fetchRow()) {
266
			$template->set_var('FILE', $addon['directory']);
267
			$template->set_var('NAME', $addon['name']);
268
			if(($addon['directory'] == DEFAULT_THEME) ? $selected = ' selected="selected"' : $selected = '');
269
			$template->set_var('SELECTED', $selected);
270
			$template->parse('theme_list', 'theme_list_block', true);
271
		}
272
	}
273

  
274
	// Insert WYSIWYG modules
275
	$file='none';
276
	$module_name=$TEXT['NONE'];
277
	$template->set_var('FILE', $file);
278
	$template->set_var('NAME', $module_name);
279
	$selected = (!defined('WYSIWYG_EDITOR') || $file == WYSIWYG_EDITOR) ? ' selected="selected"' : '';
280
	$template->set_var('SELECTED', $selected);
281
	$template->parse('editor_list', 'editor_list_block', true);
282
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'wysiwyg' ORDER BY name");
283
	if($result->numRows() > 0)
284
	{
285
		while($addon = $result->fetchRow())
286
	    {
287
			$template->set_var('FILE', $addon['directory']);
288
			$template->set_var('NAME', $addon['name']);
289
			$selected = (!defined('WYSIWYG_EDITOR') || $addon['directory'] == WYSIWYG_EDITOR) ? ' selected="selected"' : '';
290
			$template->set_var('SELECTED', $selected);
291
			$template->parse('editor_list', 'editor_list_block', true);
292
		}
293
	}
294

  
295
// Insert templates for search settings
296
	$search_template = ( ($search_template == DEFAULT_TEMPLATE) || ($search_template == '') ) ? DEFAULT_TEMPLATE : $search_template;
297
	$selected = ( ($search_template != DEFAULT_TEMPLATE) ) ?  ' selected="selected"' : $selected = '';
298

  
299
	$template->set_var(array(
300
	        'FILE' => '',
301
	        'NAME' => $TEXT['SYSTEM_DEFAULT'],
302
	        'SELECTED' => $selected
303
	    ));
304

  
305
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND function = 'template' ORDER BY name");
306
	if($result->numRows() > 0)
307
	{
308
		while($addon = $result->fetchRow())
309
	    {
310
			$template->set_var('FILE', $addon['directory']);
311
			$template->set_var('NAME', $addon['name']);
312
	        $selected = ($addon['directory'] == $search_template) ? ' selected="selected"' :  $selected = '';
313
			$template->set_var('SELECTED', $selected);
314
			$template->parse('search_template_list', 'search_template_list_block', true);
315

  
316
		}
317
	}
318

  
319
	// Insert default error reporting values
320
	require(ADMIN_PATH.'/interface/er_levels.php');
321
	foreach($ER_LEVELS AS $value => $title)
322
	{
323
		$template->set_var('VALUE', $value);
324
		$template->set_var('NAME', $title);
325
	    $selected = (ER_LEVEL == $value) ? ' selected="selected"' : '';
326
	    $template->set_var('SELECTED', $selected);
327
		$template->parse('error_reporting_list', 'error_reporting_list_block', true);
328
	}
329

  
330
	// Insert permissions values
331
	if($admin->get_permission('settings_advanced') != true)
332
	{
333
		$template->set_var('DISPLAY_ADVANCED_BUTTON', 'hide');
334
	}
335

  
336
	// Insert page level limits
337
	for($i = 1; $i <= 10; $i++)
338
	{
339
		$template->set_var('NUMBER', $i);
340
		if(PAGE_LEVEL_LIMIT == $i)
341
	    {
342
			$template->set_var('SELECTED', ' selected="selected"');
343
		} else {
344
			$template->set_var('SELECTED', '');
345
		}
346
		$template->parse('page_level_limit_list', 'page_level_limit_list_block', true);
347
	}
348

  
349
	// Work-out if multiple menus feature is enabled
350
	if(defined('MULTIPLE_MENUS') && MULTIPLE_MENUS == true)
351
	{
352
		$template->set_var('MULTIPLE_MENUS_ENABLED', ' checked="checked"');
353
	} else {
354
		$template->set_var('MULTIPLE_MENUS_DISABLED', ' checked="checked"');
355
	}
356

  
357
	// Work-out if page languages feature is enabled
358
	if(defined('PAGE_LANGUAGES') && PAGE_LANGUAGES == true)
359
	{
360
	        $template->set_var('PAGE_LANGUAGES_ENABLED', ' checked="checked"');
361
	} else {
362
	        $template->set_var('PAGE_LANGUAGES_DISABLED', ' checked="checked"');
363
	}
364

  
365
	// Work-out if smart login feature is enabled
366
	if(defined('SMART_LOGIN') && SMART_LOGIN == true)
367
	{
368
		$template->set_var('SMART_LOGIN_ENABLED', ' checked="checked"');
369
	} else {
370
		$template->set_var('SMART_LOGIN_DISABLED', ' checked="checked"');
371
	}
372

  
373
	/* Make's sure GD library is installed */
374
	if(extension_loaded('gd') && function_exists('imageCreateFromJpeg'))
375
	{
376
		$template->set_var('GD_EXTENSION_ENABLED', '');
377
	} else {
378
		$template->set_var('GD_EXTENSION_ENABLED', ' style="display: none;"');
379
	}
380

  
381
	// Work-out if section blocks feature is enabled
382
	if(defined('SECTION_BLOCKS') && SECTION_BLOCKS == true)
383
	{
384
		$template->set_var('SECTION_BLOCKS_ENABLED', ' checked="checked"');
385
	} else {
386
		$template->set_var('SECTION_BLOCKS_DISABLED', ' checked="checked"');
387
	}
388

  
389
	// Work-out if homepage redirection feature is enabled
390
	if(defined('HOMEPAGE_REDIRECTION') && HOMEPAGE_REDIRECTION == true)
391
	{
392
		$template->set_var('HOMEPAGE_REDIRECTION_ENABLED', ' checked="checked"');
393
	} else {
394
		$template->set_var('HOMEPAGE_REDIRECTION_DISABLED', ' checked="checked"');
395
	}
396

  
397
	// Work-out which server os should be checked
398
	if(OPERATING_SYSTEM == 'linux')
399
	{
400
		$template->set_var('LINUX_SELECTED', ' checked="checked"');
401
	} elseif(OPERATING_SYSTEM == 'windows') {
402
		$template->set_var('WINDOWS_SELECTED', ' checked="checked"');
403
	}
404

  
405
	// Work-out if manage sections feature is enabled
406
	if(MANAGE_SECTIONS)
407
	{
408
		$template->set_var('MANAGE_SECTIONS_ENABLED', ' checked="checked"');
409
	} else {
410
		$template->set_var('MANAGE_SECTIONS_DISABLED', ' checked="checked"');
411
	}
412

  
413
	// Work-out which wbmailer routine should be checked
414
	if(WBMAILER_ROUTINE == 'phpmail')
415
	{
416
		$template->set_var('PHPMAIL_SELECTED', ' checked="checked"');
417
		$template->set_var('SMTP_VISIBILITY', ' style="display: none;"');
418
		$template->set_var('SMTP_VISIBILITY_AUTH', ' style="display: none;"');
419
	} elseif(WBMAILER_ROUTINE == 'smtp')
420
	{
421
		$template->set_var('SMTPMAIL_SELECTED', ' checked="checked"');
422
		$template->set_var('SMTP_VISIBILITY', '');
423
	}
424

  
425
	// Work-out if SMTP authentification should be checked
426
	if(WBMAILER_SMTP_AUTH)
427
	{
428
		$template->set_var('SMTP_AUTH_SELECTED', ' checked="checked"');
429
		if(WBMAILER_ROUTINE == 'smtp')
430
	    {
431
			$template->set_var('SMTP_VISIBILITY_AUTH', '');
432

  
433
		} else {
434
			$template->set_var('SMTP_VISIBILITY_AUTH', ' style="display: none;"');
435
		}
436
	} else {
437
		$template->set_var('SMTP_VISIBILITY_AUTH', ' style="display: none;"');
438
	}
439

  
440
	// Work-out if intro feature is enabled
441
	if(INTRO_PAGE)
442
	{
443
		$template->set_var('INTRO_PAGE_ENABLED', ' checked="checked"');
444
	} else {
445
		$template->set_var('INTRO_PAGE_DISABLED', ' checked="checked"');
446
	}
447

  
448
	// Work-out if frontend login feature is enabled
449
	if(FRONTEND_LOGIN)
450
	{
451
		$template->set_var('PRIVATE_ENABLED', ' checked="checked"');
452
	} else {
453
		$template->set_var('PRIVATE_DISABLED', ' checked="checked"');
454
	}
455

  
456
	// Work-out if page trash feature is disabled, in-line, or separate
457
	if(PAGE_TRASH == 'disabled')
458
	{
459
		$template->set_var('PAGE_TRASH_DISABLED', ' checked="checked"');
460
		$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', 'display: none;');
461
	} elseif(PAGE_TRASH == 'inline')
462
	{
463
		$template->set_var('PAGE_TRASH_INLINE', ' checked="checked"');
464
		$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', 'display: none;');
465
	} elseif(PAGE_TRASH == 'separate')
466
	{
467
		$template->set_var('PAGE_TRASH_SEPARATE', ' checked="checked"');
468
		$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', 'display: inline;');
469
	}
470

  
471
	// Work-out if media home folde feature is enabled
472
	if(HOME_FOLDERS)
473
	{
474
		$template->set_var('HOME_FOLDERS_ENABLED', ' checked="checked"');
475
	} else {
476
		$template->set_var('HOME_FOLDERS_DISABLED', ' checked="checked"');
477
	}
478

  
479
	// Insert search select
480
	if(SEARCH == 'private')
481
	{
482
		$template->set_var('PRIVATE_SEARCH', ' selected="selected"');
483
	} elseif(SEARCH == 'registered') {
484
		$template->set_var('REGISTERED_SEARCH', ' selected="selected"');
485
	} elseif(SEARCH == 'none') {
486
		$template->set_var('NONE_SEARCH', ' selected="selected"');
487
	}
488

  
489
	// Work-out if 777 permissions are set
490
	if(STRING_FILE_MODE == '0777' AND STRING_DIR_MODE == '0777')
491
	{
492
		$template->set_var('WORLD_WRITEABLE_SELECTED', ' checked="checked"');
493
	}
494

  
495
	// Work-out which file mode boxes are checked
496
	if(extract_permission(STRING_FILE_MODE, 'u', 'r'))
497
	{
498
		$template->set_var('FILE_U_R_CHECKED', ' checked="checked"');
499
	}
500
	if(extract_permission(STRING_FILE_MODE, 'u', 'w'))
501
	{
502
		$template->set_var('FILE_U_W_CHECKED', ' checked="checked"');
503
	}
504
	if(extract_permission(STRING_FILE_MODE, 'u', 'e'))
505
	{
506
		$template->set_var('FILE_U_E_CHECKED', ' checked="checked"');
507
	}
508
	if(extract_permission(STRING_FILE_MODE, 'g', 'r'))
509
	{
510
		$template->set_var('FILE_G_R_CHECKED', ' checked="checked"');
511
	}
512
	if(extract_permission(STRING_FILE_MODE, 'g', 'w'))
513
	{
514
		$template->set_var('FILE_G_W_CHECKED', ' checked="checked"');
515
	}
516
	if(extract_permission(STRING_FILE_MODE, 'g', 'e'))
517
	{
518
		$template->set_var('FILE_G_E_CHECKED', ' checked="checked"');
519
	}
520
	if(extract_permission(STRING_FILE_MODE, 'o', 'r'))
521
	{
522
		$template->set_var('FILE_O_R_CHECKED', ' checked="checked"');
523
	}
524
	if(extract_permission(STRING_FILE_MODE, 'o', 'w'))
525
	{
526
		$template->set_var('FILE_O_W_CHECKED', ' checked="checked"');
527
	}
528
	if(extract_permission(STRING_FILE_MODE, 'o', 'e'))
529
	{
530
		$template->set_var('FILE_O_E_CHECKED', ' checked="checked"');
531
	}
532
	// Work-out which dir mode boxes are checked
533
	if(extract_permission(STRING_DIR_MODE, 'u', 'r'))
534
	{
535
		$template->set_var('DIR_U_R_CHECKED', ' checked="checked"');
536
	}
537
	if(extract_permission(STRING_DIR_MODE, 'u', 'w'))
538
	{
539
		$template->set_var('DIR_U_W_CHECKED', ' checked="checked"');
540
	}
541
	if(extract_permission(STRING_DIR_MODE, 'u', 'e'))
542
	{
543
		$template->set_var('DIR_U_E_CHECKED', ' checked="checked"');
544
	}
545
	if(extract_permission(STRING_DIR_MODE, 'g', 'r'))
546
	{
547
		$template->set_var('DIR_G_R_CHECKED', ' checked="checked"');
548
	}
549
	if(extract_permission(STRING_DIR_MODE, 'g', 'w'))
550
	{
551
		$template->set_var('DIR_G_W_CHECKED', ' checked="checked"');
552
	}
553
	if(extract_permission(STRING_DIR_MODE, 'g', 'e'))
554
	{
555
		$template->set_var('DIR_G_E_CHECKED', ' checked="checked"');
556
	}
557
	if(extract_permission(STRING_DIR_MODE, 'o', 'r'))
558
	{
559
		$template->set_var('DIR_O_R_CHECKED', ' checked="checked"');
560
	}
561
	if(extract_permission(STRING_DIR_MODE, 'o', 'w'))
562
	{
563
		$template->set_var('DIR_O_W_CHECKED', ' checked="checked"');
564
	}
565
	if(extract_permission(STRING_DIR_MODE, 'o', 'e'))
566
	{
567
		$template->set_var('DIR_O_E_CHECKED', ' checked="checked"');
568
	}
569

  
570
	$template->set_var(array(
571
						'PAGES_DIRECTORY' => PAGES_DIRECTORY,
572
						'MEDIA_DIRECTORY' => MEDIA_DIRECTORY,
573
						'PAGE_EXTENSION' => PAGE_EXTENSION,
574
						'PAGE_SPACER' => PAGE_SPACER,
575
						'TABLE_PREFIX' => TABLE_PREFIX
576
					 ));
577

  
578
	// Insert Server Email value into template
579
	$template->set_var('SERVER_EMAIL', SERVER_EMAIL);
580

  
581
	// Insert groups into signup list
582
	$results = $database->query("SELECT group_id, name FROM ".TABLE_PREFIX."groups WHERE group_id != '1'");
583
	if($results->numRows() > 0)
584
	{
585
		while($group = $results->fetchRow())
586
	    {
587
			$template->set_var('ID', $group['group_id']);
588
			$template->set_var('NAME', $group['name']);
589
			if(FRONTEND_SIGNUP == $group['group_id'])
590
	        {
591
				$template->set_var('SELECTED', ' selected="selected"');
592
			} else {
593
				$template->set_var('SELECTED', '');
594
			}
595
			$template->parse('group_list', 'group_list_block', true);
596
		}
597
	} else {
598
		$template->set_var('ID', 'disabled');
599
		$template->set_var('NAME', $MESSAGE['GROUPS']['NO_GROUPS_FOUND']);
600
		$template->parse('group_list', 'group_list_block', true);
601
	}
602

  
603
	// Insert language headings
604
	$template->set_var(array(
605
								'HEADING_GENERAL_SETTINGS' => $HEADING['GENERAL_SETTINGS'],
606
								'HEADING_DEFAULT_SETTINGS' => $HEADING['DEFAULT_SETTINGS'],
607
								'HEADING_SEARCH_SETTINGS' => $HEADING['SEARCH_SETTINGS'],
608
								'HEADING_SERVER_SETTINGS' => $HEADING['SERVER_SETTINGS'],
609
								'HEADING_WBMAILER_SETTINGS' => $HEADING['WBMAILER_SETTINGS'],
610
								'HEADING_ADMINISTRATION_TOOLS' => $HEADING['ADMINISTRATION_TOOLS']
611
								)
612
						);
613
	// Insert language text and messages
614
	$template->set_var(array(
615
								'TEXT_WEBSITE_TITLE' => $TEXT['WEBSITE_TITLE'],
616
								'TEXT_WEBSITE_DESCRIPTION' => $TEXT['WEBSITE_DESCRIPTION'],
617
								'TEXT_WEBSITE_KEYWORDS' => $TEXT['WEBSITE_KEYWORDS'],
618
								'TEXT_WEBSITE_HEADER' => $TEXT['WEBSITE_HEADER'],
619
								'TEXT_WEBSITE_FOOTER' => $TEXT['WEBSITE_FOOTER'],
620
								'TEXT_HEADER' => $TEXT['HEADER'],
621
								'TEXT_FOOTER' => $TEXT['FOOTER'],
622
								'TEXT_VISIBILITY' => $TEXT['VISIBILITY'],
623
								'TEXT_RESULTS_HEADER' => $TEXT['RESULTS_HEADER'],
624
								'TEXT_RESULTS_LOOP' => $TEXT['RESULTS_LOOP'],
625
								'TEXT_RESULTS_FOOTER' => $TEXT['RESULTS_FOOTER'],
626
								'TEXT_NO_RESULTS' => $TEXT['NO_RESULTS'],
627
								'TEXT_TEXT' => $TEXT['TEXT'],
628
								'TEXT_DEFAULT' => $TEXT['DEFAULT'],
629
								'TEXT_LANGUAGE' => $TEXT['LANGUAGE'],
630
								'TEXT_TIMEZONE' => $TEXT['TIMEZONE'],
631
								'TEXT_CHARSET' => $TEXT['CHARSET'],
632
								'TEXT_DATE_FORMAT' => $TEXT['DATE_FORMAT'],
633
								'TEXT_TIME_FORMAT' => $TEXT['TIME_FORMAT'],
634
								'TEXT_TEMPLATE' => $TEXT['TEMPLATE'],
635
								'TEXT_THEME' => $TEXT['THEME'],
636
								'TEXT_WYSIWYG_EDITOR' => $TEXT['WYSIWYG_EDITOR'],
637
								'TEXT_PAGE_LEVEL_LIMIT' => $TEXT['PAGE_LEVEL_LIMIT'],
638
								'TEXT_INTRO_PAGE' => $TEXT['INTRO_PAGE'],
639
								'TEXT_FRONTEND' => $TEXT['FRONTEND'],
640
								'TEXT_LOGIN' => $TEXT['LOGIN'],
641
								'TEXT_REDIRECT_AFTER' => $TEXT['REDIRECT_AFTER'],
642
								'TEXT_SIGNUP' => $TEXT['SIGNUP'],
643
								'TEXT_PHP_ERROR_LEVEL' => $TEXT['PHP_ERROR_LEVEL'],
644
								'TEXT_PAGES_DIRECTORY' => $TEXT['PAGES_DIRECTORY'],
645
								'TEXT_MEDIA_DIRECTORY' => $TEXT['MEDIA_DIRECTORY'],
646
								'TEXT_PAGE_EXTENSION' => $TEXT['PAGE_EXTENSION'],
647
								'TEXT_PAGE_SPACER' => $TEXT['PAGE_SPACER'],
648
								'TEXT_RENAME_FILES_ON_UPLOAD' => $TEXT['RENAME_FILES_ON_UPLOAD'],
649
								'TEXT_APP_NAME' => $TEXT['APP_NAME'],
650
								'TEXT_SESSION_IDENTIFIER' => $TEXT['SESSION_IDENTIFIER'],
651
								'TEXT_SEC_ANCHOR' => $TEXT['SEC_ANCHOR'],
652
								'TEXT_SERVER_OPERATING_SYSTEM' => $TEXT['SERVER_OPERATING_SYSTEM'],
653
								'TEXT_LINUX_UNIX_BASED' => $TEXT['LINUX_UNIX_BASED'],
654
								'TEXT_WINDOWS' => $TEXT['WINDOWS'],
655
								'TEXT_ADMIN' => $TEXT['ADMIN'],
656
								'TEXT_TYPE' => $TEXT['TYPE'],
657
								'TEXT_DATABASE' => $TEXT['DATABASE'],
658
								'TEXT_HOST' => $TEXT['HOST'],
659
								'TEXT_USERNAME' => $TEXT['USERNAME'],
660
								'TEXT_PASSWORD' => $TEXT['PASSWORD'],
661
								'TEXT_NAME' => $TEXT['NAME'],
662
								'TEXT_TABLE_PREFIX' => $TEXT['TABLE_PREFIX'],
663
								'TEXT_SAVE' => $TEXT['SAVE'],
664
								'TEXT_RESET' => $TEXT['RESET'],
665
								'TEXT_CHANGES' => $TEXT['CHANGES'],
666
								'TEXT_ENABLED' => $TEXT['ENABLED'],
667
								'TEXT_DISABLED' => $TEXT['DISABLED'],
668
								'TEXT_MANAGE_SECTIONS' => $HEADING['MANAGE_SECTIONS'],
669
								'TEXT_MANAGE' => $TEXT['MANAGE'],
670
								'TEXT_SEARCH' => $TEXT['SEARCH'],
671
								'TEXT_PUBLIC' => $TEXT['PUBLIC'],
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff