$message_id) { update_manger_set_read_message ($message_id, 0); } } if ($read_action !== false) { $selected = get_parameter ('select_multiple', false); foreach ($selected as $k => $message_id) { update_manger_set_read_message ($message_id, 1); } } if ($delete_action !== false) { $selected = get_parameter ('select_multiple', false); foreach ($selected as $k => $message_id) { update_manger_set_deleted_message ($message_id); } } $offset = (int) get_parameter ('offset', 0); $total_messages = update_manager_get_not_deleted_messages (); if ($total_messages){ // Get all messages $sql = 'SELECT data, svn_version, filename, data_rollback, db_field_value FROM tupdate '; $sql .= 'WHERE description NOT LIKE \'%"' . $config['id_user'] . '":1%\' '; $sql .= 'OR description IS NULL '; $sql .= 'ORDER BY svn_version DESC '; $sql .= 'LIMIT ' . $offset . ',' . $config['block_size'] . ' '; $um_messages = array (); $um_messages = db_get_all_rows_sql ($sql); echo '
'; // Get unread messages to update the notification ball. // Clean the cache because the unread messages can be different. db_clean_cache(); $total_unread_messages = update_manager_get_unread_messages(); } else { ui_print_info_message ( array ( 'no_close' => true, 'message' => __('There is not any update manager messages.') ) ); } ?>