Project

General

Profile

1 45 stefan
<?php
2
3
// $Id$
4
5
/*
6
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2005, Ryan Djurovich
9
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
24
*/
25
26
require('../../config.php');
27
require_once(WB_PATH.'/framework/class.admin.php');
28
if(isset($_GET['advanced']) AND $_GET['advanced'] == 'yes') {
29
	$admin = new admin('Settings', 'settings_advanced');
30
} else {
31
	$admin = new admin('Settings', 'settings_basic');
32
}
33
34
// Include the WB functions file
35
require_once(WB_PATH.'/framework/functions.php');
36
37
// Create new template object
38
$template = new Template(ADMIN_PATH.'/settings');
39
$template->set_file('page', 'template.html');
40
$template->set_block('page', 'main_block', 'main');
41
42
// Query current settings in the db, then loop through them and print them
43
$query = "SELECT * FROM ".TABLE_PREFIX."settings";
44
$results = $database->query($query);
45
while($setting = $results->fetchRow()) {
46
	$setting_name = $setting['name'];
47 95 stefan
	$setting_value = htmlspecialchars($setting['value']);
48
	/*if ($setting_value=='false')
49
		$setting_value=false;
50
	if ($setting_value=='true')
51
		$setting_value=true;*/
52
	echo strtoupper($setting_name).'-'.$setting_value.'-'.($setting_value=="false").'<br />';
53
	$template->set_var(strtoupper($setting_name),$setting_value);
54 45 stefan
}
55
56
// Query current settings in the db, then loop through them and print them
57
$query = "SELECT * FROM ".TABLE_PREFIX."search WHERE extra = ''";
58
$results = $database->query($query);
59
while($setting = $results->fetchRow()) {
60
	$setting_name = $setting['name'];
61
	$setting_value = htmlspecialchars($admin->strip_slashes_dummy($setting['value']));
62
	switch($setting_name) {
63
		// Search header
64
		case 'header':
65
			$template->set_var('SEARCH_HEADER', $setting_value);
66
		break;
67
		// Search results header
68
		case 'results_header':
69
			$template->set_var('SEARCH_RESULTS_HEADER', $setting_value);
70
		break;
71
		// Search results loop
72
		case 'results_loop':
73
			$template->set_var('SEARCH_RESULTS_LOOP', $setting_value);
74
		break;
75
		// Search results footer
76
		case 'results_footer':
77
			$template->set_var('SEARCH_RESULTS_FOOTER', $setting_value);
78
		break;
79
		// Search no results
80
		case 'no_results':
81
			$template->set_var('SEARCH_NO_RESULTS', $setting_value);
82
		break;
83
		// Search footer
84
		case 'footer':
85
			$template->set_var('SEARCH_FOOTER', $setting_value);
86
		break;
87
		// Search template
88
		case 'template':
89
			$search_template = $setting_value;
90
		break;
91
	}
92
}
93
94
// Do the same for settings stored in config file as with ones in db
95
$database_type = '';
96
97
// Tell the browser whether or not to show advanced options
98
if(isset($_GET['advanced']) AND $_GET['advanced'] == 'yes') {
99
	$template->set_var('DISPLAY_ADVANCED', '');
100
	$template->set_var('ADVANCED', 'yes');
101
	$template->set_var('ADVANCED_BUTTON', '<< '.$TEXT['HIDE_ADVANCED']);
102
	$template->set_var('ADVANCED_LINK', 'index.php?advanced=no');
103
	$template->set_var('BASIC_FILE_PERMS_ID', 'hide');
104
	$template->set_var('ADVANCED_FILE_PERMS_ID', 'file_perms_box');
105
} else {
106
	$template->set_var('DISPLAY_ADVANCED', 'none');
107
	$template->set_var('ADVANCED', 'no');
108
	$template->set_var('ADVANCED_BUTTON', $TEXT['SHOW_ADVANCED'].' >>');
109
	$template->set_var('ADVANCED_LINK', 'index.php?advanced=yes');
110
	$template->set_var('BASIC_FILE_PERMS_ID', 'file_perms_box');
111
	$template->set_var('ADVANCED_FILE_PERMS_ID', 'hide');
112
}
113
114
$template->set_var(array(
115
									'PAGE_EXTENSION' => PAGE_EXTENSION,
116
									'PAGE_SPACER' => PAGE_SPACER,
117
									'WB_PATH' => WB_PATH,
118
									'WB_URL' => WB_URL,
119
									'ADMIN_PATH' => ADMIN_PATH,
120
									'ADMIN_URL' => ADMIN_URL,
121
									'DATABASE_TYPE' => DB_TYPE,
122
									'DATABASE_HOST' => DB_HOST,
123
									'DATABASE_USERNAME' => DB_USERNAME,
124
									'DATABASE_NAME' => DB_NAME,
125
									'TABLE_PREFIX' => TABLE_PREFIX
126
								 )
127
						 );
128
129
// Insert groups into signup list
130
$template->set_block('main_block', 'group_list_block', 'group_list');
131
$results = $database->query("SELECT group_id, name FROM ".TABLE_PREFIX."groups WHERE group_id != '1'");
132
if($results->numRows() > 0) {
133
	while($group = $results->fetchRow()) {
134
		$template->set_var('ID', $group['group_id']);
135
		$template->set_var('NAME', $group['name']);
136
		if(FRONTEND_SIGNUP == $group['group_id']) {
137
			$template->set_var('SELECTED', 'selected');
138
		} else {
139
			$template->set_var('SELECTED', '');
140
		}
141
		$template->parse('group_list', 'group_list_block', true);
142
	}
143
} else {
144
	$template->set_var('ID', 'disabled');
145
	$template->set_var('NAME', $MESSAGE['GROUPS']['NO_GROUPS_FOUND']);
146
	$template->parse('group_list', 'group_list_block', true);
147
}
148
149
// Insert language values
150
$template->set_block('main_block', 'language_list_block', 'language_list');
151
if($handle = opendir(WB_PATH.'/languages/')) {
152
   while (false !== ($file = readdir($handle))) {
153
		if($file != '.' AND $file != '..' AND !is_dir($file) AND $file != 'index.php') {
154
			// Get language name
155
			require(WB_PATH.'/languages/'.$file);
156
			// Insert code and name
157
			$template->set_var(array(
158
											'CODE' => $language_code,
159
											'NAME' => $language_name
160
											)
161
									);
162
			// Check if it is selected
163
			if(DEFAULT_LANGUAGE == $language_code) {
164
				$template->set_var('SELECTED', ' selected');
165
			} else {
166
				$template->set_var('SELECTED', '');
167
			}
168
			$template->parse('language_list', 'language_list_block', true);
169
		}
170
	}
171
	// Restore language to original file
172
	require(WB_PATH.'/languages/'.LANGUAGE.'.php');
173
}
174
175
// Insert default timezone values
176
require(ADMIN_PATH.'/interface/timezones.php');
177
$template->set_block('main_block', 'timezone_list_block', 'timezone_list');
178
foreach($TIMEZONES AS $hour_offset => $title) {
179
	// Make sure we dont list "System Default" as we are setting this value!
180
	if($hour_offset != '-20') {
181
		$template->set_var('VALUE', $hour_offset);
182
		$template->set_var('NAME', $title);
183
		if(DEFAULT_TIMEZONE == $hour_offset*60*60) {
184
			$template->set_var('SELECTED', 'selected');
185
		} else {
186
			$template->set_var('SELECTED', '');
187
		}
188
		$template->parse('timezone_list', 'timezone_list_block', true);
189
	}
190
}
191
192
// Insert date format list
193
require(ADMIN_PATH.'/interface/date_formats.php');
194
$template->set_block('main_block', 'date_format_list_block', 'date_format_list');
195
foreach($DATE_FORMATS AS $format => $title) {
196
	$format = str_replace('|', ' ', $format); // Add's white-spaces (not able to be stored in array key)
197
	if($format != 'system_default') {
198
		$template->set_var('VALUE', $format);
199
	} else {
200
		$template->set_var('VALUE', '');
201
	}
202
	$template->set_var('NAME', $title);
203
	if(DEFAULT_DATE_FORMAT == $format) {
204
		$template->set_var('SELECTED', 'selected');
205
	} else {
206
		$template->set_var('SELECTED', '');
207
	}
208
	$template->parse('date_format_list', 'date_format_list_block', true);
209
}
210
211
// Insert time format list
212
require(ADMIN_PATH.'/interface/time_formats.php');
213
$template->set_block('main_block', 'time_format_list_block', 'time_format_list');
214
foreach($TIME_FORMATS AS $format => $title) {
215
	$format = str_replace('|', ' ', $format); // Add's white-spaces (not able to be stored in array key)
216
	if($format != 'system_default') {
217
		$template->set_var('VALUE', $format);
218
	} else {
219
		$template->set_var('VALUE', '');
220
	}
221
	$template->set_var('NAME', $title);
222
	if(DEFAULT_TIME_FORMAT == $format) {
223
		$template->set_var('SELECTED', 'selected');
224
	} else {
225
		$template->set_var('SELECTED', '');
226
	}
227
	$template->parse('time_format_list', 'time_format_list_block', true);
228
}
229
230
// Insert templates
231
$template->set_block('main_block', 'template_list_block', 'template_list');
232
if($handle = opendir(WB_PATH.'/templates/')) {
233
	while (false !== ($file = readdir($handle))) {
234
		if($file != "." AND $file != ".." AND $file != ".svn" AND is_dir(WB_PATH."/templates/$file") AND file_exists(WB_PATH."/templates/$file/info.php")) {
235
			include(WB_PATH."/templates/$file/info.php");
236
			$template->set_var('FILE', $file);
237
			$template->set_var('NAME', $template_name);
238
			if($file == DEFAULT_TEMPLATE ? $selected = ' selected' : $selected = '');
239
			$template->set_var('SELECTED', $selected);
240
			$template->parse('template_list', 'template_list_block', true);
241
		}
242
	}
243
}
244
245
// Insert templates
246
$template->set_block('main_block', 'editor_list_block', 'editor_list');
247 69 stefan
$file='none';
248
$module_name='None';
249 45 stefan
$template->set_var('FILE', $file);
250
$template->set_var('NAME', $module_name);
251
if((!defined('WYSIWYG_EDITOR') OR $file == WYSIWYG_EDITOR) ? $selected = ' selected' : $selected = '');
252
$template->set_var('SELECTED', $selected);
253
$template->parse('editor_list', 'editor_list_block', true);
254
if($handle = opendir(WB_PATH.'/modules/')) {
255
	while (false !== ($file = readdir($handle))) {
256 69 stefan
		if($file != "." AND $file != ".." AND $file != ".svn" AND is_dir(WB_PATH."/modules/$file") AND file_exists(WB_PATH."/modules/$file/info.php")) {
257 45 stefan
			include(WB_PATH."/modules/$file/info.php");
258
			if ($module_type == 'WYSIWYG') {
259
				$template->set_var('FILE', $file);
260
				$template->set_var('NAME', $module_name);
261
				if((defined('WYSIWYG_EDITOR') AND $file == WYSIWYG_EDITOR) ? $selected = ' selected' : $selected = '');
262
				$template->set_var('SELECTED', $selected);
263
				$template->parse('editor_list', 'editor_list_block', true);
264
			}
265
		}
266
	}
267
}
268
269
270
// Insert templates for search settings
271
$template->set_block('main_block', 'search_template_list_block', 'search_template_list');
272
if($search_template == '') { $selected = ' selected'; } else { $selected = ''; }
273
$template->set_var(array('FILE' => '', 'NAME' => $TEXT['SYSTEM_DEFAULT'], 'SELECTED' => $selected));
274
$template->parse('search_template_list', 'search_template_list_block', true);
275
if($handle = opendir(WB_PATH.'/templates/')) {
276
	while (false !== ($file = readdir($handle))) {
277
		if($file != "." AND $file != ".." AND $file != ".svn" AND is_dir(WB_PATH."/templates/$file") AND file_exists(WB_PATH."/templates/$file/info.php")) {
278
			include(WB_PATH."/templates/$file/info.php");
279
			$template->set_var('FILE', $file);
280
			$template->set_var('NAME', $template_name);
281
			if($file == $search_template ? $selected = ' selected' : $selected = '');
282
			$template->set_var('SELECTED', $selected);
283
			$template->parse('search_template_list', 'search_template_list_block', true);
284
		}
285
	}
286
}
287
288
// Insert default error reporting values
289
require(ADMIN_PATH.'/interface/er_levels.php');
290
$template->set_block('main_block', 'error_reporting_list_block', 'error_reporting_list');
291
foreach($ER_LEVELS AS $value => $title) {
292
	$template->set_var('VALUE', $value);
293
	$template->set_var('NAME', $title);
294
	if(ER_LEVEL == $value) {
295
		$template->set_var('SELECTED', 'selected');
296
	} else {
297
		$template->set_var('SELECTED', '');
298
	}
299
	$template->parse('error_reporting_list', 'error_reporting_list_block', true);
300
}
301
302
// Insert permissions values
303
if($admin->get_permission('settings_advanced') != true) {
304
	$template->set_var('DISPLAY_ADVANCED_BUTTON', 'hide');
305
}
306
307
// Insert page level limits
308
$template->set_block('main_block', 'page_level_limit_list_block', 'page_level_limit_list');
309
for($i = 1; $i <= 10; $i++) {
310
	$template->set_var('NUMBER', $i);
311
	if(PAGE_LEVEL_LIMIT == $i) {
312
		$template->set_var('SELECTED', 'selected');
313
	} else {
314
		$template->set_var('SELECTED', '');
315
	}
316
	$template->parse('page_level_limit_list', 'page_level_limit_list_block', true);
317
}
318
319
// Work-out if multiple menus feature is enabled
320
if(defined('MULTIPLE_MENUS') AND MULTIPLE_MENUS == true) {
321
	$template->set_var('MULTIPLE_MENUS_ENABLED', ' checked');
322
} else {
323
	$template->set_var('MULTIPLE_MENUS_DISABLED', ' checked');
324
}
325
326
// Work-out if page languages feature is enabled
327
if(defined('PAGE_LANGUAGES') AND PAGE_LANGUAGES == true) {
328
	$template->set_var('PAGE_LANGUAGES_ENABLED', ' checked');
329
} else {
330
	$template->set_var('PAGE_LANGUAGES_DISABLED', ' checked');
331
}
332
333
// Work-out if smart login feature is enabled
334
if(defined('SMART_LOGIN') AND SMART_LOGIN == true) {
335
	$template->set_var('SMART_LOGIN_ENABLED', ' checked');
336
} else {
337
	$template->set_var('SMART_LOGIN_DISABLED', ' checked');
338
}
339
340
// Work-out if section blocks feature is enabled
341
if(defined('SECTION_BLOCKS') AND SECTION_BLOCKS == true) {
342
	$template->set_var('SECTION_BLOCKS_ENABLED', ' checked');
343
} else {
344
	$template->set_var('SECTION_BLOCKS_DISABLED', ' checked');
345
}
346
347
// Work-out if homepage redirection feature is enabled
348
if(defined('HOMEPAGE_REDIRECTION') AND HOMEPAGE_REDIRECTION == true) {
349
	$template->set_var('HOMEPAGE_REDIRECTION_ENABLED', ' checked');
350
} else {
351
	$template->set_var('HOMEPAGE_REDIRECTION_DISABLED', ' checked');
352
}
353
354
// Work-out which server os should be checked
355
if(OPERATING_SYSTEM == 'linux') {
356
	$template->set_var('LINUX_SELECTED', ' checked');
357
} elseif(OPERATING_SYSTEM == 'windows') {
358
	$template->set_var('WINDOWS_SELECTED', ' checked');
359
}
360
361
// Work-out if manage sections feature is enabled
362
if(MANAGE_SECTIONS) {
363
	$template->set_var('MANAGE_SECTIONS_ENABLED', ' checked');
364
} else {
365
	$template->set_var('MANAGE_SECTIONS_DISABLED', ' checked');
366
}
367
368
// Work-out if intro feature is enabled
369
if(INTRO_PAGE) {
370
	$template->set_var('INTRO_PAGE_ENABLED', ' checked');
371
} else {
372
	$template->set_var('INTRO_PAGE_DISABLED', ' checked');
373
}
374
375
// Work-out if frontend login feature is enabled
376
if(FRONTEND_LOGIN) {
377
	$template->set_var('PRIVATE_ENABLED', ' checked');
378
} else {
379
	$template->set_var('PRIVATE_DISABLED', ' checked');
380
}
381
382
// Work-out if page trash feature is disabled, in-line, or separate
383
if(PAGE_TRASH == 'disabled') {
384
	$template->set_var('PAGE_TRASH_DISABLED', ' checked');
385
} elseif(PAGE_TRASH == 'inline') {
386
	$template->set_var('PAGE_TRASH_INLINE', ' checked');
387
} elseif(PAGE_TRASH == 'separate') {
388
	$template->set_var('PAGE_TRASH_SEPARATE', ' checked');
389
}
390
391
// Work-out if media home folde feature is enabled
392
if(HOME_FOLDERS) {
393
	$template->set_var('HOME_FOLDERS_ENABLED', ' checked');
394
} else {
395
	$template->set_var('HOME_FOLDERS_DISABLED', ' checked');
396
}
397
398
// Insert search select
399
if(SEARCH == 'private') {
400
	$template->set_var('PRIVATE_SEARCH', 'selected');
401
} elseif(SEARCH == 'registered') {
402
	$template->set_var('REGISTERED_SEARCH', 'selected');
403
} elseif(SEARCH == 'none') {
404
	$template->set_var('NONE_SEARCH', 'selected');
405
}
406
407
// Work-out if 777 permissions are set
408
if(STRING_FILE_MODE == '0777' AND STRING_DIR_MODE == '0777') {
409
	$template->set_var('WORLD_WRITEABLE_SELECTED', ' checked');
410
}
411
412
// Work-out which file mode boxes are checked
413
if(extract_permission(STRING_FILE_MODE, 'u', 'r')) {
414
	$template->set_var('FILE_U_R_CHECKED', 'checked');
415
}
416
if(extract_permission(STRING_FILE_MODE, 'u', 'w')) {
417
	$template->set_var('FILE_U_W_CHECKED', 'checked');
418
}
419
if(extract_permission(STRING_FILE_MODE, 'u', 'e')) {
420
	$template->set_var('FILE_U_E_CHECKED', 'checked');
421
}
422
if(extract_permission(STRING_FILE_MODE, 'g', 'r')) {
423
	$template->set_var('FILE_G_R_CHECKED', 'checked');
424
}
425
if(extract_permission(STRING_FILE_MODE, 'g', 'w')) {
426
	$template->set_var('FILE_G_W_CHECKED', 'checked');
427
}
428
if(extract_permission(STRING_FILE_MODE, 'g', 'e')) {
429
	$template->set_var('FILE_G_E_CHECKED', 'checked');
430
}
431
if(extract_permission(STRING_FILE_MODE, 'o', 'r')) {
432
	$template->set_var('FILE_O_R_CHECKED', 'checked');
433
}
434
if(extract_permission(STRING_FILE_MODE, 'o', 'w')) {
435
	$template->set_var('FILE_O_W_CHECKED', 'checked');
436
}
437
if(extract_permission(STRING_FILE_MODE, 'o', 'e')) {
438
	$template->set_var('FILE_O_E_CHECKED', 'checked');
439
}
440
// Work-out which dir mode boxes are checked
441
if(extract_permission(STRING_DIR_MODE, 'u', 'r')) {
442
	$template->set_var('DIR_U_R_CHECKED', 'checked');
443
}
444
if(extract_permission(STRING_DIR_MODE, 'u', 'w')) {
445
	$template->set_var('DIR_U_W_CHECKED', 'checked');
446
}
447
if(extract_permission(STRING_DIR_MODE, 'u', 'e')) {
448
	$template->set_var('DIR_U_E_CHECKED', 'checked');
449
}
450
if(extract_permission(STRING_DIR_MODE, 'g', 'r')) {
451
	$template->set_var('DIR_G_R_CHECKED', 'checked');
452
}
453
if(extract_permission(STRING_DIR_MODE, 'g', 'w')) {
454
	$template->set_var('DIR_G_W_CHECKED', 'checked');
455
}
456
if(extract_permission(STRING_DIR_MODE, 'g', 'e')) {
457
	$template->set_var('DIR_G_E_CHECKED', 'checked');
458
}
459
if(extract_permission(STRING_DIR_MODE, 'o', 'r')) {
460
	$template->set_var('DIR_O_R_CHECKED', 'checked');
461
}
462
if(extract_permission(STRING_DIR_MODE, 'o', 'w')) {
463
	$template->set_var('DIR_O_W_CHECKED', 'checked');
464
}
465
if(extract_permission(STRING_DIR_MODE, 'o', 'e')) {
466
	$template->set_var('DIR_O_E_CHECKED', 'checked');
467
}
468
469
// Insert Server Email value into template
470
$template->set_var('SERVER_EMAIL', SERVER_EMAIL);
471
472
// Insert language headings
473
$template->set_var(array(
474
								'HEADING_GENERAL_SETTINGS' => $HEADING['GENERAL_SETTINGS'],
475
								'HEADING_DEFAULT_SETTINGS' => $HEADING['DEFAULT_SETTINGS'],
476
								'HEADING_SEARCH_SETTINGS' => $HEADING['SEARCH_SETTINGS'],
477
								'HEADING_FILESYSTEM_SETTINGS' => $HEADING['FILESYSTEM_SETTINGS']
478
								)
479
						);
480
// Insert language text and messages
481
$template->set_var(array(
482
								'TEXT_WEBSITE_TITLE' => $TEXT['WEBSITE_TITLE'],
483
								'TEXT_WEBSITE_DESCRIPTION' => $TEXT['WEBSITE_DESCRIPTION'],
484
								'TEXT_WEBSITE_KEYWORDS' => $TEXT['WEBSITE_KEYWORDS'],
485
								'TEXT_WEBSITE_HEADER' => $TEXT['WEBSITE_HEADER'],
486
								'TEXT_WEBSITE_FOOTER' => $TEXT['WEBSITE_FOOTER'],
487
								'TEXT_HEADER' => $TEXT['HEADER'],
488
								'TEXT_FOOTER' => $TEXT['FOOTER'],
489
								'TEXT_VISIBILITY' => $TEXT['VISIBILITY'],
490
								'TEXT_RESULTS_HEADER' => $TEXT['RESULTS_HEADER'],
491
								'TEXT_RESULTS_LOOP' => $TEXT['RESULTS_LOOP'],
492
								'TEXT_RESULTS_FOOTER' => $TEXT['RESULTS_FOOTER'],
493
								'TEXT_NO_RESULTS' => $TEXT['NO_RESULTS'],
494
								'TEXT_TEXT' => $TEXT['TEXT'],
495
								'TEXT_DEFAULT' => $TEXT['DEFAULT'],
496
								'TEXT_LANGUAGE' => $TEXT['LANGUAGE'],
497
								'TEXT_TIMEZONE' => $TEXT['TIMEZONE'],
498
								'TEXT_DATE_FORMAT' => $TEXT['DATE_FORMAT'],
499
								'TEXT_TIME_FORMAT' => $TEXT['TIME_FORMAT'],
500
								'TEXT_TEMPLATE' => $TEXT['TEMPLATE'],
501 52 stefan
								'TEXT_EDITOR' => $TEXT['WYSIWYG_EDITOR'],
502 45 stefan
								'TEXT_PAGE_LEVEL_LIMIT' => $TEXT['PAGE_LEVEL_LIMIT'],
503
								'TEXT_INTRO_PAGE' => $TEXT['INTRO_PAGE'],
504
								'TEXT_FRONTEND' => $TEXT['FRONTEND'],
505
								'TEXT_LOGIN' => $TEXT['LOGIN'],
506
								'TEXT_SIGNUP' => $TEXT['SIGNUP'],
507
								'TEXT_PHP_ERROR_LEVEL' => $TEXT['PHP_ERROR_LEVEL'],
508
								'TEXT_PAGE_EXTENSION' => $TEXT['PAGE_EXTENSION'],
509
								'TEXT_PAGE_SPACER' => $TEXT['PAGE_SPACER'],
510 61 stefan
								'TEXT_RENAME_FILES_ON_UPLOAD' => $TEXT['RENAME_FILES_ON_UPLOAD'],
511 45 stefan
								'TEXT_SERVER_OPERATING_SYSTEM' => $TEXT['SERVER_OPERATING_SYSTEM'],
512
								'TEXT_LINUX_UNIX_BASED' => $TEXT['LINUX_UNIX_BASED'],
513
								'TEXT_WINDOWS' => $TEXT['WINDOWS'],
514
								'TEXT_ADMIN' => $TEXT['ADMIN'],
515
								'TEXT_TYPE' => $TEXT['TYPE'],
516
								'TEXT_DATABASE' => $TEXT['DATABASE'],
517
								'TEXT_HOST' => $TEXT['HOST'],
518
								'TEXT_USERNAME' => $TEXT['USERNAME'],
519
								'TEXT_PASSWORD' => $TEXT['PASSWORD'],
520
								'TEXT_NAME' => $TEXT['NAME'],
521
								'TEXT_TABLE_PREFIX' => $TEXT['TABLE_PREFIX'],
522
								'TEXT_SAVE' => $TEXT['SAVE'],
523
								'TEXT_RESET' => $TEXT['RESET'],
524
								'TEXT_CHANGES' => $TEXT['CHANGES'],
525
								'TEXT_ENABLED' => $TEXT['ENABLED'],
526
								'TEXT_DISABLED' => $TEXT['DISABLED'],
527
								'TEXT_MANAGE_SECTIONS' => $HEADING['MANAGE_SECTIONS'],
528
								'TEXT_MANAGE' => $TEXT['MANAGE'],
529
								'TEXT_SEARCH' => $TEXT['SEARCH'],
530
								'TEXT_PUBLIC' => $TEXT['PUBLIC'],
531
								'TEXT_PRIVATE' => $TEXT['PRIVATE'],
532
								'TEXT_REGISTERED' => $TEXT['REGISTERED'],
533
								'TEXT_NONE' => $TEXT['NONE'],
534
								'TEXT_FILES' => strtoupper(substr($TEXT['FILES'], 0, 1)).substr($TEXT['FILES'], 1),
535
								'TEXT_DIRECTORIES' => $TEXT['DIRECTORIES'],
536
								'TEXT_FILESYSTEM_PERMISSIONS' => $TEXT['FILESYSTEM_PERMISSIONS'],
537
								'TEXT_USER' => $TEXT['USER'],
538
								'TEXT_GROUP' => $TEXT['GROUP'],
539
								'TEXT_OTHERS' => $TEXT['OTHERS'],
540
								'TEXT_READ' => $TEXT['READ'],
541
								'TEXT_WRITE' => $TEXT['WRITE'],
542
								'TEXT_EXECUTE' => $TEXT['EXECUTE'],
543
								'TEXT_SMART_LOGIN' => $TEXT['SMART_LOGIN'],
544
								'TEXT_MULTIPLE_MENUS' => $TEXT['MULTIPLE_MENUS'],
545
								'TEXT_HOMEPAGE_REDIRECTION' => $TEXT['HOMEPAGE_REDIRECTION'],
546
								'TEXT_PAGE_LANGUAGES' => $TEXT['PAGE_LANGUAGES'],
547
								'TEXT_SECTION_BLOCKS' => $TEXT['SECTION_BLOCKS'],
548
								'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT'],
549
								'TEXT_PAGE_TRASH' => $TEXT['PAGE_TRASH'],
550
								'TEXT_INLINE' => $TEXT['INLINE'],
551
								'TEXT_SEPARATE' => $TEXT['SEPARATE'],
552
								'TEXT_HOME_FOLDERS' => $TEXT['HOME_FOLDERS'],
553
								'TEXT_WYSIWYG_STYLE' => $TEXT['WYSIWYG_STYLE'],
554
								'TEXT_SERVER_EMAIL' => $TEXT['SERVER_EMAIL'],
555
								'TEXT_WORLD_WRITEABLE_FILE_PERMISSIONS' => $TEXT['WORLD_WRITEABLE_FILE_PERMISSIONS'],
556
								'MODE_SWITCH_WARNING' => $MESSAGE['SETTINGS']['MODE_SWITCH_WARNING'],
557
								'WORLD_WRITEABLE_WARNING' => $MESSAGE['SETTINGS']['WORLD_WRITEABLE_WARNING']
558
								)
559
						);
560
561
// Parse template objects output
562
$template->parse('main', 'main_block', false);
563
$template->pparse('output', 'page');
564
565
$admin->print_footer();
566
567
?>