Revision 1760
Added by Dietmar about 12 years ago
add.php | ||
---|---|---|
30 | 30 |
require_once(WB_PATH.'/framework/functions.php'); |
31 | 31 |
|
32 | 32 |
// Get values |
33 |
$title = $admin->get_post_escaped('title'); |
|
34 |
$title = htmlspecialchars($title); |
|
33 |
//$title = $admin->get_post_escaped('title'); |
|
34 |
//$title = htmlspecialchars($title); |
|
35 |
$title = str_replace(array("[[", "]]"), '', htmlspecialchars($admin->get_post_escaped('title'))); |
|
35 | 36 |
$module = preg_replace('/[^a-z0-9_-]/i', "", $admin->get_post('type')); // fix secunia 2010-93-4 |
36 | 37 |
$parent = intval($admin->get_post('parent')); // fix secunia 2010-91-2 |
37 | 38 |
$visibility = $admin->get_post('visibility'); |
... | ... | |
69 | 70 |
// Validate data |
70 | 71 |
if($title == '' || substr($title,0,1)=='.') |
71 | 72 |
{ |
72 |
$admin->print_error($MESSAGE['PAGES_BLANK_PAGE_TITLE']); |
|
73 |
$admin->print_error($title.'::'.$MESSAGE['PAGES_BLANK_PAGE_TITLE']);
|
|
73 | 74 |
} |
74 | 75 |
|
75 | 76 |
// Check to see if page created has needed permissions |
... | ... | |
111 | 112 |
// rename menu titles: index && intro to prevent clashes with intro page feature and WB core file /pages/index.php |
112 | 113 |
if($link == '/index' || $link == '/intro') |
113 | 114 |
{ |
114 |
$link .= '_0'; |
|
115 |
$filename = WB_PATH .PAGES_DIRECTORY .'/' .page_filename($title) .'_0' .PAGE_EXTENSION; |
|
115 |
$sTmpFile = WB_PATH .PAGES_DIRECTORY .$link.PAGE_EXTENSION; |
|
116 |
$link .= (file_exists($sTmpFile)) ? '_0' : ''; |
|
117 |
$filename = WB_PATH .PAGES_DIRECTORY .$link .PAGE_EXTENSION; |
|
116 | 118 |
} else { |
117 |
$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($title).PAGE_EXTENSION;
|
|
119 |
$filename = WB_PATH.PAGES_DIRECTORY.$link.PAGE_EXTENSION;
|
|
118 | 120 |
} |
121 |
|
|
119 | 122 |
} else { |
120 | 123 |
$parent_section = ''; |
121 | 124 |
$parent_titles = array_reverse(get_parent_titles($parent)); |
Also available in: Unified diff
! fallback changes in wysiwyg Revision 1754
because it's required that section_id is the PRIMARY KEY
Fallback will be done in upgrade-script until the final version
! build in extra input seo title in page settings
! beginning rebranding wb_theme