Revision 1069
Added by Matthias almost 15 years ago
add_field.php | ||
---|---|---|
33 | 33 |
// Include WB admin wrapper script |
34 | 34 |
require(WB_PATH.'/modules/admin.php'); |
35 | 35 |
|
36 |
//overwrite php.ini on Apache servers for valid SESSION ID Separator |
|
37 |
if(function_exists('ini_set')) { |
|
38 |
ini_set('arg_separator.output', '&'); |
|
39 |
} |
|
40 |
|
|
36 | 41 |
// Include the ordering class |
37 | 42 |
require(WB_PATH.'/framework/class.order.php'); |
38 | 43 |
// Get new order |
... | ... | |
47 | 52 |
|
48 | 53 |
// Say that a new record has been added, then redirect to modify page |
49 | 54 |
if($database->is_error()) { |
50 |
$admin->print_error($database->get_error(), WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'§ion_id='.$section_id.'&field_id='.$field_id);
|
|
55 |
$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);
|
|
51 | 56 |
} else { |
52 |
$admin->print_success($TEXT['SUCCESS'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'§ion_id='.$section_id.'&field_id='.$field_id);
|
|
57 |
$admin->print_success($TEXT['SUCCESS'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&section_id='.$section_id.'&field_id='.$field_id);
|
|
53 | 58 |
} |
54 | 59 |
|
55 | 60 |
// Print admin footer |
Also available in: Unified diff
Fixed some validiation bugs in core and different modules (Thanks to luisehahne)