Rev 12214 | Rev 12219 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12214 | Rev 12218 | ||
---|---|---|---|
Line 130... | Line 130... | ||
130 | 130 | ||
131 | /* Log user information. */ |
131 | /* Log user information. */ |
132 | void user_log(char *c) |
132 | void user_log(char *c) |
133 | { |
133 | { |
134 | char fname[MAX_FNAME+1], logbuf[MAX_LINELEN+1], cbuf[256], sbuf[32], shbuf[32]; |
134 | char fname[MAX_FNAME+1], logbuf[MAX_LINELEN+1], cbuf[256], sbuf[32], shbuf[32]; |
135 | char *user, *classe, *sh, *sess, *exo, *cc, *ip, *allow, *pend; |
135 | char *user, *classe, *sh, *sess, *exo, *cc, *ip, *allow, *pend, *se; |
136 | char *ex; |
136 | char *ex; |
137 | double sc,Sc; |
137 | double sc,Sc; |
138 | int i, scorelog, testmax; |
138 | int i, scorelog, testmax; |
139 | 139 | ||
140 | if(robot_access || strstr("session_prefix","_check")!=NULL) return; |
140 | if(robot_access || strstr("session_prefix","_check")!=NULL) return; |
Line 218... | Line 218... | ||
218 | } |
218 | } |
219 | } |
219 | } |
220 | else snprintf(exam_sheetexo+strlen(exam_sheetexo), |
220 | else snprintf(exam_sheetexo+strlen(exam_sheetexo), |
221 | sizeof(exam_sheetexo)-strlen(exam_sheetexo), "\tS"); |
221 | sizeof(exam_sheetexo)-strlen(exam_sheetexo), "\tS"); |
222 | } |
222 | } |
- | 223 | if(strcmp(c,"new")==0 || strcmp(c,"renew")==0) |
|
- | 224 | se=getvar("wims_seed"); else se=""; |
|
223 | snprintf(logbuf,sizeof(logbuf),"%s%s %s %2s %2s %s \t%s\t%s", |
225 | snprintf(logbuf,sizeof(logbuf),"%s%s %s %2s %2s %s \t%s\t%s\t%s", |
224 | ex,nowstr,sess,sh,exo,cc,ip,allow); |
226 | ex,nowstr,sess,sh,exo,cc,ip,allow,se); |
225 | if(scorelog) { |
227 | if(scorelog) { |
226 | snprintf(tmplbuf,sizeof(tmplbuf),"-c%s -u%s scorelog %s", |
228 | snprintf(tmplbuf,sizeof(tmplbuf),"-c%s -u%s scorelog %s", |
227 | classe,user,logbuf); |
229 | classe,user,logbuf); |
228 | _daemoncmd(tmplbuf); |
230 | _daemoncmd(tmplbuf); |
229 | } |
231 | } |