} } } } break; case 'save_folder_properties': $task = 'folder_properties'; $name = smart_addslashes(trim($_POST['name'])); if ($name == '') { $feedback = '<p class="Error">' . $error_missing_field . '</p>'; } elseif (!($folder = $cms->get_folder($folder_id))) { $feedback = '<p class="Error">' . $strSaveError . '</p>'; } else { $disabled = isset($_POST['disabled']) ? '1' : '0'; $disable_multipage = isset($_POST['disable_multipage']) ? '1' : '0'; if (!$cms->update_folder($folder_id, $name, $disabled, $_POST['priority'], $disable_multipage)) { $feedback = '<p class="Error">' . $strSaveError . '</p>'; } else { if ($_POST['close'] == 'true') { header('Location: ' . $return_to); exit; } } } break; case 'save_search_words': $cms2 = new cms(); $selected_search_words = isset($_POST['selected_search_words']) ? $_POST['selected_search_words'] : array(); $cms->get_search_words($site_id); while ($cms->next_record()) { $attached = $cms2->file_is_attached($_POST['file_id'], $cms->f('id'));