if( ! empty( $_POST['all_group_copy'] ) ) { if ( ! $xoopsGTicket->check( true , 'd3downloads' ) ) { redirect_header(XOOPS_URL.'/modules/'.$mydirname.'/admin/index.php',3,$xoopsGTicket->getErrors()); } $error = $user_access->group_update( $cid ) ; if( empty( $_POST['action_selects'] ) ) $message[] = _MD_D3DOWNLOADS_ERROR_SEL_GROUP ; if( ! empty( $message ) ){ $iserror = 1 ; $error_message = implode( '<br />' , $message ) ; $group_trs = $user_access->get_group_form( $cid, $parentid, 0, 1 ) ; } if( empty( $iserror ) ) { foreach( $_POST['action_selects'] as $id => $value ) { if( empty( $value ) ) continue ; $groupid = intval( $id ) ; $error = $user_access->all_user_access_copy( $cid, 'group', $groupid ) ; } d3download_delete_cache_of_categories( $mydirname ) ; redirect_header( XOOPS_URL."/modules/$mydirname/admin/index.php?page=user_access&cid=$cid" , 2 , $error ? sprintf( _MD_D3DOWNLOADS_ERROR_MESSEAGE , $error ) : _MD_D3DOWNLOADS_COPYDONE ) ; exit(); } } // USER COPY if( ! empty( $_POST['user_copy'] ) ) { if ( ! $xoopsGTicket->check( true , 'd3downloads' ) ) { redirect_header(XOOPS_URL.'/modules/'.$mydirname.'/admin/index.php',3,$xoopsGTicket->getErrors()); } $selectid = intval( @$_POST['copy_select_user'] ) ; $error = $user_access->user_update( $cid ) ; if( empty( $_POST['copy_select_user'] ) ) $message[] = _MD_D3DOWNLOADS_ERROR_SEL_CATEGORY ;