Project

General

Profile

1
<?php
2

    
3
// $Id: index.php 98 2005-09-13 20:46:33Z stefan $
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
	$setting_value = htmlspecialchars($setting['value']);
48
	$template->set_var(strtoupper($setting_name),$setting_value);
49
}
50

    
51
// Query current settings in the db, then loop through them and print them
52
$query = "SELECT * FROM ".TABLE_PREFIX."search WHERE extra = ''";
53
$results = $database->query($query);
54
while($setting = $results->fetchRow()) {
55
	$setting_name = $setting['name'];
56
	$setting_value = htmlspecialchars($admin->strip_slashes_dummy($setting['value']));
57
	switch($setting_name) {
58
		// Search header
59
		case 'header':
60
			$template->set_var('SEARCH_HEADER', $setting_value);
61
		break;
62
		// Search results header
63
		case 'results_header':
64
			$template->set_var('SEARCH_RESULTS_HEADER', $setting_value);
65
		break;
66
		// Search results loop
67
		case 'results_loop':
68
			$template->set_var('SEARCH_RESULTS_LOOP', $setting_value);
69
		break;
70
		// Search results footer
71
		case 'results_footer':
72
			$template->set_var('SEARCH_RESULTS_FOOTER', $setting_value);
73
		break;
74
		// Search no results
75
		case 'no_results':
76
			$template->set_var('SEARCH_NO_RESULTS', $setting_value);
77
		break;
78
		// Search footer
79
		case 'footer':
80
			$template->set_var('SEARCH_FOOTER', $setting_value);
81
		break;
82
		// Search template
83
		case 'template':
84
			$search_template = $setting_value;
85
		break;
86
	}
87
}
88

    
89
// Do the same for settings stored in config file as with ones in db
90
$database_type = '';
91

    
92
// Tell the browser whether or not to show advanced options
93
if(isset($_GET['advanced']) AND $_GET['advanced'] == 'yes') {
94
	$template->set_var('DISPLAY_ADVANCED', '');
95
	$template->set_var('ADVANCED', 'yes');
96
	$template->set_var('ADVANCED_BUTTON', '<< '.$TEXT['HIDE_ADVANCED']);
97
	$template->set_var('ADVANCED_LINK', 'index.php?advanced=no');
98
	$template->set_var('BASIC_FILE_PERMS_ID', 'hide');
99
	$template->set_var('ADVANCED_FILE_PERMS_ID', 'file_perms_box');
100
} else {
101
	$template->set_var('DISPLAY_ADVANCED', 'none');
102
	$template->set_var('ADVANCED', 'no');
103
	$template->set_var('ADVANCED_BUTTON', $TEXT['SHOW_ADVANCED'].' >>');
104
	$template->set_var('ADVANCED_LINK', 'index.php?advanced=yes');
105
	$template->set_var('BASIC_FILE_PERMS_ID', 'file_perms_box');
106
	$template->set_var('ADVANCED_FILE_PERMS_ID', 'hide');
107
}
108

    
109
$template->set_var(array(	
110
									'PAGE_EXTENSION' => PAGE_EXTENSION,
111
									'PAGE_SPACER' => PAGE_SPACER,
112
									'WB_PATH' => WB_PATH,
113
									'WB_URL' => WB_URL,
114
									'ADMIN_PATH' => ADMIN_PATH,
115
									'ADMIN_URL' => ADMIN_URL,
116
									'DATABASE_TYPE' => DB_TYPE,
117
									'DATABASE_HOST' => DB_HOST,
118
									'DATABASE_USERNAME' => DB_USERNAME,
119
									'DATABASE_NAME' => DB_NAME,
120
									'TABLE_PREFIX' => TABLE_PREFIX
121
								 )
122
						 );
123

    
124
// Insert groups into signup list
125
$template->set_block('main_block', 'group_list_block', 'group_list');
126
$results = $database->query("SELECT group_id, name FROM ".TABLE_PREFIX."groups WHERE group_id != '1'");
127
if($results->numRows() > 0) {
128
	while($group = $results->fetchRow()) {
129
		$template->set_var('ID', $group['group_id']);
130
		$template->set_var('NAME', $group['name']);
131
		if(FRONTEND_SIGNUP == $group['group_id']) {
132
			$template->set_var('SELECTED', 'selected');
133
		} else {
134
			$template->set_var('SELECTED', '');
135
		}
136
		$template->parse('group_list', 'group_list_block', true);
137
	}
138
} else {
139
	$template->set_var('ID', 'disabled');
140
	$template->set_var('NAME', $MESSAGE['GROUPS']['NO_GROUPS_FOUND']);
141
	$template->parse('group_list', 'group_list_block', true);
142
}
143

    
144
// Insert language values
145
$template->set_block('main_block', 'language_list_block', 'language_list');
146
if($handle = opendir(WB_PATH.'/languages/')) {
147
   while (false !== ($file = readdir($handle))) {
148
		if($file != '.' AND $file != '..' AND !is_dir($file) AND $file != 'index.php') {
149
			// Get language name
150
			require(WB_PATH.'/languages/'.$file);
151
			// Insert code and name
152
			$template->set_var(array(
153
											'CODE' => $language_code,
154
											'NAME' => $language_name
155
											)
156
									);
157
			// Check if it is selected
158
			if(DEFAULT_LANGUAGE == $language_code) {
159
				$template->set_var('SELECTED', ' selected');
160
			} else {
161
				$template->set_var('SELECTED', '');
162
			}
163
			$template->parse('language_list', 'language_list_block', true);
164
		}
165
	}
166
	// Restore language to original file
167
	require(WB_PATH.'/languages/'.LANGUAGE.'.php');
168
}
169

    
170
// Insert default timezone values
171
require(ADMIN_PATH.'/interface/timezones.php');
172
$template->set_block('main_block', 'timezone_list_block', 'timezone_list');
173
foreach($TIMEZONES AS $hour_offset => $title) {
174
	// Make sure we dont list "System Default" as we are setting this value!
175
	if($hour_offset != '-20') {
176
		$template->set_var('VALUE', $hour_offset);
177
		$template->set_var('NAME', $title);
178
		if(DEFAULT_TIMEZONE == $hour_offset*60*60) {
179
			$template->set_var('SELECTED', 'selected');
180
		} else {
181
			$template->set_var('SELECTED', '');
182
		}
183
		$template->parse('timezone_list', 'timezone_list_block', true);
184
	}
185
}
186

    
187
// Insert date format list
188
require(ADMIN_PATH.'/interface/date_formats.php');
189
$template->set_block('main_block', 'date_format_list_block', 'date_format_list');
190
foreach($DATE_FORMATS AS $format => $title) {
191
	$format = str_replace('|', ' ', $format); // Add's white-spaces (not able to be stored in array key)
192
	if($format != 'system_default') {
193
		$template->set_var('VALUE', $format);
194
	} else {
195
		$template->set_var('VALUE', '');
196
	}
197
	$template->set_var('NAME', $title);
198
	if(DEFAULT_DATE_FORMAT == $format) {
199
		$template->set_var('SELECTED', 'selected');
200
	} else {
201
		$template->set_var('SELECTED', '');
202
	}
203
	$template->parse('date_format_list', 'date_format_list_block', true);
204
}
205

    
206
// Insert time format list
207
require(ADMIN_PATH.'/interface/time_formats.php');
208
$template->set_block('main_block', 'time_format_list_block', 'time_format_list');
209
foreach($TIME_FORMATS AS $format => $title) {
210
	$format = str_replace('|', ' ', $format); // Add's white-spaces (not able to be stored in array key)
211
	if($format != 'system_default') {
212
		$template->set_var('VALUE', $format);
213
	} else {
214
		$template->set_var('VALUE', '');
215
	}
216
	$template->set_var('NAME', $title);
217
	if(DEFAULT_TIME_FORMAT == $format) {
218
		$template->set_var('SELECTED', 'selected');
219
	} else {
220
		$template->set_var('SELECTED', '');
221
	}
222
	$template->parse('time_format_list', 'time_format_list_block', true);
223
}
224

    
225
// Insert templates
226
$template->set_block('main_block', 'template_list_block', 'template_list');
227
if($handle = opendir(WB_PATH.'/templates/')) {
228
	while (false !== ($file = readdir($handle))) {
229
		if($file != "." AND $file != ".." AND $file != ".svn" AND is_dir(WB_PATH."/templates/$file") AND file_exists(WB_PATH."/templates/$file/info.php")) {
230
			include(WB_PATH."/templates/$file/info.php");
231
			$template->set_var('FILE', $file);
232
			$template->set_var('NAME', $template_name);
233
			if($file == DEFAULT_TEMPLATE ? $selected = ' selected' : $selected = '');
234
			$template->set_var('SELECTED', $selected);
235
			$template->parse('template_list', 'template_list_block', true);
236
		}
237
	}
238
}
239

    
240
// Insert templates
241
$template->set_block('main_block', 'editor_list_block', 'editor_list');
242
$file='none';
243
$module_name='None';
244
$template->set_var('FILE', $file);
245
$template->set_var('NAME', $module_name);
246
if((!defined('WYSIWYG_EDITOR') OR $file == WYSIWYG_EDITOR) ? $selected = ' selected' : $selected = '');
247
$template->set_var('SELECTED', $selected);
248
$template->parse('editor_list', 'editor_list_block', true);
249
if($handle = opendir(WB_PATH.'/modules/')) {
250
	while (false !== ($file = readdir($handle))) {
251
		if($file != "." AND $file != ".." AND $file != ".svn" AND is_dir(WB_PATH."/modules/$file") AND file_exists(WB_PATH."/modules/$file/info.php")) {
252
			include(WB_PATH."/modules/$file/info.php");
253
			if ($module_type == 'WYSIWYG') {
254
				$template->set_var('FILE', $file);
255
				$template->set_var('NAME', $module_name);
256
				if((defined('WYSIWYG_EDITOR') AND $file == WYSIWYG_EDITOR) ? $selected = ' selected' : $selected = '');
257
				$template->set_var('SELECTED', $selected);
258
				$template->parse('editor_list', 'editor_list_block', true);
259
			}
260
		}
261
	}
262
}
263

    
264

    
265
// Insert templates for search settings
266
$template->set_block('main_block', 'search_template_list_block', 'search_template_list');
267
if($search_template == '') { $selected = ' selected'; } else { $selected = ''; }
268
$template->set_var(array('FILE' => '', 'NAME' => $TEXT['SYSTEM_DEFAULT'], 'SELECTED' => $selected));
269
$template->parse('search_template_list', 'search_template_list_block', true);
270
if($handle = opendir(WB_PATH.'/templates/')) {
271
	while (false !== ($file = readdir($handle))) {
272
		if($file != "." AND $file != ".." AND $file != ".svn" AND is_dir(WB_PATH."/templates/$file") AND file_exists(WB_PATH."/templates/$file/info.php")) {
273
			include(WB_PATH."/templates/$file/info.php");
274
			$template->set_var('FILE', $file);
275
			$template->set_var('NAME', $template_name);
276
			if($file == $search_template ? $selected = ' selected' : $selected = '');
277
			$template->set_var('SELECTED', $selected);
278
			$template->parse('search_template_list', 'search_template_list_block', true);
279
		}
280
	}
281
}
282

    
283
// Insert default error reporting values
284
require(ADMIN_PATH.'/interface/er_levels.php');
285
$template->set_block('main_block', 'error_reporting_list_block', 'error_reporting_list');
286
foreach($ER_LEVELS AS $value => $title) {
287
	$template->set_var('VALUE', $value);
288
	$template->set_var('NAME', $title);
289
	if(ER_LEVEL == $value) {
290
		$template->set_var('SELECTED', 'selected');
291
	} else {
292
		$template->set_var('SELECTED', '');
293
	}
294
	$template->parse('error_reporting_list', 'error_reporting_list_block', true);
295
}
296

    
297
// Insert permissions values
298
if($admin->get_permission('settings_advanced') != true) {
299
	$template->set_var('DISPLAY_ADVANCED_BUTTON', 'hide');
300
}
301

    
302
// Insert page level limits
303
$template->set_block('main_block', 'page_level_limit_list_block', 'page_level_limit_list');
304
for($i = 1; $i <= 10; $i++) {
305
	$template->set_var('NUMBER', $i);
306
	if(PAGE_LEVEL_LIMIT == $i) {
307
		$template->set_var('SELECTED', 'selected');
308
	} else {
309
		$template->set_var('SELECTED', '');
310
	}
311
	$template->parse('page_level_limit_list', 'page_level_limit_list_block', true);
312
}
313

    
314
// Work-out if multiple menus feature is enabled
315
if(defined('MULTIPLE_MENUS') AND MULTIPLE_MENUS == true) {
316
	$template->set_var('MULTIPLE_MENUS_ENABLED', ' checked');
317
} else {
318
	$template->set_var('MULTIPLE_MENUS_DISABLED', ' checked');
319
}
320

    
321
// Work-out if page languages feature is enabled
322
if(defined('PAGE_LANGUAGES') AND PAGE_LANGUAGES == true) {
323
	$template->set_var('PAGE_LANGUAGES_ENABLED', ' checked');
324
} else {
325
	$template->set_var('PAGE_LANGUAGES_DISABLED', ' checked');
326
}
327

    
328
// Work-out if smart login feature is enabled
329
if(defined('SMART_LOGIN') AND SMART_LOGIN == true) {
330
	$template->set_var('SMART_LOGIN_ENABLED', ' checked');
331
} else {
332
	$template->set_var('SMART_LOGIN_DISABLED', ' checked');
333
}
334

    
335
// Work-out if section blocks feature is enabled
336
if(defined('SECTION_BLOCKS') AND SECTION_BLOCKS == true) {
337
	$template->set_var('SECTION_BLOCKS_ENABLED', ' checked');
338
} else {
339
	$template->set_var('SECTION_BLOCKS_DISABLED', ' checked');
340
}
341

    
342
// Work-out if homepage redirection feature is enabled
343
if(defined('HOMEPAGE_REDIRECTION') AND HOMEPAGE_REDIRECTION == true) {
344
	$template->set_var('HOMEPAGE_REDIRECTION_ENABLED', ' checked');
345
} else {
346
	$template->set_var('HOMEPAGE_REDIRECTION_DISABLED', ' checked');
347
}
348

    
349
// Work-out which server os should be checked
350
if(OPERATING_SYSTEM == 'linux') {
351
	$template->set_var('LINUX_SELECTED', ' checked');
352
} elseif(OPERATING_SYSTEM == 'windows') {
353
	$template->set_var('WINDOWS_SELECTED', ' checked');
354
}
355

    
356
// Work-out if manage sections feature is enabled
357
if(MANAGE_SECTIONS) {
358
	$template->set_var('MANAGE_SECTIONS_ENABLED', ' checked');
359
} else {
360
	$template->set_var('MANAGE_SECTIONS_DISABLED', ' checked');
361
}
362

    
363
// Work-out if intro feature is enabled
364
if(INTRO_PAGE) {
365
	$template->set_var('INTRO_PAGE_ENABLED', ' checked');
366
} else {
367
	$template->set_var('INTRO_PAGE_DISABLED', ' checked');
368
}
369

    
370
// Work-out if frontend login feature is enabled
371
if(FRONTEND_LOGIN) {
372
	$template->set_var('PRIVATE_ENABLED', ' checked');
373
} else {
374
	$template->set_var('PRIVATE_DISABLED', ' checked');
375
}
376

    
377
// Work-out if page trash feature is disabled, in-line, or separate
378
if(PAGE_TRASH == 'disabled') {
379
	$template->set_var('PAGE_TRASH_DISABLED', ' checked');
380
} elseif(PAGE_TRASH == 'inline') {
381
	$template->set_var('PAGE_TRASH_INLINE', ' checked');
382
} elseif(PAGE_TRASH == 'separate') {
383
	$template->set_var('PAGE_TRASH_SEPARATE', ' checked');
384
}
385

    
386
// Work-out if media home folde feature is enabled
387
if(HOME_FOLDERS) {
388
	$template->set_var('HOME_FOLDERS_ENABLED', ' checked');
389
} else {
390
	$template->set_var('HOME_FOLDERS_DISABLED', ' checked');
391
}
392

    
393
// Insert search select
394
if(SEARCH == 'private') {
395
	$template->set_var('PRIVATE_SEARCH', 'selected');
396
} elseif(SEARCH == 'registered') {
397
	$template->set_var('REGISTERED_SEARCH', 'selected');
398
} elseif(SEARCH == 'none') {
399
	$template->set_var('NONE_SEARCH', 'selected');
400
}
401

    
402
// Work-out if 777 permissions are set
403
if(STRING_FILE_MODE == '0777' AND STRING_DIR_MODE == '0777') {
404
	$template->set_var('WORLD_WRITEABLE_SELECTED', ' checked');
405
}
406

    
407
// Work-out which file mode boxes are checked
408
if(extract_permission(STRING_FILE_MODE, 'u', 'r')) {
409
	$template->set_var('FILE_U_R_CHECKED', 'checked');
410
}
411
if(extract_permission(STRING_FILE_MODE, 'u', 'w')) {
412
	$template->set_var('FILE_U_W_CHECKED', 'checked');
413
}
414
if(extract_permission(STRING_FILE_MODE, 'u', 'e')) {
415
	$template->set_var('FILE_U_E_CHECKED', 'checked');
416
}
417
if(extract_permission(STRING_FILE_MODE, 'g', 'r')) {
418
	$template->set_var('FILE_G_R_CHECKED', 'checked');
419
}
420
if(extract_permission(STRING_FILE_MODE, 'g', 'w')) {
421
	$template->set_var('FILE_G_W_CHECKED', 'checked');
422
}
423
if(extract_permission(STRING_FILE_MODE, 'g', 'e')) {
424
	$template->set_var('FILE_G_E_CHECKED', 'checked');
425
}
426
if(extract_permission(STRING_FILE_MODE, 'o', 'r')) {
427
	$template->set_var('FILE_O_R_CHECKED', 'checked');
428
}
429
if(extract_permission(STRING_FILE_MODE, 'o', 'w')) {
430
	$template->set_var('FILE_O_W_CHECKED', 'checked');
431
}
432
if(extract_permission(STRING_FILE_MODE, 'o', 'e')) {
433
	$template->set_var('FILE_O_E_CHECKED', 'checked');
434
}
435
// Work-out which dir mode boxes are checked
436
if(extract_permission(STRING_DIR_MODE, 'u', 'r')) {
437
	$template->set_var('DIR_U_R_CHECKED', 'checked');
438
}
439
if(extract_permission(STRING_DIR_MODE, 'u', 'w')) {
440
	$template->set_var('DIR_U_W_CHECKED', 'checked');
441
}
442
if(extract_permission(STRING_DIR_MODE, 'u', 'e')) {
443
	$template->set_var('DIR_U_E_CHECKED', 'checked');
444
}
445
if(extract_permission(STRING_DIR_MODE, 'g', 'r')) {
446
	$template->set_var('DIR_G_R_CHECKED', 'checked');
447
}
448
if(extract_permission(STRING_DIR_MODE, 'g', 'w')) {
449
	$template->set_var('DIR_G_W_CHECKED', 'checked');
450
}
451
if(extract_permission(STRING_DIR_MODE, 'g', 'e')) {
452
	$template->set_var('DIR_G_E_CHECKED', 'checked');
453
}
454
if(extract_permission(STRING_DIR_MODE, 'o', 'r')) {
455
	$template->set_var('DIR_O_R_CHECKED', 'checked');
456
}
457
if(extract_permission(STRING_DIR_MODE, 'o', 'w')) {
458
	$template->set_var('DIR_O_W_CHECKED', 'checked');
459
}
460
if(extract_permission(STRING_DIR_MODE, 'o', 'e')) {
461
	$template->set_var('DIR_O_E_CHECKED', 'checked');
462
}
463

    
464
// Insert Server Email value into template
465
$template->set_var('SERVER_EMAIL', SERVER_EMAIL);
466

    
467
// Insert language headings
468
$template->set_var(array(
469
								'HEADING_GENERAL_SETTINGS' => $HEADING['GENERAL_SETTINGS'],
470
								'HEADING_DEFAULT_SETTINGS' => $HEADING['DEFAULT_SETTINGS'],
471
								'HEADING_SEARCH_SETTINGS' => $HEADING['SEARCH_SETTINGS'],
472
								'HEADING_FILESYSTEM_SETTINGS' => $HEADING['FILESYSTEM_SETTINGS']
473
								)
474
						);
475
// Insert language text and messages
476
$template->set_var(array(
477
								'TEXT_WEBSITE_TITLE' => $TEXT['WEBSITE_TITLE'],
478
								'TEXT_WEBSITE_DESCRIPTION' => $TEXT['WEBSITE_DESCRIPTION'],
479
								'TEXT_WEBSITE_KEYWORDS' => $TEXT['WEBSITE_KEYWORDS'],
480
								'TEXT_WEBSITE_HEADER' => $TEXT['WEBSITE_HEADER'],
481
								'TEXT_WEBSITE_FOOTER' => $TEXT['WEBSITE_FOOTER'],
482
								'TEXT_HEADER' => $TEXT['HEADER'],
483
								'TEXT_FOOTER' => $TEXT['FOOTER'],
484
								'TEXT_VISIBILITY' => $TEXT['VISIBILITY'],
485
								'TEXT_RESULTS_HEADER' => $TEXT['RESULTS_HEADER'],
486
								'TEXT_RESULTS_LOOP' => $TEXT['RESULTS_LOOP'],
487
								'TEXT_RESULTS_FOOTER' => $TEXT['RESULTS_FOOTER'],
488
								'TEXT_NO_RESULTS' => $TEXT['NO_RESULTS'],
489
								'TEXT_TEXT' => $TEXT['TEXT'],
490
								'TEXT_DEFAULT' => $TEXT['DEFAULT'],
491
								'TEXT_LANGUAGE' => $TEXT['LANGUAGE'],
492
								'TEXT_TIMEZONE' => $TEXT['TIMEZONE'],
493
								'TEXT_DATE_FORMAT' => $TEXT['DATE_FORMAT'],
494
								'TEXT_TIME_FORMAT' => $TEXT['TIME_FORMAT'],
495
								'TEXT_TEMPLATE' => $TEXT['TEMPLATE'],
496
								'TEXT_EDITOR' => $TEXT['WYSIWYG_EDITOR'],
497
								'TEXT_PAGE_LEVEL_LIMIT' => $TEXT['PAGE_LEVEL_LIMIT'],
498
								'TEXT_INTRO_PAGE' => $TEXT['INTRO_PAGE'],
499
								'TEXT_FRONTEND' => $TEXT['FRONTEND'],
500
								'TEXT_LOGIN' => $TEXT['LOGIN'],
501
								'TEXT_SIGNUP' => $TEXT['SIGNUP'],
502
								'TEXT_PHP_ERROR_LEVEL' => $TEXT['PHP_ERROR_LEVEL'],
503
								'TEXT_PAGE_EXTENSION' => $TEXT['PAGE_EXTENSION'],
504
								'TEXT_PAGE_SPACER' => $TEXT['PAGE_SPACER'],
505
								'TEXT_RENAME_FILES_ON_UPLOAD' => $TEXT['RENAME_FILES_ON_UPLOAD'],
506
								'TEXT_SERVER_OPERATING_SYSTEM' => $TEXT['SERVER_OPERATING_SYSTEM'],
507
								'TEXT_LINUX_UNIX_BASED' => $TEXT['LINUX_UNIX_BASED'],
508
								'TEXT_WINDOWS' => $TEXT['WINDOWS'],
509
								'TEXT_ADMIN' => $TEXT['ADMIN'],
510
								'TEXT_TYPE' => $TEXT['TYPE'],
511
								'TEXT_DATABASE' => $TEXT['DATABASE'],
512
								'TEXT_HOST' => $TEXT['HOST'],
513
								'TEXT_USERNAME' => $TEXT['USERNAME'],
514
								'TEXT_PASSWORD' => $TEXT['PASSWORD'],
515
								'TEXT_NAME' => $TEXT['NAME'],
516
								'TEXT_TABLE_PREFIX' => $TEXT['TABLE_PREFIX'],
517
								'TEXT_SAVE' => $TEXT['SAVE'],
518
								'TEXT_RESET' => $TEXT['RESET'],
519
								'TEXT_CHANGES' => $TEXT['CHANGES'],
520
								'TEXT_ENABLED' => $TEXT['ENABLED'],
521
								'TEXT_DISABLED' => $TEXT['DISABLED'],
522
								'TEXT_MANAGE_SECTIONS' => $HEADING['MANAGE_SECTIONS'],
523
								'TEXT_MANAGE' => $TEXT['MANAGE'],
524
								'TEXT_SEARCH' => $TEXT['SEARCH'],
525
								'TEXT_PUBLIC' => $TEXT['PUBLIC'],
526
								'TEXT_PRIVATE' => $TEXT['PRIVATE'],
527
								'TEXT_REGISTERED' => $TEXT['REGISTERED'],
528
								'TEXT_NONE' => $TEXT['NONE'],
529
								'TEXT_FILES' => strtoupper(substr($TEXT['FILES'], 0, 1)).substr($TEXT['FILES'], 1),
530
								'TEXT_DIRECTORIES' => $TEXT['DIRECTORIES'],
531
								'TEXT_FILESYSTEM_PERMISSIONS' => $TEXT['FILESYSTEM_PERMISSIONS'],
532
								'TEXT_USER' => $TEXT['USER'],
533
								'TEXT_GROUP' => $TEXT['GROUP'],
534
								'TEXT_OTHERS' => $TEXT['OTHERS'],
535
								'TEXT_READ' => $TEXT['READ'],
536
								'TEXT_WRITE' => $TEXT['WRITE'],
537
								'TEXT_EXECUTE' => $TEXT['EXECUTE'],
538
								'TEXT_SMART_LOGIN' => $TEXT['SMART_LOGIN'],
539
								'TEXT_MULTIPLE_MENUS' => $TEXT['MULTIPLE_MENUS'],
540
								'TEXT_HOMEPAGE_REDIRECTION' => $TEXT['HOMEPAGE_REDIRECTION'],
541
								'TEXT_PAGE_LANGUAGES' => $TEXT['PAGE_LANGUAGES'],
542
								'TEXT_SECTION_BLOCKS' => $TEXT['SECTION_BLOCKS'],
543
								'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT'],
544
								'TEXT_PAGE_TRASH' => $TEXT['PAGE_TRASH'],
545
								'TEXT_INLINE' => $TEXT['INLINE'],
546
								'TEXT_SEPARATE' => $TEXT['SEPARATE'],
547
								'TEXT_HOME_FOLDERS' => $TEXT['HOME_FOLDERS'],
548
								'TEXT_WYSIWYG_STYLE' => $TEXT['WYSIWYG_STYLE'],
549
								'TEXT_SERVER_EMAIL' => $TEXT['SERVER_EMAIL'],
550
								'TEXT_WORLD_WRITEABLE_FILE_PERMISSIONS' => $TEXT['WORLD_WRITEABLE_FILE_PERMISSIONS'],
551
								'MODE_SWITCH_WARNING' => $MESSAGE['SETTINGS']['MODE_SWITCH_WARNING'],
552
								'WORLD_WRITEABLE_WARNING' => $MESSAGE['SETTINGS']['WORLD_WRITEABLE_WARNING']
553
								)
554
						);
555

    
556
// Parse template objects output
557
$template->parse('main', 'main_block', false);
558
$template->pparse('output', 'page');
559

    
560
$admin->print_footer();
561

    
562
?>
(1-1/3)