xoonips_notification_item_rejected($item_id, $index_id); } } } } else { // TODO: unlock if transfer request } } } // logic $empty_tree_ids = true; $results = array(); $xnpsid = $_SESSION['XNPSID']; if (count($tree_ids) > 0) { $textutil =& xoonips_getutility('text'); $treelist = xnpitmgrListIndexTree(XNPITMGR_LISTMODE_PRIVATEONLY); $treemap = array(); foreach ($treelist as $tree) { $treemap[$tree['id']] = $tree['fullpath']; } $empty_tree_ids = false; $evenodd = 'odd'; // execute item delete foreach ($tree_ids as $xid) { $succeed = 0; $failed = 0; $iids = xnpitmgrListIndexItems(array($xid)); if ($iids === false) { // no item in tree continue; }
exit; } // load libraries include_once '../include/libitem.php'; include_once '../include/notification.inc.php'; // get requests $get_keys = array('tree' => array('i', true, false)); $get_vals = xoonips_admin_get_requests('post', $get_keys); $tree_ids = $get_vals['tree']; // logic $empty_tree_ids = true; $results = array(); $xnpsid = $_SESSION['XNPSID']; if (count($tree_ids) > 0) { $textutil =& xoonips_getutility('text'); $treelist = xnpitmgrListIndexTree(XNPITMGR_LISTMODE_PUBLICONLY); $treemap = array(); foreach ($treelist as $tree) { $treemap[$tree['id']] = $tree['fullpath']; } $empty_tree_ids = false; $evenodd = 'odd'; $index_item_link_handler =& xoonips_getormhandler('xoonips', 'index_item_link'); $event_log_handler =& xoonips_getormhandler('xoonips', 'event_log'); $item_lock_handler =& xoonips_getormhandler('xoonips', 'item_lock'); $item_basic_handler =& xoonips_getormhandler('xoonips', 'item_basic'); $item_show_handler =& xoonips_getormhandler('xoonips', 'item_show'); $item_status_handler =& xoonips_getormhandler('xoonips', 'item_status'); $modified_item_ids = array(); // execute item withdraw foreach ($tree_ids as $xid) {