Project

General

Profile

1 1358 Luisehahne
<?php
2
/**
3
 *
4
 * @category        admin
5
 * @package         pages
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8 1373 Luisehahne
 * @copyright       2009-2011, Website Baker Org. e.V.
9 1358 Luisehahne
 * @link			http://www.websitebaker2.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.x
12 1373 Luisehahne
 * @requirements    PHP 5.2.2 and higher
13 1358 Luisehahne
 * @version         $Id$
14
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
16
 *
17
 */
18
19
// Get page id
20 1384 Luisehahne
if(!isset($_GET['page_id']) || !is_numeric($_GET['page_id']))
21 1358 Luisehahne
{
22
	header("Location: index.php");
23
	exit(0);
24
} else {
25
	$page_id = $_GET['page_id'];
26
}
27
28
// Create new admin object
29
require('../../config.php');
30
require_once(WB_PATH.'/framework/class.admin.php');
31
$admin = new admin('Pages', 'pages_settings');
32
33
// Include the WB functions file
34
require_once(WB_PATH.'/framework/functions-utf8.php');
35
36
// Get perms
37
/*$database = new database(); */
38
39
$sql = 'SELECT * FROM `'.TABLE_PREFIX.'pages` WHERE `page_id` = '.$page_id;
40
$results = $database->query($sql);
41
$results_array = $results->fetchRow();
42
43
$old_admin_groups = explode(',', $results_array['admin_groups']);
44
$old_admin_users = explode(',', $results_array['admin_users']);
45
46
// Work-out if we should check for existing page_code
47
$sql = 'DESCRIBE `'.TABLE_PREFIX.'pages` `page_code`';
48
$field_sql = $database->query($sql);
49
$field_set = $field_sql->numRows();
50
51
$in_old_group = FALSE;
52
foreach($admin->get_groups_id() as $cur_gid)
53
{
54
	if (in_array($cur_gid, $old_admin_groups))
55
    {
56
		$in_old_group = TRUE;
57
	}
58
}
59 1384 Luisehahne
if((!$in_old_group) && !is_numeric(array_search($admin->get_user_id(), $old_admin_users)))
60 1358 Luisehahne
{
61
	$admin->print_error($MESSAGE['PAGES']['INSUFFICIENT_PERMISSIONS']);
62
}
63
64
// Get page details
65
/* $database = new database();  */
66
$sql = 'SELECT * FROM `'.TABLE_PREFIX.'pages` WHERE `page_id`='.$page_id;
67
$results = $database->query($sql);
68
if($database->is_error()) {
69
	$admin->print_header();
70
	$admin->print_error($database->get_error());
71
}
72
if($results->numRows() == 0) {
73
	$admin->print_header();
74
	$admin->print_error($MESSAGE['PAGES']['NOT_FOUND']);
75
}
76
$results_array = $results->fetchRow();
77
78
// Get display name of person who last modified the page
79
$user=$admin->get_user_details($results_array['modified_by']);
80
81
// Convert the unix ts for modified_when to human a readable form
82
if($results_array['modified_when'] != 0)
83
{
84
	$modified_ts = gmdate(TIME_FORMAT.', '.DATE_FORMAT, $results_array['modified_when']+TIMEZONE);
85
} else {
86
	$modified_ts = 'Unknown';
87
}
88
89
// Setup template object, parse vars to it, then parse it
90
$template = new Template(THEME_PATH.'/templates');
91
$template->set_file('page', 'pages_settings.htt');
92
$template->set_block('page', 'main_block', 'main');
93
$template->set_var('FTAN', $admin->getFTAN());
94
95
$template->set_var(array(
96
				'PAGE_ID' => $results_array['page_id'],
97
				'PAGE_TITLE' => ($results_array['page_title']),
98
				'MENU_TITLE' => ($results_array['menu_title']),
99
				'DESCRIPTION' => ($results_array['description']),
100
				'KEYWORDS' => ($results_array['keywords']),
101
				'MODIFIED_BY' => $user['display_name'],
102
				'MODIFIED_BY_USERNAME' => $user['username'],
103
				'MODIFIED_WHEN' => $modified_ts,
104
				'ADMIN_URL' => ADMIN_URL,
105
				'WB_URL' => WB_URL,
106
				'THEME_URL' => THEME_URL
107
				)
108
		);
109
110
// Work-out if we should show the "manage sections" link
111
$sql = 'SELECT `section_id` FROM `'.TABLE_PREFIX.'sections` WHERE `page_id`='.$page_id.' AND `module`="menu_link"';
112
$query_sections = $database->query($sql);
113
if($query_sections->numRows() > 0)
114
{
115
    $template->set_var('DISPLAY_MANAGE_SECTIONS', 'display:none;');
116
} elseif(MANAGE_SECTIONS == 'enabled')
117
{
118
	$template->set_var('TEXT_MANAGE_SECTIONS', $HEADING['MANAGE_SECTIONS']);
119
} else {
120
	$template->set_var('DISPLAY_MANAGE_SECTIONS', 'display:none;');
121
}
122
123
// Visibility
124
if($results_array['visibility'] == 'public') {
125
	$template->set_var('PUBLIC_SELECTED', ' selected="selected"');
126
} elseif($results_array['visibility'] == 'private') {
127
	$template->set_var('PRIVATE_SELECTED', ' selected="selected"');
128
} elseif($results_array['visibility'] == 'registered') {
129
	$template->set_var('REGISTERED_SELECTED', ' selected="selected"');
130
} elseif($results_array['visibility'] == 'hidden') {
131
	$template->set_var('HIDDEN_SELECTED', ' selected="selected"');
132
} elseif($results_array['visibility'] == 'none') {
133
	$template->set_var('NO_VIS_SELECTED', ' selected="selected"');
134
}
135
// Group list 1 (admin_groups)
136
	$admin_groups = explode(',', str_replace('_', '', $results_array['admin_groups']));
137
138
	$sql = 'SELECT * FROM `'.TABLE_PREFIX.'groups`';
139
    $get_groups = $database->query($sql);
140
141
	$template->set_block('main_block', 'group_list_block', 'group_list');
142
	// Insert admin group and current group first
143
	$admin_group_name = $get_groups->fetchRow();
144
	$template->set_var(array(
145
									'ID' => 1,
146
									'TOGGLE' => '',
147
									'DISABLED' => ' disabled="disabled"',
148
									'LINK_COLOR' => '000000',
149
									'CURSOR' => 'default',
150
									'NAME' => $admin_group_name['name'],
151
									'CHECKED' => ' checked="checked"'
152
									)
153
							);
154
	$template->parse('group_list', 'group_list_block', true);
155
	while($group = $get_groups->fetchRow()) {
156
		// check if the user is a member of this group
157
		$flag_disabled = '';
158
		$flag_checked =  '';
159
		$flag_cursor =   'pointer';
160
		$flag_color =    '';
161
		if (in_array($group["group_id"], $admin->get_groups_id())) {
162
			$flag_disabled = ''; //' disabled';
163
			$flag_checked =  ''; //' checked';
164
			$flag_cursor =   'default';
165
			$flag_color =    '000000';
166
		}
167
168
		// Check if the group is allowed to edit pages
169
		$system_permissions = explode(',', $group['system_permissions']);
170
		if(is_numeric(array_search('pages_modify', $system_permissions))) {
171
			$template->set_var(array(
172
											'ID' => $group['group_id'],
173
											'TOGGLE' => $group['group_id'],
174
											'DISABLED' => $flag_disabled,
175
											'LINK_COLOR' => $flag_color,
176
											'CURSOR' => $flag_cursor,
177
											'NAME' => $group['name'],
178
											'CHECKED' => $flag_checked
179
											)
180
									);
181
			if(is_numeric(array_search($group['group_id'], $admin_groups))) {
182
				$template->set_var('CHECKED', ' checked="checked"');
183
			} else {
184
				if (!$flag_checked) $template->set_var('CHECKED', '');
185
			}
186
			$template->parse('group_list', 'group_list_block', true);
187
		}
188
	}
189
// Group list 2 (viewing_groups)
190
	$viewing_groups = explode(',', str_replace('_', '', $results_array['viewing_groups']));
191
192
    $sql = 'SELECT * FROM `'.TABLE_PREFIX.'groups`';
193
    $get_groups = $database->query($sql);
194
195
	$template->set_block('main_block', 'group_list_block2', 'group_list2');
196
	// Insert admin group and current group first
197
	$admin_group_name = $get_groups->fetchRow();
198
	$template->set_var(array(
199
									'ID' => 1,
200
									'TOGGLE' => '',
201
									'DISABLED' => ' disabled="disabled"',
202
									'LINK_COLOR' => '000000',
203
									'CURSOR' => 'default',
204
									'NAME' => $admin_group_name['name'],
205
									'CHECKED' => ' checked="checked"'
206
									)
207
							);
208
	$template->parse('group_list2', 'group_list_block2', true);
209
210
	while($group = $get_groups->fetchRow())
211
    {
212
		// check if the user is a member of this group
213
		$flag_disabled = '';
214
		$flag_checked =  '';
215
		$flag_cursor =   'pointer';
216
		$flag_color =    '';
217
		if (in_array($group["group_id"], $admin->get_groups_id()))
218
        {
219
			$flag_disabled = ''; //' disabled';
220
			$flag_checked =  ''; //' checked';
221
			$flag_cursor =   'default';
222
			$flag_color =    '000000';
223
		}
224
225
		$template->set_var(array(
226
										'ID' => $group['group_id'],
227
										'TOGGLE' => $group['group_id'],
228
										'DISABLED' => $flag_disabled,
229
										'LINK_COLOR' => $flag_color,
230
										'CURSOR' => $flag_cursor,
231
										'NAME' => $group['name'],
232
										'CHECKED' => $flag_checked
233
										)
234
								);
235
		if(is_numeric(array_search($group['group_id'], $viewing_groups)))
236
        {
237
			$template->set_var('CHECKED', 'checked="checked"');
238
		} else {
239
			if (!$flag_checked) {$template->set_var('CHECKED', '');}
240
		}
241
242
		$template->parse('group_list2', 'group_list_block2', true);
243
244
	}
245
246
// Show private viewers
247
if($results_array['visibility'] == 'private' OR $results_array['visibility'] == 'registered')
248
{
249
	$template->set_var('DISPLAY_VIEWERS', '');
250
} else {
251
	$template->set_var('DISPLAY_VIEWERS', 'display:none;');
252
}
253
254
//-- insert page_code 20090904-->
255
$template->set_var('DISPLAY_CODE_PAGE_LIST', ' id="multi_lingual" style="display:none;"');
256
257
// Work-out if page languages feature is enabled
258
if((defined('PAGE_LANGUAGES') && PAGE_LANGUAGES) && $field_set && file_exists(WB_PATH.'/modules/mod_multilingual/update_keys.php') )
259
{
260
    // workout field is set but module missing
261
    $TEXT['PAGE_CODE'] = empty($TEXT['PAGE_CODE']) ? 'Pagecode' : $TEXT['PAGE_CODE'];
262
	$template->set_var( array(
263
            'DISPLAY_CODE_PAGE_LIST' => ' id="multi_lingual"',
264
            'TEXT_PAGE_CODE' => '<a href="'.WB_URL.'/modules/mod_multilingual/update_keys.php?page_id='.$page_id.'">'.$TEXT['PAGE_CODE'].'</a>'
265
        )
266
    );
267
268
	// Page_code list
269
   /* 	$database = new database();  */
270
	function page_code_list($parent)
271
    {
272
		global $admin, $database, $template, $results_array, $pageCode;
273
		$default_language = DEFAULT_LANGUAGE;
274
275
        $sql = 'SELECT * FROM `'.TABLE_PREFIX.'pages` WHERE `parent` = '.$parent.' AND `language` = "'.$default_language.'" ORDER BY `position` ASC';
276
        $get_pages = $database->query($sql);
277
278
		while($page = $get_pages->fetchRow())
279
        {
280
			if(($admin->page_is_visible($page)==false) && ($page['visibility'] <> 'none') ) { continue; }
281
282
			$template->set_var('FLAG_CODE_ICON',' none ');
283
			if( $page['parent'] == 0 )
284
            {
285
				$template->set_var('FLAG_CODE_ICON','url('.THEME_URL.'/images/flags/'.strtolower($page['language']).'.png)');
286
			}
287
288
			// If the current page cannot be parent, then its children neither
289
			$list_next_level = true;
290
			// Stop users from adding pages with a level of more than the set page level limit
291
			if($page['level']+1 < PAGE_LEVEL_LIMIT)
292
            {
293
				// Get user perms
294
				$admin_groups = explode(',', str_replace('_', '', $page['admin_groups']));
295
				$admin_users = explode(',', str_replace('_', '', $page['admin_users']));
296
297
				$in_group = FALSE;
298
				foreach($admin->get_groups_id() as $cur_gid)
299
                {
300
					if (in_array($cur_gid, $admin_groups))
301
					{
302
						$in_group = TRUE;
303
					}
304
				}
305
306
				if(($in_group) OR is_numeric(array_search($admin->get_user_id(), $admin_users)))
307
                {
308
					$can_modify = true;
309
				} else {
310
					$can_modify = false;
311
				}
312
313
				$title_prefix = '';
314
				for($i = 1; $i <= $page['level']; $i++) { $title_prefix .= ' - - &nbsp;'; }
315
                // $space = str_repeat('&nbsp;', 3);  $space.'&lt;'..'&gt;'
316
				$template->set_var(array(
317
										'VALUE' => $page['page_code'],
318
                                        'PAGE_VALUE' => $title_prefix.$page['menu_title'],
319
										'PAGE_CODE' => $title_prefix.$page['page_id']
320
										)
321
								);
322
				if($results_array['page_code'] == $page['page_code'])
323
                {
324
					$template->set_var('SELECTED', ' selected="selected"');
325
				} elseif($results_array['page_code'] == $page['page_code'])
326
                {
327
					$template->set_var('SELECTED', ' disabled="disabled" class="disabled"');
328
					$list_next_level=false;
329
				} elseif($can_modify != true)
330
                {
331
					$template->set_var('SELECTED', ' disabled="disabled" class="disabled"');
332
				} else {
333
					$template->set_var('SELECTED', '');
334
				}
335
				$template->parse('page_code_list', 'page_code_list_block', true);
336
			}
337
			if ($list_next_level)
338
				page_code_list($page['page_id']);
339
		}
340
	}
341
342
	// Insert code_page values from page to modify
343
	$template->set_block('main_block', 'page_code_list_block', 'page_code_list');
344
	if($admin->get_permission('pages_add_l0') == true OR $results_array['level'] == 0) {
345
		if($results_array['parent'] == 0) { $selected = ' selected'; } else { $selected = ''; }
346
		$template->set_var(array(
347
									'VALUE' => '',
348
									'PAGE_CODE' => $TEXT['NONE'],
349
                                    'PAGE_VALUE' => '',
350
									'SELECTED' => $selected
351
								)
352
							);
353
		$template->parse('page_code_list', 'page_code_list_block', true);
354
	}
355
	// get pagecode form this page_id
356
   	page_code_list(0);
357
}
358
//-- page code -->
359
360
// Parent page list
361
/* $database = new database();  */
362
function parent_list($parent)
363
{
364
	global $admin, $database, $template, $results_array,$field_set;
365
366
    $sql = 'SELECT * FROM `'.TABLE_PREFIX.'pages` WHERE `parent` = '.$parent.' ORDER BY `position` ASC';
367
    $get_pages = $database->query($sql);
368
369
	while($page = $get_pages->fetchRow())
370
    {
371
		if($admin->page_is_visible($page)==false)
372
        {
373
          continue;
374
        }
375
376
		// if parent = 0 set flag_icon
377
		$template->set_var('FLAG_ROOT_ICON',' none ');
378
		if( $page['parent'] == 0  && $field_set)
379
        {
380
			$template->set_var('FLAG_ROOT_ICON','url('.THEME_URL.'/images/flags/'.strtolower($page['language']).'.png)');
381
		}
382
		// If the current page cannot be parent, then its children neither
383
		$list_next_level = true;
384
		// Stop users from adding pages with a level of more than the set page level limit
385
		if($page['level']+1 < PAGE_LEVEL_LIMIT)
386
        {
387
			// Get user perms
388
			$admin_groups = explode(',', str_replace('_', '', $page['admin_groups']));
389
			$admin_users = explode(',', str_replace('_', '', $page['admin_users']));
390
			$in_group = FALSE;
391
			foreach($admin->get_groups_id() as $cur_gid)
392
            {
393
				if (in_array($cur_gid, $admin_groups))
394
                {
395
					$in_group = TRUE;
396
				}
397
			}
398
			if(($in_group) OR is_numeric(array_search($admin->get_user_id(), $admin_users)))
399
            {
400
				$can_modify = true;
401
			} else {
402
				$can_modify = false;
403
			}
404
			// Title -'s prefix
405
			$title_prefix = '';
406
			for($i = 1; $i <= $page['level']; $i++) { $title_prefix .= ' - '; }
407
			$template->set_var(array(
408
								'ID' => $page['page_id'],
409
								'TITLE' => ($title_prefix.$page['menu_title']),
410
								'MENU-TITLE' => ($title_prefix.$page['menu_title']),
411
								'PAGE-TITLE' => ($title_prefix.$page['page_title']),
412
								'FLAG_ICON' => ' none ',
413
								));
414
415
			if($results_array['parent'] == $page['page_id'])
416
            {
417
				$template->set_var('SELECTED', ' selected="selected"');
418
			} elseif($results_array['page_id'] == $page['page_id'])
419
            {
420
				$template->set_var('SELECTED', ' disabled="disabled" class="disabled"');
421
				$list_next_level=false;
422
			} elseif($can_modify != true)
423
            {
424
				$template->set_var('SELECTED', ' disabled="disabled" class="disabled"');
425
			} else {
426
				$template->set_var('SELECTED', '');
427
			}
428
			$template->parse('page_list2', 'page_list_block2', true);
429
		}
430
		if ($list_next_level)
431
        {
432
          parent_list($page['page_id']);
433
        }
434
435
	}
436
}
437
438
$template->set_block('main_block', 'page_list_block2', 'page_list2');
439
if($admin->get_permission('pages_add_l0') == true OR $results_array['level'] == 0) {
440
	if($results_array['parent'] == 0)
441
    {
442
		$selected = ' selected="selected"';
443
	} else {
444
		$selected = '';
445
	}
446
	$template->set_var(array(
447
						'ID' => '0',
448
						'TITLE' => $TEXT['NONE'],
449
						'SELECTED' => $selected
450
						) );
451
	$template->parse('page_list2', 'page_list_block2', true);
452
}
453
parent_list(0);
454
455
if($modified_ts == 'Unknown')
456
{
457
	$template->set_var('DISPLAY_MODIFIED', 'hide');
458
} else {
459
	$template->set_var('DISPLAY_MODIFIED', '');
460
}
461
462
// Templates list
463
$template->set_block('main_block', 'template_list_block', 'template_list');
464
465
$sql = 'SELECT * FROM `'.TABLE_PREFIX.'addons` WHERE `type` = "template" AND `function` = "template" order by `name`';
466
$result = $database->query($sql);
467
468
if($result->numRows() > 0)
469
{
470
	while($addon = $result->fetchRow())
471
    {
472
		// Check if the user has perms to use this template
473
		if($addon['directory'] == $results_array['template'] OR $admin->get_permission($addon['directory'], 'template') == true)
474
        {
475
			$template->set_var('VALUE', $addon['directory']);
476
			$template->set_var('NAME', $addon['name']);
477
			if($addon['directory'] == $results_array['template'])
478
            {
479
				$template->set_var('SELECTED', ' selected="selected"');
480
			} else {
481
				$template->set_var('SELECTED', '');
482
			}
483
			$template->parse('template_list', 'template_list_block', true);
484
		}
485
	}
486
}
487
488
// Menu list
489
if(MULTIPLE_MENUS == false)
490
{
491
	$template->set_var('DISPLAY_MENU_LIST', 'display:none;');
492
}
493
// Include template info file (if it exists)
494
if($results_array['template'] != '')
495
{
496
	$template_location = WB_PATH.'/templates/'.$results_array['template'].'/info.php';
497
} else {
498
	$template_location = WB_PATH.'/templates/'.DEFAULT_TEMPLATE.'/info.php';
499
}
500
if(file_exists($template_location))
501
{
502
	require($template_location);
503
}
504
// Check if $menu is set
505
if(!isset($menu[1]) OR $menu[1] == '')
506
{
507
	// Make our own menu list
508
	$menu[1] = $TEXT['MAIN'];
509
}
510
// Add menu options to the list
511
$template->set_block('main_block', 'menu_list_block', 'menu_list');
512
foreach($menu AS $number => $name)
513
{
514
	$template->set_var('NAME', $name);
515
	$template->set_var('VALUE', $number);
516
	if($results_array['menu'] == $number)
517
    {
518
		$template->set_var('SELECTED', ' selected="selected"');
519
	} else {
520
		$template->set_var('SELECTED', '');
521
	}
522
	$template->parse('menu_list', 'menu_list_block', true);
523
}
524
525
// Insert language values
526
$template->set_block('main_block', 'language_list_block', 'language_list');
527
528
$sql = 'SELECT * FROM `'.TABLE_PREFIX.'addons` WHERE `type` = "language" ORDER BY `name`';
529
$result = $database->query($sql);
530
531
if($result->numRows() > 0)
532
{
533
	while($addon = $result->fetchRow())
534
    {
535
		$l_codes[$addon['name']] = $addon['directory'];
536
		$l_names[$addon['name']] = entities_to_7bit($addon['name']); // sorting-problem workaround
537
	}
538
	asort($l_names);
539
	foreach($l_names as $l_name=>$v)
540
    {
541
		// Insert code and name
542
		$template->set_var(array(
543
								'VALUE' => $l_codes[$l_name],
544
								'NAME' => $l_name,
545
								'FLAG_LANG_ICONS' => 'url('.THEME_URL.'/images/flags/'.strtolower($l_codes[$l_name]).'.png)',
546
								));
547
		// Check if it is selected
548
		if($results_array['language'] == $l_codes[$l_name])
549
        {
550
			$template->set_var('SELECTED', ' selected="selected"');
551
		} else {
552
			$template->set_var('SELECTED', '');
553
		}
554
		$template->parse('language_list', 'language_list_block', true);
555
	}
556
}
557
558
// Select disabled if searching is disabled
559
if($results_array['searching'] == 0)
560
{
561
	$template->set_var('SEARCHING_DISABLED', ' selected="selected"');
562
}
563
// Select what the page target is
564
switch ($results_array['target'])
565
{
566
	case '_top':
567
		$template->set_var('TOP_SELECTED', ' selected="selected"');
568
		break;
569
	case '_self':
570
		$template->set_var('SELF_SELECTED', ' selected="selected"');
571
		break;
572
	case '_blank':
573
		$template->set_var('BLANK_SELECTED', ' selected="selected"');
574
		break;
575
}
576
577
// Insert language text
578
$template->set_var(array(
579
				'HEADING_MODIFY_PAGE_SETTINGS' => $HEADING['MODIFY_PAGE_SETTINGS'],
580
				'TEXT_CURRENT_PAGE' => $TEXT['CURRENT_PAGE'],
581
				'TEXT_MODIFY' => $TEXT['MODIFY'],
582
				'TEXT_MODIFY_PAGE' => $HEADING['MODIFY_PAGE'],
583
				'LAST_MODIFIED' => $MESSAGE['PAGES']['LAST_MODIFIED'],
584
				'TEXT_PAGE_TITLE' => $TEXT['PAGE_TITLE'],
585
				'TEXT_MENU_TITLE' => $TEXT['MENU_TITLE'],
586
				'TEXT_TYPE' => $TEXT['TYPE'],
587
				'TEXT_MENU' => $TEXT['MENU'],
588
				'TEXT_PARENT' => $TEXT['PARENT'],
589
				'TEXT_VISIBILITY' => $TEXT['VISIBILITY'],
590
				'TEXT_PUBLIC' => $TEXT['PUBLIC'],
591
				'TEXT_PRIVATE' => $TEXT['PRIVATE'],
592
				'TEXT_REGISTERED' => $TEXT['REGISTERED'],
593
				'TEXT_NONE' => $TEXT['NONE'],
594
				'TEXT_HIDDEN' => $TEXT['HIDDEN'],
595
				'TEXT_TEMPLATE' => $TEXT['TEMPLATE'],
596
				'TEXT_TARGET' => $TEXT['TARGET'],
597
				'TEXT_SYSTEM_DEFAULT' => $TEXT['SYSTEM_DEFAULT'],
598
				'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT'],
599
				'TEXT_NEW_WINDOW' => $TEXT['NEW_WINDOW'],
600
				'TEXT_SAME_WINDOW' => $TEXT['SAME_WINDOW'],
601
				'TEXT_TOP_FRAME' => $TEXT['TOP_FRAME'],
602
				'TEXT_ADMINISTRATORS' => $TEXT['ADMINISTRATORS'],
603
				'TEXT_ALLOWED_VIEWERS' => $TEXT['ALLOWED_VIEWERS'],
604
				'TEXT_DESCRIPTION' => $TEXT['DESCRIPTION'],
605
				'TEXT_KEYWORDS' => $TEXT['KEYWORDS'],
606
				'TEXT_SEARCHING' => $TEXT['SEARCHING'],
607
				'TEXT_LANGUAGE' => $TEXT['LANGUAGE'],
608
				'TEXT_ENABLED' => $TEXT['ENABLED'],
609
				'TEXT_DISABLED' => $TEXT['DISABLED'],
610
				'TEXT_SAVE' => $TEXT['SAVE'],
611
				'TEXT_RESET' => $TEXT['RESET'],
612
				'LAST_MODIFIED' => $MESSAGE['PAGES']['LAST_MODIFIED'],
613
				'HEADING_MODIFY_PAGE' => $HEADING['MODIFY_PAGE']
614
			) );
615
616
$template->parse('main', 'main_block', false);
617
$template->pparse('output', 'page');
618
619
// Print admin footer
620
$admin->print_footer();
621
622 1009 Ruebenwurz
?>