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