Rev 17255 | Rev 17435 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 17255 | Rev 17415 | ||
---|---|---|---|
Line 159... | Line 159... | ||
159 | /* read file pbuf1 */ |
159 | /* read file pbuf1 */ |
160 | char pbuf2[MAX_LINELEN+1], *pf1, *pf2; |
160 | char pbuf2[MAX_LINELEN+1], *pf1, *pf2; |
161 | accessfile(pbuf2,"r",pbuf1); |
161 | accessfile(pbuf2,"r",pbuf1); |
162 | pf1=find_word_start(find_word_end(find_word_start(pbuf2)));pf2=find_word_end(pf1); |
162 | pf1=find_word_start(find_word_end(find_word_start(pbuf2)));pf2=find_word_end(pf1); |
163 | memmove(pbuf2,pf1,pf2-pf1);pbuf2[pf2-pf1]=0; |
163 | memmove(pbuf2,pf1,pf2-pf1);pbuf2[pf2-pf1]=0; |
164 | if( strcmp(pbuf2,pb)!=0) { /* other exam session open */ |
164 | if( strcmp(pbuf2,pb)!=0 && strcmp("supervisor",pu)!=0 ) { /* other exam session open */ |
165 | user_error("other_exam_session"); return; |
165 | user_error("other_exam_session"); return; |
166 | } |
166 | } |
167 | } |
167 | } |
168 | /* end of add for detect */ |
168 | /* end of add for detect */ |
169 | 169 |