Revision 1301
Added by Dietmar over 14 years ago
settings2.php | ||
---|---|---|
34 | 34 |
require_once(WB_PATH.'/framework/functions.php'); |
35 | 35 |
|
36 | 36 |
// Get values |
37 |
$page_title = $admin->get_post_escaped('page_title'); |
|
38 |
$page_title = htmlspecialchars($page_title); |
|
39 |
$menu_title = $admin->get_post_escaped('menu_title'); |
|
40 |
$menu_title = htmlspecialchars($menu_title); |
|
37 |
$page_title = htmlspecialchars($admin->get_post_escaped('page_title') ); |
|
38 |
$menu_title = htmlspecialchars($admin->get_post_escaped('menu_title') ); |
|
41 | 39 |
$page_code = $admin->get_post_escaped('page_code'); |
42 |
$page_code = htmlspecialchars($page_code); |
|
43 |
$description = htmlspecialchars($admin->add_slashes($admin->get_post('description'))); |
|
44 |
$keywords = htmlspecialchars($admin->add_slashes($admin->get_post('keywords'))); |
|
40 |
$description = htmlspecialchars($admin->add_slashes($admin->get_post('description')) ); |
|
41 |
$keywords = htmlspecialchars($admin->add_slashes($admin->get_post('keywords')) ); |
|
45 | 42 |
$parent = $admin->get_post_escaped('parent'); |
46 | 43 |
$visibility = $admin->get_post_escaped('visibility'); |
47 | 44 |
$template = $admin->get_post_escaped('template'); |
... | ... | |
81 | 78 |
$field_set = $field_sql->numRows(); |
82 | 79 |
|
83 | 80 |
$in_old_group = FALSE; |
84 |
foreach($admin->get_groups_id() as $cur_gid){ |
|
85 |
if (in_array($cur_gid, $old_admin_groups)) { |
|
81 |
foreach($admin->get_groups_id() as $cur_gid) |
|
82 |
{ |
|
83 |
if (in_array($cur_gid, $old_admin_groups)) |
|
84 |
{ |
|
86 | 85 |
$in_old_group = TRUE; |
87 | 86 |
} |
88 | 87 |
} |
... | ... | |
194 | 193 |
$sql .= '`language` = "'.$language.'", '; |
195 | 194 |
$sql .= '`admin_groups` = "'.$admin_groups.'", '; |
196 | 195 |
$sql .= '`viewing_groups` = "'.$viewing_groups.'"'; |
197 |
$sql .= (defined('PAGE_LANGUAGES') && PAGE_LANGUAGES) && $field_set && (file_exists(WB_PATH.'/modules/mod_multilingual/update_keys.php')) ? ', `page_code` = "'.$page_code.'" ' : ' ';
|
|
196 |
$sql .= (defined('PAGE_LANGUAGES') && PAGE_LANGUAGES) && $field_set && (file_exists(WB_PATH.'/modules/mod_multilingual/update_keys.php')) ? ', `page_code` = '.(int)$page_code.' ' : ' ';
|
|
198 | 197 |
$sql .= 'WHERE `page_id` = '.$page_id; |
199 | 198 |
$database->query($sql); |
200 | 199 |
|
... | ... | |
216 | 215 |
{ |
217 | 216 |
$admin->print_error($MESSAGE['PAGES']['CANNOT_CREATE_ACCESS_FILE']); |
218 | 217 |
} else { |
218 |
$old_filename = WB_PATH.PAGES_DIRECTORY.$old_link.PAGE_EXTENSION; |
|
219 | 219 |
// First check if we need to create a new file |
220 |
if($old_link != $link)
|
|
220 |
if(($old_link != $link) || (!file_exists($old_filename)))
|
|
221 | 221 |
{ |
222 | 222 |
// Delete old file |
223 | 223 |
$old_filename = WB_PATH.PAGES_DIRECTORY.$old_link.PAGE_EXTENSION; |
Also available in: Unified diff
Tickets #932 change deprecated eregi functions
Tickets #948 fixed Multiple use of same parametrised droplet - parameter handling
Upgrade Droplets to Version 1.0.3
update some headerinfos
non existing pages, will be created if clicking save in page settings