Part 2 of 3 (FTAG.422) Commander Riker #1 @7751 3Saturday, April 10, 1993 1 6:52 am ΝΝΝ[ Step 7 ]ΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝ Open "XFER.C" and let the fun begin ... Find int ratio_ok and add the following: = if (!(thisuser.exempt & exempt_ratio)) = if ((syscfg.req_ratio>0.0001) && (ratio()0.0001) && (post_ratio()=MAX_FILES) + file_ptr=0; + if ((in_tag) && !(thisuser.sysstatus&sysstatus_no_tag) && (!x_only)) { + file_index[file_ptr].directory=udir[curdir].subnum; + strcpy(file_index[file_ptr].filename,u->filename); + if (fc) + sprintf(s,"7[%c%2d7] ",0 + (check_batch_queue(u->filename))?'1':'2', file_ptr+1); + else + sprintf(s,"[%2d] ",file_ptr+1); + file_ptr++; + osan(s,abort,&next); + } Go futher down into printinfo = if (fc) = ansic(5); - pla(u->description,abort); + strcpy(s,u->description); + if ((in_tag) && !(thisuser.sysstatus&sysstatus_no_tag) && (!x_only)) + if (strlen(s)>53) + s[53]=0; + pla(s,abort); = if ((!*abort) && (thisuser.num_extended) && (u->mask & mask_extended)) Find listfiles and add the following: = char s[81]; = int i,abort,next=0; + uploadsrec u; + in_tag=1; + file_ptr=0; = dliscan(); = file_mask(s); = abort=0; = num_listed=0; = printtitle(&abort); = for (i=1; (i<=numf) && (!abort) && (!hangup); i++) { = SETREC(i); = read(dlf,(void *)&u,sizeof(uploadsrec)); = if (compare(s,u.filename)) = printinfo(&u,&abort); = else if (!empty()) = checka(&abort,&next); = } + tag_files(); /* FT422 */ = closedl(); = if (!abort) { = nl(); = nl(); = sprintf(s,"%s: %d",get_string(744), num_listed); = pl(s); = nl(); = } + in_tag=0; /* FT422 */ = } Next look for nscandir... = if ((dir_dates[udir[d].subnum]) && (dir_dates[udir[d].subnum]=nscandate) { = for (i=1; (i<=numf) && (!(*abort)) && (!hangup); i++) { = SETREC(i); = read(dlf,(void *)&u,sizeof(uploadsrec)); = if (u.daten>=nscandate) { = if (dt) { = printtitle(abort); = dt=0; = } = printinfo(&u,abort); = } else if (!empty()) = checka(abort,&next); = = } = = } + tag_files(); /* FT422 */ = closedl(); = curdir=od; + in_tag=0; /* FT422 */ = } Next find "void searchall()" = void searchall(void) = { = int i,i1,pts,abort,pty,ocd,next=0; = char s[81],s1[81]; = uploadsrec u; = = abort=0; = ocd=curdir; = if (x_only) { = strcpy(s,"*.*"); = align(s); = } else { + in_tag=1; /* FT422 */ + file_ptr=0; /* FT422 */ = nl(); = nl(); = pl(get_string(745)); = file_mask(s); = } = num_listed=0; = for (i=0; (i