Project

General

Profile

« Previous | Next » 

Revision 1074

Added by Matthias almost 15 years ago

replaced in form and news delimiter "&" with "&" was introduced with changeset [1069] but didn't work on all servers

View differences:

save_field.php
42 42
$update_when_modified = true; // Tells script to update when this page was last updated
43 43
require(WB_PATH.'/modules/admin.php');
44 44

  
45
//overwrite php.ini on Apache servers for valid SESSION ID Separator
46
if(function_exists('ini_set')) {
47
	ini_set('arg_separator.output', '&');
48
}
49

  
50 45
// Validate all fields
51 46
if($admin->get_post('title') == '' OR $admin->get_post('type') == '') {
52
	$admin->print_error($MESSAGE['GENERIC']['FILL_IN_ALL'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&section_id='.$section_id.'&field_id='.$field_id);
47
	$admin->print_error($MESSAGE['GENERIC']['FILL_IN_ALL'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&section_id='.$section_id.'&field_id='.$field_id);
53 48
} else {
54 49
	$title = $admin->add_slashes($admin->get_post('title'));
55 50
	$type = $admin->add_slashes($admin->get_post('type'));
......
98 93

  
99 94
// Check if there is a db error, otherwise say successful
100 95
if($database->is_error()) {
101
	$admin->print_error($database->get_error(), WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&section_id='.$section_id.'&field_id='.$field_id);
96
	$admin->print_error($database->get_error(), WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&section_id='.$section_id.'&field_id='.$field_id);
102 97
} else {
103
	$admin->print_success($TEXT['SUCCESS'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&section_id='.$section_id.'&field_id='.$field_id);
98
	$admin->print_success($TEXT['SUCCESS'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&section_id='.$section_id.'&field_id='.$field_id);
104 99
}
105 100

  
106 101
// Print admin footer

Also available in: Unified diff