Project

General

Profile

« Previous | Next » 

Revision 1890

Added by Dietmar over 11 years ago

  1. bugfix and update form module set version to 2.9.1
    ! update code module set version to 2.8.4
    ! update wysiwyg module set version to 2.9.1

View differences:

save.php
4 4
 * @category        modules
5 5
 * @package         code
6 6
 * @author          WebsiteBaker Project
7
 * @copyright       2009-2011, Website Baker Org. e.V.
7
 * @copyright       2009-2012, WebsiteBaker Org. e.V.
8 8
 * @link			http://www.websitebaker2.org/
9 9
 * @license         http://www.gnu.org/licenses/gpl.html
10 10
 * @platform        WebsiteBaker 2.8.x
......
32 32
$admin->print_header();
33 33
// Update the mod_wysiwygs table with the contents
34 34
if(isset($_POST['content'])) {
35

  
36

  
35 37
	$tags = array('<?php', '?>' , '<?', '<?=');
36 38
	$content = $admin->add_slashes(str_replace($tags, '', $_POST['content']));
39

  
37 40
	$query = "UPDATE ".TABLE_PREFIX."mod_code SET content = '$content' WHERE section_id = '$section_id'";
38 41
	$database->query($query);	
42

  
39 43
}
40 44

  
41 45
// Check if there is a database error, otherwise say successful
42 46
if($database->is_error()) {
43 47
	$admin->print_error($database->get_error(), $js_back);
44 48
} else {
45
	$admin->print_success($MESSAGE['PAGES']['SAVED'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id);
49
	$admin->print_success($MESSAGE['PAGES_SAVED'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id);
46 50
}
47 51

  
48 52
// Print admin footer

Also available in: Unified diff