Rev 12213 | Rev 12218 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12213 | Rev 12214 | ||
---|---|---|---|
Line 184... | Line 184... | ||
184 | if(classe==NULL || *classe==0) i=1; |
184 | if(classe==NULL || *classe==0) i=1; |
185 | else i=getscorestatus(classe,atoi(sh)); |
185 | else i=getscorestatus(classe,atoi(sh)); |
186 | testmax=strcmp(c,"new")!=0 && strcmp(c,"renew")!=0 && gettrycheck(classe,user,atoi(sh),atoi(exo))==1; |
186 | testmax=strcmp(c,"new")!=0 && strcmp(c,"renew")!=0 && gettrycheck(classe,user,atoi(sh),atoi(exo))==1; |
187 | pend=getvar("wims_scoring"); if(pend==NULL) pend=""; |
187 | pend=getvar("wims_scoring"); if(pend==NULL) pend=""; |
188 | if((i==0 || !exodepOK || strcmp(pend,"pending")!=0 || testmax) && strcmp(cc,"rafale")!=0) |
188 | if((i==0 || !exodepOK || strcmp(pend,"pending")!=0 || testmax) && strcmp(cc,"rafale")!=0) |
189 | if(testmax) allow=" |
189 | if(testmax) allow="maxtry noscore"; else allow="noscore"; |
190 | else allow=""; |
190 | else allow=""; |
191 | ip=remote_addr; if(*ip==0) ip="-"; scorelog=0; |
191 | ip=remote_addr; if(*ip==0) ip="-"; scorelog=0; |
192 | if(user==NULL || *user==0) { |
192 | if(user==NULL || *user==0) { |
193 | classe="0"; allow=""; |
193 | classe="0"; allow=""; |
194 | mkfname(fname,"../sessions/%s/.score",sess); |
194 | mkfname(fname,"../sessions/%s/.score",sess); |