Revision 1203
Added by Luisehahne about 15 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
12 | 12 |
|
13 | 13 |
------------------------------------- 2.8.1 ------------------------------------- |
14 | 14 |
29-Nov-2009 Dietmar Woellbrink (Luisehahne) |
15 |
! update module info.php (thanks to Waldschwein) |
|
16 |
29-Nov-2009 Dietmar Woellbrink (Luisehahne) |
|
15 | 17 |
! added missing swobject plugin in FCKeditor |
16 | 18 |
! bug fixed in flvplayer |
17 | 19 |
29-Nov-2009 Dietmar Woellbrink (Luisehahne) |
branches/2.8.x/wb/admin/pages/settings2.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
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 |
// Get page id |
|
27 |
if(!isset($_POST['page_id']) OR !is_numeric($_POST['page_id'])) { |
|
28 |
header("Location: index.php"); |
|
29 |
exit(0); |
|
30 |
} else { |
|
31 |
$page_id = $_POST['page_id']; |
|
32 |
} |
|
33 |
|
|
34 |
// Create new admin object and print admin header |
|
35 |
require('../../config.php'); |
|
36 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
37 |
$admin = new admin('Pages', 'pages_settings'); |
|
38 |
|
|
39 |
// Include the WB functions file |
|
40 |
require_once(WB_PATH.'/framework/functions.php'); |
|
41 |
|
|
42 |
// Get values |
|
43 |
$page_title = $admin->get_post_escaped('page_title'); |
|
44 |
$page_title = htmlspecialchars($page_title); |
|
45 |
$menu_title = $admin->get_post_escaped('menu_title'); |
|
46 |
$menu_title = htmlspecialchars($menu_title); |
|
47 |
$description = htmlspecialchars($admin->add_slashes($admin->get_post('description'))); |
|
48 |
$keywords = htmlspecialchars($admin->add_slashes($admin->get_post('keywords'))); |
|
49 |
$parent = $admin->get_post_escaped('parent'); |
|
50 |
$visibility = $admin->get_post_escaped('visibility'); |
|
51 |
$template = $admin->get_post_escaped('template'); |
|
52 |
$target = $admin->get_post_escaped('target'); |
|
53 |
$admin_groups = $admin->get_post_escaped('admin_groups'); |
|
54 |
$viewing_groups = $admin->get_post_escaped('viewing_groups'); |
|
55 |
$searching = $admin->get_post_escaped('searching'); |
|
56 |
$language = $admin->get_post_escaped('language'); |
|
57 |
$menu = $admin->get_post_escaped('menu'); |
|
58 |
|
|
59 |
// Validate data |
|
60 |
if($page_title == '' || substr($page_title,0,1)=='.') { |
|
61 |
$admin->print_error($MESSAGE['PAGES']['BLANK_PAGE_TITLE']); |
|
62 |
} |
|
63 |
if($menu_title == '' || substr($menu_title,0,1)=='.') { |
|
64 |
$admin->print_error($MESSAGE['PAGES']['BLANK_MENU_TITLE']); |
|
65 |
} |
|
66 |
|
|
67 |
// Get existing perms |
|
68 |
$database = new database(); |
|
69 |
$results = $database->query("SELECT parent,link,position,admin_groups,admin_users FROM ".TABLE_PREFIX."pages WHERE page_id = '$page_id'"); |
|
70 |
$results_array = $results->fetchRow(); |
|
71 |
$old_parent = $results_array['parent']; |
|
72 |
$old_link = $results_array['link']; |
|
73 |
$old_position = $results_array['position']; |
|
74 |
$old_admin_groups = explode(',', str_replace('_', '', $results_array['admin_groups'])); |
|
75 |
$old_admin_users = explode(',', str_replace('_', '', $results_array['admin_users'])); |
|
76 |
|
|
77 |
$in_old_group = FALSE; |
|
78 |
foreach($admin->get_groups_id() as $cur_gid){ |
|
79 |
if (in_array($cur_gid, $old_admin_groups)) { |
|
80 |
$in_old_group = TRUE; |
|
81 |
} |
|
82 |
} |
|
83 |
if((!$in_old_group) AND !is_numeric(array_search($admin->get_user_id(), $old_admin_users))) { |
|
84 |
$admin->print_error($MESSAGE['PAGES']['INSUFFICIENT_PERMISSIONS']); |
|
85 |
} |
|
86 |
|
|
87 |
// Setup admin groups |
|
88 |
$admin_groups[] = 1; |
|
89 |
//if(!in_array(1, $admin->get_groups_id())) { |
|
90 |
// $admin_groups[] = implode(",",$admin->get_groups_id()); |
|
91 |
//} |
|
92 |
$admin_groups = implode(',', $admin_groups); |
|
93 |
// Setup viewing groups |
|
94 |
$viewing_groups[] = 1; |
|
95 |
//if(!in_array(1, $admin->get_groups_id())) { |
|
96 |
// $viewing_groups[] = implode(",",$admin->get_groups_id()); |
|
97 |
//} |
|
98 |
$viewing_groups = implode(',', $viewing_groups); |
|
99 |
|
|
100 |
// If needed, get new order |
|
101 |
if($parent != $old_parent) { |
|
102 |
// Include ordering class |
|
103 |
require(WB_PATH.'/framework/class.order.php'); |
|
104 |
$order = new order(TABLE_PREFIX.'pages', 'position', 'page_id', 'parent'); |
|
105 |
// Get new order |
|
106 |
$position = $order->get_new($parent); |
|
107 |
// Clean new order |
|
108 |
$order->clean($parent); |
|
109 |
} else { |
|
110 |
$position = $old_position; |
|
111 |
} |
|
112 |
|
|
113 |
// Work out level and root parent |
|
114 |
if ($parent!='0') { |
|
115 |
$level = level_count($parent)+1; |
|
116 |
$root_parent = root_parent($parent); |
|
117 |
} |
|
118 |
else { |
|
119 |
$level = '0'; |
|
120 |
$root_parent = '0'; |
|
121 |
} |
|
122 |
|
|
123 |
// Work-out what the link should be |
|
124 |
if($parent == '0') { |
|
125 |
$link = '/'.page_filename($menu_title); |
|
126 |
// rename menu titles: index && intro to prevent clashes with intro page feature and WB core file /pages/index.php |
|
127 |
if($link == '/index' || $link == '/intro') { |
|
128 |
$link .= '_' .$page_id; |
|
129 |
$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($menu_title).'_'.$page_id .PAGE_EXTENSION; |
|
130 |
} else { |
|
131 |
$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($menu_title).PAGE_EXTENSION; |
|
132 |
} |
|
133 |
} else { |
|
134 |
$parent_section = ''; |
|
135 |
$parent_titles = array_reverse(get_parent_titles($parent)); |
|
136 |
foreach($parent_titles AS $parent_title) { |
|
137 |
$parent_section .= page_filename($parent_title).'/'; |
|
138 |
} |
|
139 |
if($parent_section == '/') { $parent_section = ''; } |
|
140 |
$link = '/'.$parent_section.page_filename($menu_title); |
|
141 |
$filename = WB_PATH.PAGES_DIRECTORY.'/'.$parent_section.page_filename($menu_title).PAGE_EXTENSION; |
|
142 |
} |
|
143 |
|
|
144 |
// Check if a page with same page filename exists |
|
145 |
$database = new database(); |
|
146 |
$get_same_page = $database->query("SELECT page_id,page_title FROM ".TABLE_PREFIX."pages WHERE link = '$link' and page_id != '$page_id'"); |
|
147 |
if($get_same_page->numRows() > 0) { |
|
148 |
$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']); |
|
149 |
} |
|
150 |
|
|
151 |
// Update page with new order |
|
152 |
$query = "UPDATE ".TABLE_PREFIX."pages SET parent = '$parent', position = '$position' WHERE page_id = '$page_id'"; |
|
153 |
$database = new database(); |
|
154 |
$database->query($query); |
|
155 |
|
|
156 |
// Get page trail |
|
157 |
$page_trail = get_page_trail($page_id); |
|
158 |
|
|
159 |
// Update page settings in the pages table |
|
160 |
$query = "UPDATE ".TABLE_PREFIX."pages SET parent = '$parent', page_title = '$page_title', menu_title = '$menu_title', menu = '$menu', level = '$level', page_trail = '$page_trail', root_parent = '$root_parent', link = '$link', template = '$template', target = '$target', description = '$description', keywords = '$keywords', position = '$position', visibility = '$visibility', searching = '$searching', language = '$language', admin_groups = '$admin_groups', viewing_groups = '$viewing_groups' WHERE page_id = '$page_id'"; |
|
161 |
$database->query($query); |
|
162 |
|
|
163 |
// Clean old order if needed |
|
164 |
if($parent != $old_parent) { |
|
165 |
$order->clean($old_parent); |
|
166 |
} |
|
167 |
|
|
168 |
/* BEGIN page "access file" code */ |
|
169 |
|
|
170 |
// Create a new file in the /pages dir if title changed |
|
171 |
if(!is_writable(WB_PATH.PAGES_DIRECTORY.'/')) { |
|
172 |
$admin->print_error($MESSAGE['PAGES']['CANNOT_CREATE_ACCESS_FILE']); |
|
173 |
} else { |
|
174 |
// First check if we need to create a new file |
|
175 |
if($old_link != $link) { |
|
176 |
// Delete old file |
|
177 |
$old_filename = WB_PATH.PAGES_DIRECTORY.$old_link.PAGE_EXTENSION; |
|
178 |
if(file_exists($old_filename)) { |
|
179 |
unlink($old_filename); |
|
180 |
} |
|
181 |
// Create access file |
|
182 |
create_access_file($filename,$page_id,$level); |
|
183 |
// Move a directory for this page |
|
184 |
if(file_exists(WB_PATH.PAGES_DIRECTORY.$old_link.'/') AND is_dir(WB_PATH.PAGES_DIRECTORY.$old_link.'/')) { |
|
185 |
rename(WB_PATH.PAGES_DIRECTORY.$old_link.'/', WB_PATH.PAGES_DIRECTORY.$link.'/'); |
|
186 |
} |
|
187 |
// Update any pages that had the old link with the new one |
|
188 |
$old_link_len = strlen($old_link); |
|
189 |
$query_subs = $database->query("SELECT page_id,link,level FROM ".TABLE_PREFIX."pages WHERE link LIKE '%$old_link/%' ORDER BY LEVEL ASC"); |
|
190 |
if($query_subs->numRows() > 0) { |
|
191 |
while($sub = $query_subs->fetchRow()) { |
|
192 |
// Double-check to see if it contains old link |
|
193 |
if(substr($sub['link'], 0, $old_link_len) == $old_link) { |
|
194 |
// Get new link |
|
195 |
$replace_this = $old_link; |
|
196 |
$old_sub_link_len =strlen($sub['link']); |
|
197 |
$new_sub_link = $link.'/'.substr($sub['link'],$old_link_len+1,$old_sub_link_len); |
|
198 |
// Work out level |
|
199 |
$new_sub_level = level_count($sub['page_id']); |
|
200 |
// Update level and link |
|
201 |
$database->query("UPDATE ".TABLE_PREFIX."pages SET link = '$new_sub_link', level = '$new_sub_level' WHERE page_id = '".$sub['page_id']."' LIMIT 1"); |
|
202 |
// Re-write the access file for this page |
|
203 |
$old_subpage_file = WB_PATH.PAGES_DIRECTORY.$new_sub_link.PAGE_EXTENSION; |
|
204 |
if(file_exists($old_subpage_file)) { |
|
205 |
unlink($old_subpage_file); |
|
206 |
} |
|
207 |
create_access_file(WB_PATH.PAGES_DIRECTORY.$new_sub_link.PAGE_EXTENSION, $sub['page_id'], $new_sub_level); |
|
208 |
} |
|
209 |
} |
|
210 |
} |
|
211 |
} |
|
212 |
} |
|
213 |
|
|
214 |
// Function to fix page trail of subs |
|
215 |
function fix_page_trail($parent,$root_parent) { |
|
216 |
// Get objects and vars from outside this function |
|
217 |
global $admin, $template, $database, $TEXT, $MESSAGE; |
|
218 |
// Get page list from database |
|
219 |
$database = new database(); |
|
220 |
$query = "SELECT page_id FROM ".TABLE_PREFIX."pages WHERE parent = '$parent'"; |
|
221 |
$get_pages = $database->query($query); |
|
222 |
// Insert values into main page list |
|
223 |
if($get_pages->numRows() > 0) { |
|
224 |
while($page = $get_pages->fetchRow()) { |
|
225 |
// Fix page trail |
|
226 |
$database->query("UPDATE ".TABLE_PREFIX."pages SET ".($root_parent != 0 ?"root_parent = '$root_parent', ":"")." page_trail = '".get_page_trail($page['page_id'])."' WHERE page_id = '".$page['page_id']."'"); |
|
227 |
// Run this query on subs |
|
228 |
fix_page_trail($page['page_id'],$root_parent); |
|
229 |
} |
|
230 |
} |
|
231 |
} |
|
232 |
// Fix sub-pages page trail |
|
233 |
fix_page_trail($page_id,$root_parent); |
|
234 |
|
|
235 |
/* END page "access file" code */ |
|
236 |
|
|
237 |
// Check if there is a db error, otherwise say successful |
|
238 |
if($database->is_error()) { |
|
239 |
$admin->print_error($database->get_error(), ADMIN_URL.'/pages/settings.php?page_id='.$page_id); |
|
240 |
} else { |
|
241 |
$admin->print_success($MESSAGE['PAGES']['SAVED_SETTINGS'], ADMIN_URL.'/pages/index.php'); |
|
242 |
} |
|
243 |
|
|
244 |
// Print admin footer |
|
245 |
$admin->print_footer(); |
|
246 |
|
|
247 |
?> |
|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
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 |
* @category backend |
|
25 |
* @package pages |
|
26 |
* @author(s) Dietmar W?llbrink <Luisehahne>, Dietrich Roland Pehlke <Aldus> |
|
27 |
* @platform WB 2.8.x |
|
28 |
* @require PHP 5.2.11 |
|
29 |
* @license http://www.gnu.org/licenses/gpl.html |
|
30 |
* @link http://project.websitebaker2.org/browser/branches/2.8.x/wb/pages |
|
31 |
* @changeset 2009/11/30 workout for page_code field, ex catchwords and multilangual |
|
32 |
|
|
33 |
*/ |
|
34 |
|
|
35 |
// Get page id |
|
36 |
if(!isset($_POST['page_id']) OR !is_numeric($_POST['page_id'])) { |
|
37 |
header("Location: index.php"); |
|
38 |
exit(0); |
|
39 |
} else { |
|
40 |
$page_id = $_POST['page_id']; |
|
41 |
} |
|
42 |
|
|
43 |
// Create new admin object and print admin header |
|
44 |
require('../../config.php'); |
|
45 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
46 |
$admin = new admin('Pages', 'pages_settings'); |
|
47 |
|
|
48 |
// Include the WB functions file |
|
49 |
require_once(WB_PATH.'/framework/functions.php'); |
|
50 |
|
|
51 |
// Get values |
|
52 |
$page_title = $admin->get_post_escaped('page_title'); |
|
53 |
$page_title = htmlspecialchars($page_title); |
|
54 |
$menu_title = $admin->get_post_escaped('menu_title'); |
|
55 |
$menu_title = htmlspecialchars($menu_title); |
|
56 |
$page_code = $admin->get_post_escaped('page_code'); |
|
57 |
$page_code = htmlspecialchars($page_code); |
|
58 |
$description = htmlspecialchars($admin->add_slashes($admin->get_post('description'))); |
|
59 |
$keywords = htmlspecialchars($admin->add_slashes($admin->get_post('keywords'))); |
|
60 |
$parent = $admin->get_post_escaped('parent'); |
|
61 |
$visibility = $admin->get_post_escaped('visibility'); |
|
62 |
$template = $admin->get_post_escaped('template'); |
|
63 |
$target = $admin->get_post_escaped('target'); |
|
64 |
$admin_groups = $admin->get_post_escaped('admin_groups'); |
|
65 |
$viewing_groups = $admin->get_post_escaped('viewing_groups'); |
|
66 |
$searching = $admin->get_post_escaped('searching'); |
|
67 |
$language = $admin->get_post_escaped('language'); |
|
68 |
$menu = $admin->get_post_escaped('menu'); |
|
69 |
|
|
70 |
// Validate data |
|
71 |
if($page_title == '' || substr($page_title,0,1)=='.') { |
|
72 |
$admin->print_error($MESSAGE['PAGES']['BLANK_PAGE_TITLE']); |
|
73 |
} |
|
74 |
if($menu_title == '' || substr($menu_title,0,1)=='.') { |
|
75 |
$admin->print_error($MESSAGE['PAGES']['BLANK_MENU_TITLE']); |
|
76 |
} |
|
77 |
|
|
78 |
// Get existing perms |
|
79 |
$database = new database(); |
|
80 |
$results = $database->query("SELECT parent,link,position,admin_groups,admin_users FROM ".TABLE_PREFIX."pages WHERE page_id = '$page_id'"); |
|
81 |
$results_array = $results->fetchRow(); |
|
82 |
$old_parent = $results_array['parent']; |
|
83 |
$old_link = $results_array['link']; |
|
84 |
$old_position = $results_array['position']; |
|
85 |
$old_admin_groups = explode(',', str_replace('_', '', $results_array['admin_groups'])); |
|
86 |
$old_admin_users = explode(',', str_replace('_', '', $results_array['admin_users'])); |
|
87 |
|
|
88 |
// Work-out if we should check for existing page_code |
|
89 |
$field_sql = $database->query("DESCRIBE ".TABLE_PREFIX."pages page_code"); |
|
90 |
$field_set = $field_sql->numRows(); |
|
91 |
|
|
92 |
$in_old_group = FALSE; |
|
93 |
foreach($admin->get_groups_id() as $cur_gid){ |
|
94 |
if (in_array($cur_gid, $old_admin_groups)) { |
|
95 |
$in_old_group = TRUE; |
|
96 |
} |
|
97 |
} |
|
98 |
if((!$in_old_group) AND !is_numeric(array_search($admin->get_user_id(), $old_admin_users))) { |
|
99 |
$admin->print_error($MESSAGE['PAGES']['INSUFFICIENT_PERMISSIONS']); |
|
100 |
} |
|
101 |
|
|
102 |
// Setup admin groups |
|
103 |
$admin_groups[] = 1; |
|
104 |
//if(!in_array(1, $admin->get_groups_id())) { |
|
105 |
// $admin_groups[] = implode(",",$admin->get_groups_id()); |
|
106 |
//} |
|
107 |
$admin_groups = implode(',', $admin_groups); |
|
108 |
// Setup viewing groups |
|
109 |
$viewing_groups[] = 1; |
|
110 |
//if(!in_array(1, $admin->get_groups_id())) { |
|
111 |
// $viewing_groups[] = implode(",",$admin->get_groups_id()); |
|
112 |
//} |
|
113 |
$viewing_groups = implode(',', $viewing_groups); |
|
114 |
|
|
115 |
// If needed, get new order |
|
116 |
if($parent != $old_parent) { |
|
117 |
// Include ordering class |
|
118 |
require(WB_PATH.'/framework/class.order.php'); |
|
119 |
$order = new order(TABLE_PREFIX.'pages', 'position', 'page_id', 'parent'); |
|
120 |
// Get new order |
|
121 |
$position = $order->get_new($parent); |
|
122 |
// Clean new order |
|
123 |
$order->clean($parent); |
|
124 |
} else { |
|
125 |
$position = $old_position; |
|
126 |
} |
|
127 |
|
|
128 |
// Work out level and root parent |
|
129 |
if ($parent!='0') { |
|
130 |
$level = level_count($parent)+1; |
|
131 |
$root_parent = root_parent($parent); |
|
132 |
} |
|
133 |
else { |
|
134 |
$level = '0'; |
|
135 |
$root_parent = '0'; |
|
136 |
} |
|
137 |
|
|
138 |
// Work-out what the link should be |
|
139 |
if($parent == '0') { |
|
140 |
$link = '/'.page_filename($menu_title); |
|
141 |
// rename menu titles: index && intro to prevent clashes with intro page feature and WB core file /pages/index.php |
|
142 |
if($link == '/index' || $link == '/intro') { |
|
143 |
$link .= '_' .$page_id; |
|
144 |
$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($menu_title).'_'.$page_id .PAGE_EXTENSION; |
|
145 |
} else { |
|
146 |
$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($menu_title).PAGE_EXTENSION; |
|
147 |
} |
|
148 |
} else { |
|
149 |
$parent_section = ''; |
|
150 |
$parent_titles = array_reverse(get_parent_titles($parent)); |
|
151 |
foreach($parent_titles AS $parent_title) { |
|
152 |
$parent_section .= page_filename($parent_title).'/'; |
|
153 |
} |
|
154 |
if($parent_section == '/') { $parent_section = ''; } |
|
155 |
$link = '/'.$parent_section.page_filename($menu_title); |
|
156 |
$filename = WB_PATH.PAGES_DIRECTORY.'/'.$parent_section.page_filename($menu_title).PAGE_EXTENSION; |
|
157 |
} |
|
158 |
|
|
159 |
// Check if a page with same page filename exists |
|
160 |
$database = new database(); |
|
161 |
$get_same_page = $database->query("SELECT page_id,page_title FROM ".TABLE_PREFIX."pages WHERE link = '$link' and page_id != '$page_id'"); |
|
162 |
if($get_same_page->numRows() > 0) { |
|
163 |
$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']); |
|
164 |
} |
|
165 |
|
|
166 |
// Update page with new order |
|
167 |
$query = "UPDATE ".TABLE_PREFIX."pages SET parent = '$parent', position = '$position' WHERE page_id = '$page_id'"; |
|
168 |
$database = new database(); |
|
169 |
$database->query($query); |
|
170 |
|
|
171 |
// Get page trail |
|
172 |
$page_trail = get_page_trail($page_id); |
|
173 |
|
|
174 |
// Update page settings in the pages table |
|
175 |
if((defined('PAGE_LANGUAGES') && PAGE_LANGUAGES) && $field_set ) |
|
176 |
{ |
|
177 |
$query = "UPDATE ".TABLE_PREFIX."pages SET parent = '$parent', page_title = '$page_title', menu_title = '$menu_title', menu = '$menu', level = '$level', page_trail = '$page_trail', root_parent = '$root_parent', link = '$link', template = '$template', target = '$target', description = '$description', keywords = '$keywords', position = '$position', visibility = '$visibility', searching = '$searching', language = '$language', admin_groups = '$admin_groups', viewing_groups = '$viewing_groups', page_code = '$page_code' WHERE page_id = '$page_id'"; |
|
178 |
} else |
|
179 |
{ |
|
180 |
$query = "UPDATE ".TABLE_PREFIX."pages SET parent = '$parent', page_title = '$page_title', menu_title = '$menu_title', menu = '$menu', level = '$level', page_trail = '$page_trail', root_parent = '$root_parent', link = '$link', template = '$template', target = '$target', description = '$description', keywords = '$keywords', position = '$position', visibility = '$visibility', searching = '$searching', language = '$language', admin_groups = '$admin_groups', viewing_groups = '$viewing_groups' WHERE page_id = '$page_id'"; |
|
181 |
} |
|
182 |
|
|
183 |
$database->query($query); |
|
184 |
|
|
185 |
// Clean old order if needed |
|
186 |
if($parent != $old_parent) { |
|
187 |
$order->clean($old_parent); |
|
188 |
} |
|
189 |
|
|
190 |
/* BEGIN page "access file" code */ |
|
191 |
|
|
192 |
// Create a new file in the /pages dir if title changed |
|
193 |
if(!is_writable(WB_PATH.PAGES_DIRECTORY.'/')) { |
|
194 |
$admin->print_error($MESSAGE['PAGES']['CANNOT_CREATE_ACCESS_FILE']); |
|
195 |
} else { |
|
196 |
// First check if we need to create a new file |
|
197 |
if($old_link != $link) { |
|
198 |
// Delete old file |
|
199 |
$old_filename = WB_PATH.PAGES_DIRECTORY.$old_link.PAGE_EXTENSION; |
|
200 |
if(file_exists($old_filename)) { |
|
201 |
unlink($old_filename); |
|
202 |
} |
|
203 |
// Create access file |
|
204 |
create_access_file($filename,$page_id,$level); |
|
205 |
// Move a directory for this page |
|
206 |
if(file_exists(WB_PATH.PAGES_DIRECTORY.$old_link.'/') AND is_dir(WB_PATH.PAGES_DIRECTORY.$old_link.'/')) { |
|
207 |
rename(WB_PATH.PAGES_DIRECTORY.$old_link.'/', WB_PATH.PAGES_DIRECTORY.$link.'/'); |
|
208 |
} |
|
209 |
// Update any pages that had the old link with the new one |
|
210 |
$old_link_len = strlen($old_link); |
|
211 |
$query_subs = $database->query("SELECT page_id,link,level FROM ".TABLE_PREFIX."pages WHERE link LIKE '%$old_link/%' ORDER BY LEVEL ASC"); |
|
212 |
if($query_subs->numRows() > 0) { |
|
213 |
while($sub = $query_subs->fetchRow()) { |
|
214 |
// Double-check to see if it contains old link |
|
215 |
if(substr($sub['link'], 0, $old_link_len) == $old_link) { |
|
216 |
// Get new link |
|
217 |
$replace_this = $old_link; |
|
218 |
$old_sub_link_len =strlen($sub['link']); |
|
219 |
$new_sub_link = $link.'/'.substr($sub['link'],$old_link_len+1,$old_sub_link_len); |
|
220 |
// Work out level |
|
221 |
$new_sub_level = level_count($sub['page_id']); |
|
222 |
// Update level and link |
|
223 |
$database->query("UPDATE ".TABLE_PREFIX."pages SET link = '$new_sub_link', level = '$new_sub_level' WHERE page_id = '".$sub['page_id']."' LIMIT 1"); |
|
224 |
// Re-write the access file for this page |
|
225 |
$old_subpage_file = WB_PATH.PAGES_DIRECTORY.$new_sub_link.PAGE_EXTENSION; |
|
226 |
if(file_exists($old_subpage_file)) { |
|
227 |
unlink($old_subpage_file); |
|
228 |
} |
|
229 |
create_access_file(WB_PATH.PAGES_DIRECTORY.$new_sub_link.PAGE_EXTENSION, $sub['page_id'], $new_sub_level); |
|
230 |
} |
|
231 |
} |
|
232 |
} |
|
233 |
} |
|
234 |
} |
|
235 |
|
|
236 |
// Function to fix page trail of subs |
|
237 |
function fix_page_trail($parent,$root_parent) { |
|
238 |
// Get objects and vars from outside this function |
|
239 |
global $admin, $template, $database, $TEXT, $MESSAGE; |
|
240 |
// Get page list from database |
|
241 |
$database = new database(); |
|
242 |
$query = "SELECT page_id FROM ".TABLE_PREFIX."pages WHERE parent = '$parent'"; |
|
243 |
$get_pages = $database->query($query); |
|
244 |
// Insert values into main page list |
|
245 |
if($get_pages->numRows() > 0) { |
|
246 |
while($page = $get_pages->fetchRow()) { |
|
247 |
// Fix page trail |
|
248 |
$database->query("UPDATE ".TABLE_PREFIX."pages SET ".($root_parent != 0 ?"root_parent = '$root_parent', ":"")." page_trail = '".get_page_trail($page['page_id'])."' WHERE page_id = '".$page['page_id']."'"); |
|
249 |
// Run this query on subs |
|
250 |
fix_page_trail($page['page_id'],$root_parent); |
|
251 |
} |
|
252 |
} |
|
253 |
} |
|
254 |
// Fix sub-pages page trail |
|
255 |
fix_page_trail($page_id,$root_parent); |
|
256 |
|
|
257 |
/* END page "access file" code */ |
|
258 |
|
|
259 |
// Check if there is a db error, otherwise say successful |
|
260 |
if($database->is_error()) { |
|
261 |
$admin->print_error($database->get_error(), ADMIN_URL.'/pages/settings.php?page_id='.$page_id); |
|
262 |
} else { |
|
263 |
$admin->print_success($MESSAGE['PAGES']['SAVED_SETTINGS'], ADMIN_URL.'/pages/index.php'); |
|
264 |
} |
|
265 |
|
|
266 |
// Print admin footer |
|
267 |
$admin->print_footer(); |
|
268 |
|
|
269 |
?> |
branches/2.8.x/wb/modules/wrapper/info.php | ||
---|---|---|
27 | 27 |
$module_name = 'Wrapper'; |
28 | 28 |
$module_function = 'page'; |
29 | 29 |
$module_version = '2.7'; |
30 |
$module_platform = '2.7.x'; |
|
30 |
$module_platform = '2.7 | 2.8.x';
|
|
31 | 31 |
$module_author = 'Ryan Djurovich'; |
32 | 32 |
$module_license = 'GNU General Public License'; |
33 | 33 |
$module_description = 'This module allows you to wrap your site around another using an inline frame'; |
branches/2.8.x/wb/modules/menu_link/info.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
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 |
/* History: |
|
27 |
2.8 - June 2009 |
|
28 |
- Improved the pagelist (thorn) |
|
29 |
- Added different redirect types 301 or 302 (thorn) |
|
30 |
- Set platform version 2.8 |
|
31 |
|
|
32 |
2.7 - 24. Jan. 2008 - doc |
|
33 |
- added language support, changed platform to 2.7 |
|
34 |
|
|
35 |
2.6.1.1 - 16. Jan. 2008 - thorn |
|
36 |
- added table mod_menu_link |
|
37 |
- added install.php, delete.php, add.php |
|
38 |
- changed wb/index.php: redirect if page is menu_link |
|
39 |
- removed special-handling of menu_link in: admin/pages/settings2.php |
|
40 |
|
|
41 |
*/ |
|
42 |
|
|
43 |
$module_directory = 'menu_link'; |
|
44 |
$module_name = 'Menu Link'; |
|
45 |
$module_function = 'page'; |
|
46 |
$module_version = '2.8'; |
|
47 |
$module_platform = '2.8.x'; |
|
48 |
$module_author = 'Ryan Djurovich, thorn'; |
|
49 |
$module_license = 'GNU General Public License'; |
|
50 |
$module_description = 'This module allows you to insert a link into the menu.'; |
|
51 |
|
|
52 |
?> |
|
1 |
<?php
|
|
2 |
|
|
3 |
// $Id$
|
|
4 |
|
|
5 |
/*
|
|
6 |
|
|
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 |
/* History:
|
|
27 |
2.8 - June 2009
|
|
28 |
- Improved the pagelist (thorn)
|
|
29 |
- Added different redirect types 301 or 302 (thorn)
|
|
30 |
- Set platform version 2.8
|
|
31 |
|
|
32 |
2.7 - 24. Jan. 2008 - doc
|
|
33 |
- added language support, changed platform to 2.7
|
|
34 |
|
|
35 |
2.6.1.1 - 16. Jan. 2008 - thorn
|
|
36 |
- added table mod_menu_link
|
|
37 |
- added install.php, delete.php, add.php
|
|
38 |
- changed wb/index.php: redirect if page is menu_link
|
|
39 |
- removed special-handling of menu_link in: admin/pages/settings2.php
|
|
40 |
|
|
41 |
*/
|
|
42 |
|
|
43 |
$module_directory = 'menu_link';
|
|
44 |
$module_name = 'Menu Link';
|
|
45 |
$module_function = 'page';
|
|
46 |
$module_version = '2.8';
|
|
47 |
$module_platform = '2.8.x';
|
|
48 |
$module_author = 'Ryan Djurovich, thorn';
|
|
49 |
$module_license = 'GNU General Public License';
|
|
50 |
$module_description = 'This module allows you to insert a link into the menu.';
|
|
51 |
|
|
52 |
?> |
branches/2.8.x/wb/modules/wysiwyg/info.php | ||
---|---|---|
27 | 27 |
$module_name = 'WYSIWYG'; |
28 | 28 |
$module_function = 'page'; |
29 | 29 |
$module_version = '2.7'; |
30 |
$module_platform = '2.7.x'; |
|
30 |
$module_platform = '2.7 | 2.8.x';
|
|
31 | 31 |
$module_author = 'Ryan Djurovich'; |
32 | 32 |
$module_license = 'GNU General Public License'; |
33 | 33 |
$module_description = 'This module allows you to edit the contents of a page using a graphical editor'; |
branches/2.8.x/wb/modules/jsadmin/info.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id$ |
|
4 |
|
|
5 |
// JsAdmin module for Website Baker |
|
6 |
// Copyright (C) 2006, Stepan Riha |
|
7 |
// www.nonplus.net |
|
8 |
|
|
9 |
/* |
|
10 |
Javascript Admin for Website Baker |
|
11 |
|
|
12 |
Software License Agreement (BSD License) |
|
13 |
|
|
14 |
Copyright (c) 2006, Stepan Riha. |
|
15 |
All rights reserved. |
|
16 |
|
|
17 |
Portions of this software are Copyright Yahoo! Inc. |
|
18 |
|
|
19 |
Redistribution and use of this software in source and binary forms, with |
|
20 |
or without modification, are permitted provided that the following |
|
21 |
conditions are met: |
|
22 |
|
|
23 |
* Redistributions of source code must retain the above |
|
24 |
copyright notice, this list of conditions and the |
|
25 |
following disclaimer. |
|
26 |
|
|
27 |
* Redistributions in binary form must reproduce the above |
|
28 |
copyright notice, this list of conditions and the |
|
29 |
following disclaimer in the documentation and/or other |
|
30 |
materials provided with the distribution. |
|
31 |
|
|
32 |
* Neither the name of Stepan Riha may be used to endorse or |
|
33 |
promote products derived from this software without specific prior |
|
34 |
written permission of Stepan Riha. |
|
35 |
|
|
36 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS |
|
37 |
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
|
38 |
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
|
39 |
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER |
|
40 |
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
|
41 |
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
|
42 |
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
|
43 |
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
|
44 |
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
|
45 |
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
|
46 |
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
47 |
*/ |
|
48 |
|
|
49 |
/* |
|
50 |
----------------------------------------------------------------------------------------------------------- |
|
51 |
Javascript Admin module for Website Baker v2.7 |
|
52 |
Copyright (C) 2006, Stepan Riha |
|
53 |
Adapted for Website Baker 2.7 by Swen Uth |
|
54 |
----------------------------------------------------------------------------------------------------------- |
|
55 |
v1.2 (swen, Swen Uth; Jan 24, 2008) |
|
56 |
+ updated YUI framework to version 2.4.1 |
|
57 |
+ adapted module to work with Website Baker 2.7 |
|
58 |
+ added multilingual support and support of the module.css and module.js files |
|
59 |
|
|
60 |
v1.0.2 (nonplus, Stepan Riha; May 5, 2006 |
|
61 |
initial release by Stepan Riha (all rights reserved) |
|
62 |
----------------------------------------------------------------------------------------------------------- |
|
63 |
*/ |
|
64 |
|
|
65 |
$module_directory = 'jsadmin'; |
|
66 |
$module_name = 'Javascript Admin'; |
|
67 |
$module_function = 'tool'; |
|
68 |
$module_version = '1.2.1'; |
|
69 |
$module_platform = 'WB 2.7.x';
|
|
70 |
$module_author = 'Stepan Riha, Swen Uth'; |
|
71 |
$module_license = 'BSD License'; |
|
72 |
$module_description = 'This module adds Javascript functionality to the Website Baker Admin to improve some of the UI interactions. Uses the YahooUI library.'; |
|
73 |
|
|
74 |
?> |
|
1 |
<?php
|
|
2 |
|
|
3 |
// $Id$
|
|
4 |
|
|
5 |
// JsAdmin module for Website Baker
|
|
6 |
// Copyright (C) 2006, Stepan Riha
|
|
7 |
// www.nonplus.net
|
|
8 |
|
|
9 |
/*
|
|
10 |
Javascript Admin for Website Baker
|
|
11 |
|
|
12 |
Software License Agreement (BSD License)
|
|
13 |
|
|
14 |
Copyright (c) 2006, Stepan Riha.
|
|
15 |
All rights reserved.
|
|
16 |
|
|
17 |
Portions of this software are Copyright Yahoo! Inc.
|
|
18 |
|
|
19 |
Redistribution and use of this software in source and binary forms, with
|
|
20 |
or without modification, are permitted provided that the following
|
|
21 |
conditions are met:
|
|
22 |
|
|
23 |
* Redistributions of source code must retain the above
|
|
24 |
copyright notice, this list of conditions and the
|
|
25 |
following disclaimer.
|
|
26 |
|
|
27 |
* Redistributions in binary form must reproduce the above
|
|
28 |
copyright notice, this list of conditions and the
|
|
29 |
following disclaimer in the documentation and/or other
|
|
30 |
materials provided with the distribution.
|
|
31 |
|
|
32 |
* Neither the name of Stepan Riha may be used to endorse or
|
|
33 |
promote products derived from this software without specific prior
|
|
34 |
written permission of Stepan Riha.
|
|
35 |
|
|
36 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
37 |
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
38 |
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
39 |
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
|
|
40 |
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
41 |
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
42 |
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
43 |
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
44 |
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
45 |
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
46 |
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
47 |
*/
|
|
48 |
|
|
49 |
/*
|
|
50 |
-----------------------------------------------------------------------------------------------------------
|
|
51 |
Javascript Admin module for Website Baker v2.7
|
|
52 |
Copyright (C) 2006, Stepan Riha
|
|
53 |
Adapted for Website Baker 2.7 by Swen Uth
|
|
54 |
-----------------------------------------------------------------------------------------------------------
|
|
55 |
v1.2 (swen, Swen Uth; Jan 24, 2008)
|
|
56 |
+ updated YUI framework to version 2.4.1
|
|
57 |
+ adapted module to work with Website Baker 2.7
|
|
58 |
+ added multilingual support and support of the module.css and module.js files
|
|
59 |
|
|
60 |
v1.0.2 (nonplus, Stepan Riha; May 5, 2006
|
|
61 |
initial release by Stepan Riha (all rights reserved)
|
|
62 |
-----------------------------------------------------------------------------------------------------------
|
|
63 |
*/
|
|
64 |
|
|
65 |
$module_directory = 'jsadmin';
|
|
66 |
$module_name = 'Javascript Admin';
|
|
67 |
$module_function = 'tool';
|
|
68 |
$module_version = '1.2.1';
|
|
69 |
$module_platform = '2.7 | 2.8.x';
|
|
70 |
$module_author = 'Stepan Riha, Swen Uth';
|
|
71 |
$module_license = 'BSD License';
|
|
72 |
$module_description = 'This module adds Javascript functionality to the Website Baker Admin to improve some of the UI interactions. Uses the YahooUI library.';
|
|
73 |
|
|
74 |
?> |
branches/2.8.x/wb/modules/show_menu2/info.php | ||
---|---|---|
40 | 40 |
$module_name = 'show_menu2'; |
41 | 41 |
$module_function = 'snippet'; |
42 | 42 |
$module_version = '4.9'; |
43 |
$module_platform = '2.6.x | 2.7.x';
|
|
43 |
$module_platform = '2.7 | 2.8.x';
|
|
44 | 44 |
$module_author = 'Brodie Thiesfield'; |
45 | 45 |
$module_license = 'GNU General Public License'; |
46 | 46 |
$module_description = 'A code snippet for the Website Baker CMS providing a complete replacement for the builtin menu functions. See <a href="http://code.jellycan.com/show_menu2/" target="_blank">http://code.jellycan.com/show_menu2/</a> for details or view the <a href="' .WB_URL .'/modules/show_menu2/README.en.txt" target="_blank">readme</a> file.'; |
branches/2.8.x/wb/modules/droplets/info.php | ||
---|---|---|
17 | 17 |
$module_version = '1.0.2'; |
18 | 18 |
$module_platform = '2.8.x'; |
19 | 19 |
$module_author = 'Ruud and pcwacht'; |
20 |
$module_license = 'GPL';
|
|
20 |
$module_license = 'GNU General Public License';
|
|
21 | 21 |
$module_description = 'This tool allows you to manage your local Droplets.'; |
22 | 22 |
|
23 | 23 |
$module_home = 'http://www.websitebakers.com/pages/droplets/about-droplets.php'; |
branches/2.8.x/wb/modules/captcha_control/info.php | ||
---|---|---|
32 | 32 |
$module_name = 'Captcha and Advanced-Spam-Protection (ASP) Control'; |
33 | 33 |
$module_function = 'tool'; |
34 | 34 |
$module_version = '1.0'; |
35 |
$module_platform = '2.7'; |
|
35 |
$module_platform = '2.7 | 2.8.x';
|
|
36 | 36 |
$module_author = 'Thomas Hornik (thorn)'; |
37 | 37 |
$module_license = 'GNU General Public License'; |
38 | 38 |
$module_description = 'Admin-Tool to control CAPTCHA and ASP'; |
branches/2.8.x/wb/modules/form/info.php | ||
---|---|---|
32 | 32 |
$module_name = 'Form'; |
33 | 33 |
$module_function = 'page'; |
34 | 34 |
$module_version = '2.7'; |
35 |
$module_platform = '2.6.x';
|
|
35 |
$module_platform = '2.7 | 2.8.x';
|
|
36 | 36 |
$module_author = 'Ryan Djurovich & Rudolph Lartey - additions John Maats - PCWacht'; |
37 | 37 |
$module_license = 'GNU General Public License'; |
38 | 38 |
$module_description = 'This module allows you to create customised online forms, such as a feedback form. '. |
branches/2.8.x/wb/modules/backup/info.php | ||
---|---|---|
27 | 27 |
$module_name = 'Backup'; |
28 | 28 |
$module_function = 'tool'; |
29 | 29 |
$module_version = '2.7'; |
30 |
$module_platform = '2.7.x'; |
|
30 |
$module_platform = '2.7 | 2.8.x';
|
|
31 | 31 |
$module_author = 'Ryan Djurovich, John'; |
32 | 32 |
$module_license = 'GNU General Public License'; |
33 | 33 |
$module_description = 'This module allows you to backup your database.'; |
branches/2.8.x/wb/modules/output_filter/info.php | ||
---|---|---|
37 | 37 |
$module_name = 'Frontend Output Filter'; |
38 | 38 |
$module_function = 'tool'; |
39 | 39 |
$module_version = '0.11'; |
40 |
$module_platform = '2.7.x'; |
|
40 |
$module_platform = '2.7 | 2.8.x';
|
|
41 | 41 |
$module_author = 'Christian Sommer (doc)'; |
42 | 42 |
$module_license = 'GNU General Public License'; |
43 | 43 |
$module_description = 'This module allows to filter the output before displaying it on the frontend. Support for filtering mailto links and mail addresses in strings.'; |
branches/2.8.x/wb/modules/code/info.php | ||
---|---|---|
27 | 27 |
$module_name = 'Code'; |
28 | 28 |
$module_function = 'page'; |
29 | 29 |
$module_version = '2.8'; |
30 |
$module_platform = '2.7.x'; |
|
30 |
$module_platform = '2.7 | 2.8.x';
|
|
31 | 31 |
$module_author = 'Ryan Djurovich'; |
32 | 32 |
$module_license = 'GNU General Public License'; |
33 | 33 |
$module_description = 'This module allows you to execute PHP commands (limit access to users you trust!!)'; |
branches/2.8.x/wb/modules/fckeditor/info.php | ||
---|---|---|
136 | 136 |
$module_version = '2.9.3'; |
137 | 137 |
$module_guid = 'ED3B82C1-DB1E-447A-A0FD-E952AFC5F3B9'; |
138 | 138 |
$module_status = 'Beta'; |
139 |
$module_platform = '2.7'; |
|
139 |
$module_platform = '2.7 | 2.8.x';
|
|
140 | 140 |
$module_requirements = 'PHP 4.3.11 or higher, WB 2.7 or higher'; |
141 | 141 |
$module_author = 'Christian Sommer, P. Widlund, S. Braunewell, M. Gallas, Wouldlouper, Aldus, Luisehahne'; |
142 | 142 |
$module_license = 'GNU General Public License'; |
branches/2.8.x/wb/modules/news/info.php | ||
---|---|---|
27 | 27 |
$module_name = 'News v3.1'; |
28 | 28 |
$module_function = 'page'; |
29 | 29 |
$module_version = '3.1'; |
30 |
$module_platform = '2.8'; |
|
30 |
$module_platform = '2.8.x';
|
|
31 | 31 |
$module_author = 'Ryan Djurovich, Rob Smith'; |
32 | 32 |
$module_license = 'GNU General Public License'; |
33 | 33 |
$module_description = 'This page type is designed for making a news page.'; |
Also available in: Unified diff
updated module info.php (Thanks to Waldschwein)