) { $link_item_manager = $environment->getLinkItemManager(); $link_item_manager->cleanSortingPlaces($topic_item); } elseif ( isset($_POST['path_active']) and !empty($_POST['path_active']) and $_POST['path_active'] == 1 and empty($_POST['sorting']) ) { $link_item_manager = $environment->getLinkItemManager(); $link_item_manager->cleanSortingPlaces($topic_item); } // Redirect $session->unsetValue('cid'.$environment->getCurrentContextID().'_linked_items_index_selected_ids'); $session->unsetValue('linked_items_post_vars'); cleanup_session($current_iid); $params = array(); $params['iid'] = $topic_item->getItemID(); redirect($environment->getCurrentContextID(), CS_TOPIC_TYPE, 'detail', $params); } } // Display form $class_params = array(); $class_params['environment'] = $environment; $class_params['with_modifying_actions'] = true; $form_view = $class_factory->getClass(FORM_VIEW,$class_params); unset($class_params); if (!mayEditRegular($current_user, $topic_item)) { $form_view->warnChanger();
if (($service = fbird_service_attach($s_login['host'], $s_login['user'], $s_login['password'])) != FALSE) { if (empty($argument)) { $result = fbird_maintain_db($service, $s_login['database'], $action); } else { $result = fbird_maintain_db($service, $s_login['database'], $action, $argument); } fbird_service_detach($service); if (!$result) { $ib_error = fbird_errmsg(); } } else { $ib_error = fbird_errmsg(); } if ($logout == TRUE) { remove_edit_panels(); cleanup_session(); $s_connected = FALSE; } } } // // database statistics // if (have_panel_permissions($s_login['user'], 'adm_dbstat', TRUE)) { if (isset($_POST['db_stat_select'])) { $s_dbstat_option = get_request_data('db_stat_option'); } if (!empty($s_dbstat_option)) { // remove pending dbstat-jobs from session $s_iframejobs = array_filter($s_iframejobs, create_function('$a', '$a["job"]!="dbstat";')); $iframekey_dbstat = md5(uniqid('dbstat'));
$temp_array['id'] = $community_item->getItemID(); $community_room_array[] = $temp_array; $new_community_room_ids[] = $temp_array['id']; } if ( count($community_room_array) > 0 ) { $session->setValue($room_iid.'_add_community_rooms', $community_room_array); } else { $session->unsetValue($room_iid.'_add_community_rooms'); } $post_community_room_ids = array_merge($post_community_room_ids, $new_community_room_ids); } // Create data for a new material elseif ( $room_iid == 'NEW') { cleanup_session($room_iid); } // Load form data from postvars if ( !empty($_POST) ) { if ( !empty($_FILES) ) { if ( !empty($_FILES['logo']['tmp_name']) ) { $new_temp_name = $_FILES['logo']['tmp_name'].'_TEMP_'.$_FILES['logo']['name']; move_uploaded_file($_FILES['logo']['tmp_name'],$new_temp_name); $_FILES['logo']['tmp_name'] = $new_temp_name; $session_item = $environment->getSessionItem(); if ( isset($session_item) ) { $session_item->setValue($environment->getCurrentContextID().'_pref_'.$room_iid.'_logo_temp_name',$new_temp_name); $session_item->setValue($environment->getCurrentContextID().'_pref_'.$room_iid.'_logo_name',$_FILES['logo']['name']); }