Revision 46
Added by stefan about 19 years ago
trunk/wb/admin/pages/add.php | ||
---|---|---|
76 | 76 |
// Check if a page with same page filename exists |
77 | 77 |
$database = new database(); |
78 | 78 |
$get_same_page = $database->query("SELECT page_id FROM ".TABLE_PREFIX."pages WHERE link = '$link'"); |
79 |
if($get_same_page->numRows() > 0) { |
|
80 |
$admin->print_error("database"); |
|
81 |
// $admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']); |
|
82 |
} elseif(file_exists(WB_PATH.PAGES_DIRECTORY.$link.'.php')) { |
|
83 |
$admin->print_error(WB_PATH.PAGES_DIRECTORY.$link.'.php'); |
|
84 |
// $admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']); |
|
85 |
} elseif(file_exists(WB_PATH.PAGES_DIRECTORY.$link.'/')) { |
|
86 |
$admin->print_error("dir"); |
|
87 |
// $admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']); |
|
79 |
if($get_same_page->numRows() > 0 OR file_exists(WB_PATH.PAGES_DIRECTORY.$link.'.php') OR file_exists(WB_PATH.PAGES_DIRECTORY.$link.'/')) { |
|
80 |
$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']); |
|
88 | 81 |
} |
89 | 82 |
|
90 | 83 |
// Include the ordering class |
trunk/wb/modules/wysiwyg/save.php | ||
---|---|---|
31 | 31 |
|
32 | 32 |
// Update the mod_wysiwygs table with the contents |
33 | 33 |
if(isset($_POST['content'.$section_id])) { |
34 |
$content = $admin->add_slashes($_POST['content']); |
|
34 |
$content = $admin->add_slashes($_POST['content'.$section_id]);
|
|
35 | 35 |
$text = strip_tags($content); |
36 | 36 |
$database = new database(); |
37 | 37 |
$query = "UPDATE ".TABLE_PREFIX."mod_wysiwyg SET content = '$content', text = '$text' WHERE section_id = '$section_id'"; |
Also available in: Unified diff
Fixed minor bugs