Subversion Repositories wimsdev

Rev

Rev 12277 | Rev 12381 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12277 Rev 12288
Line 199... Line 199...
199
  }
199
  }
200
  else {
200
  else {
201
    char *pp;
201
    char *pp;
202
    if(classe==NULL || *classe==0) return;
202
    if(classe==NULL || *classe==0) return;
203
    pp=getvar("wims_scorereg");
203
    pp=getvar("wims_scorereg");
204
     if((allow[0]==0 || testmax_ || (pp!=NULL && strcmp(pp,"suspend")==0)) && *ex!='E')
204
    if((allow[0]==0 || testmax_ || (pp!=NULL && strcmp(pp,"suspend")==0)) && *ex!='E')
205
      scorelog=1;
205
      scorelog=1;
206
    else
206
    else
207
      mkfname(fname,"classes/%s/noscore/%s",classe,user);
207
      mkfname(fname,"classes/%s/noscore/%s",classe,user);
208
  }
208
  }
209
  if(isexam && user!=NULL && *user!=0) {
209
  if(isexam && user!=NULL && *user!=0) {
Line 282... Line 282...
282
      nowstr, s, ip, c, p, tm, ag);
282
      nowstr, s, ip, c, p, tm, ag);
283
  write_logfile("access.log",tmplbuf);
283
  write_logfile("access.log",tmplbuf);
284
  user_log(c);
284
  user_log(c);
285
  cl=getvar("wims_class");
285
  cl=getvar("wims_class");
286
  if(cl!=NULL && *cl!=0) {
286
  if(cl!=NULL && *cl!=0) {
287
   char *l;
287
    char *l;
288
   l=getvar("wims_class_log");
288
    l=getvar("wims_class_log");
289
   if(l!=NULL && *l!=0) class_log(cl, l, ip);
289
    if(l!=NULL && *l!=0) class_log(cl, l, ip);
290
  }
290
  }
291
}
291
}
292
 
292
 
293
/* Log of mails. */
293
/* Log of mails. */
294
void mail_log(char *c)
294
void mail_log(char *c)