1 |
1 |
<?php
|
|
2 |
/****************************************************************************
|
|
3 |
* SVN Version information:
|
|
4 |
*
|
|
5 |
* $Id$
|
|
6 |
*
|
|
7 |
*
|
|
8 |
*
|
|
9 |
*****************************************************************************
|
|
10 |
* WebsiteBaker
|
|
11 |
*
|
|
12 |
* WebsiteBaker Project <http://www.websitebaker2.org/>
|
|
13 |
* Copyright (C) 2009, Website Baker Org. e.V.
|
|
14 |
* http://start.websitebaker2.org/impressum-datenschutz.php
|
|
15 |
* Copyright (C) 2004-2009, Ryan Djurovich
|
|
16 |
*
|
|
17 |
* About WebsiteBaker
|
|
18 |
*
|
|
19 |
* Website Baker is a PHP-based Content Management System (CMS)
|
|
20 |
* designed with one goal in mind: to enable its users to produce websites
|
|
21 |
* with ease.
|
|
22 |
*
|
|
23 |
*****************************************************************************
|
|
24 |
*
|
|
25 |
*****************************************************************************
|
|
26 |
* LICENSE INFORMATION
|
|
27 |
*
|
|
28 |
* WebsiteBaker is free software; you can redistribute it and/or
|
|
29 |
* modify it under the terms of the GNU General Public License
|
|
30 |
* as published by the Free Software Foundation; either version 2
|
|
31 |
* of the License, or (at your option) any later version.
|
|
32 |
*
|
|
33 |
* WebsiteBaker is distributed in the hope that it will be useful,
|
|
34 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
35 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
36 |
* See the GNU General Public License for more details.
|
|
37 |
*
|
|
38 |
* You should have received a copy of the GNU General Public License
|
|
39 |
* along with this program; if not, write to the Free Software
|
|
40 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
41 |
****************************************************************************
|
|
42 |
*
|
|
43 |
* WebsiteBaker Extra Information
|
|
44 |
*
|
|
45 |
*
|
|
46 |
*
|
|
47 |
*
|
|
48 |
*
|
|
49 |
*
|
|
50 |
*
|
|
51 |
*****************************************************************************/
|
|
52 |
/**
|
|
53 |
*
|
|
54 |
* @category frontend
|
|
55 |
* @package framework
|
|
56 |
* @author Ryan Djurovich
|
|
57 |
* @copyright 2004-2009, Ryan Djurovich
|
|
58 |
* @copyright 2009-2010, Website Baker Org. e.V.
|
|
59 |
* @version $Id$
|
|
60 |
* @platform WebsiteBaker 2.8.x
|
|
61 |
* @requirements >= PHP 4.3.4
|
|
62 |
* @license http://www.gnu.org/licenses/gpl.html
|
|
63 |
*
|
|
64 |
*/
|
2 |
65 |
|
3 |
|
// $Id$
|
4 |
|
|
5 |
66 |
/*
|
6 |
67 |
|
7 |
|
Website Baker Project <http://www.websitebaker.org/>
|
8 |
|
Copyright (C) 2004-2009, 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 |
|
/*
|
27 |
|
|
28 |
68 |
Frontend class
|
29 |
69 |
|
30 |
70 |
*/
|
... | ... | |
152 |
192 |
}
|
153 |
193 |
// Begin code to set details as either variables of constants
|
154 |
194 |
// Page ID
|
155 |
|
define('PAGE_ID', $this->page['page_id']);
|
|
195 |
if(!defined('PAGE_ID')) {define('PAGE_ID', $this->page['page_id']);}
|
156 |
196 |
// Page Title
|
157 |
|
define('PAGE_TITLE', $this->page['page_title']);
|
|
197 |
if(!defined('PAGE_TITLE')) {define('PAGE_TITLE', $this->page['page_title']);}
|
158 |
198 |
$this->page_title=PAGE_TITLE;
|
159 |
199 |
// Menu Title
|
160 |
200 |
$menu_title = $this->page['menu_title'];
|
161 |
201 |
if($menu_title != '') {
|
162 |
|
define('MENU_TITLE', $menu_title);
|
|
202 |
if(!defined('MENU_TITLE')) {define('MENU_TITLE', $menu_title);}
|
163 |
203 |
} else {
|
164 |
|
define('MENU_TITLE', PAGE_TITLE);
|
|
204 |
if(!defined('MENU_TITLE')) {define('MENU_TITLE', PAGE_TITLE);}
|
165 |
205 |
}
|
166 |
|
$this->menu_title=MENU_TITLE;
|
|
206 |
$this->menu_title = MENU_TITLE;
|
167 |
207 |
// Page parent
|
168 |
|
define('PARENT', $this->page['parent']);
|
|
208 |
if(!defined('PARENT')) {define('PARENT', $this->page['parent']);}
|
169 |
209 |
$this->parent=$this->page['parent'];
|
170 |
210 |
// Page root parent
|
171 |
|
define('ROOT_PARENT', $this->page['root_parent']);
|
|
211 |
if(!defined('ROOT_PARENT')) {define('ROOT_PARENT', $this->page['root_parent']);}
|
172 |
212 |
$this->root_parent=$this->page['root_parent'];
|
173 |
213 |
// Page level
|
174 |
|
define('LEVEL', $this->page['level']);
|
|
214 |
if(!defined('LEVEL')) {define('LEVEL', $this->page['level']);}
|
175 |
215 |
$this->level=$this->page['level'];
|
176 |
216 |
// Page visibility
|
177 |
|
define('VISIBILITY', $this->page['visibility']);
|
|
217 |
if(!defined('VISIBILITY')) {define('VISIBILITY', $this->page['visibility']);}
|
178 |
218 |
$this->visibility=$this->page['visibility'];
|
179 |
219 |
// Page trail
|
180 |
220 |
foreach(explode(',', $this->page['page_trail']) AS $pid) {
|
update header