Rev 11735 | Rev 12263 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11735 | Rev 12011 | ||
---|---|---|---|
Line 323... | Line 323... | ||
323 | {"readable", 1}, /* readable variables in user file, words */ |
323 | {"readable", 1}, /* readable variables in user file, words */ |
324 | {"realuser", 1}, /* real user for supervisor in gateway */ |
324 | {"realuser", 1}, /* real user for supervisor in gateway */ |
325 | {"req_time", 0}, /* time of the request */ |
325 | {"req_time", 0}, /* time of the request */ |
326 | {"sclassdir", 1}, |
326 | {"sclassdir", 1}, |
327 | {"scorereg", 0}, /* score registration flag */ |
327 | {"scorereg", 0}, /* score registration flag */ |
- | 328 | {"seed", 0}, |
|
- | 329 | {"seed_repeat",0}, |
|
- | 330 | {"seed_score", 0}, |
|
328 | {"sequence", 0}, /*sequence number */ |
331 | {"sequence", 0}, /* sequence number */ |
329 | {"sescookie", 1}, /* session cookie */ |
332 | {"sescookie", 1}, /* session cookie */ |
330 | {"sesdir", 1}, |
333 | {"sesdir", 1}, |
331 | {"session_serial", 0}, /* request serial in the session */ |
334 | {"session_serial", 0}, /* request serial in the session */ |
332 | {"session_start_time", 0}, |
335 | {"session_start_time", 0}, |
333 | {"sheet", 0}, /* sheet number */ |
336 | {"sheet", 0}, /* sheet number */ |
Line 1128... | Line 1131... | ||
1128 | } |
1131 | } |
1129 | } |
1132 | } |
1130 | 1133 | ||
1131 | int main(int argc, char *argv[], char *envp[]) |
1134 | int main(int argc, char *argv[], char *envp[]) |
1132 | { |
1135 | { |
1133 | char *p, homebuf[MAX_FNAME+1], lbuf[32]; |
1136 | char *p, homebuf[MAX_FNAME+1], lbuf[32], buf[64]; |
1134 | int inlen=0; |
1137 | int inlen=0; |
1135 | /* int mfd; */ |
1138 | /* int mfd; */ |
1136 | 1139 | ||
1137 | class_dir[0]=0; |
1140 | class_dir[0]=0; |
1138 | substitute=substit; buffer_init(); var_init(); |
1141 | substitute=substit; buffer_init(); var_init(); |
Line 1207... | Line 1210... | ||
1207 | rlimit_as*=2; /* virtual memory size */ |
1210 | rlimit_as*=2; /* virtual memory size */ |
1208 | rlimit_data*=2; /* data segment size; maxima requires a lot */ |
1211 | rlimit_data*=2; /* data segment size; maxima requires a lot */ |
1209 | rlimit_stack*=2; /* stack size */ |
1212 | rlimit_stack*=2; /* stack size */ |
1210 | } |
1213 | } |
1211 | set_rlimits(); |
1214 | set_rlimits(); |
1212 | init_random |
1215 | /*init_random();*/ |
- | 1216 | seed_time(); p=getvar("wims_seed"); mystrncpy(buf,p,sizeof(buf)); exec_setseed(buf); |
|
1213 | module_configure(); |
1217 | module_configure(); |
1214 | set_job_ident(); |
1218 | set_job_ident(); |
1215 | m_file.name[0]=0;m_file.linecnt=m_file.linepointer=0; |
1219 | m_file.name[0]=0;m_file.linecnt=m_file.linepointer=0; |
1216 | p=getenv("QUERY_STRING"); |
1220 | p=getenv("QUERY_STRING"); |
1217 | if(p==NULL || strlen(p)==0) { |
1221 | if(p==NULL || strlen(p)==0) { |
Line 1249... | Line 1253... | ||
1249 | determine_font(getvar("module_language")); |
1253 | determine_font(getvar("module_language")); |
1250 | determine_dirn(getvar("module_language")); |
1254 | determine_dirn(getvar("module_language")); |
1251 | if(!robot_access && session_prefix[0]!=0 && cmd_type!=cmd_help && !ismhelp) |
1255 | if(!robot_access && session_prefix[0]!=0 && cmd_type!=cmd_help && !ismhelp) |
1252 | lastout_file=creat(mkfname(NULL,"%s/%s",s2_prefix,lastout), |
1256 | lastout_file=creat(mkfname(NULL,"%s/%s",s2_prefix,lastout), |
1253 | S_IRUSR|S_IWUSR); |
1257 | S_IRUSR|S_IWUSR); |
- | 1258 | p=getvar("module_score"); |
|
- | 1259 | if(p!=NULL) force_setvar("wims_seed_score",p); |
|
1254 | p=getvar("module_category"); |
1260 | p=getvar("module_category"); |
1255 | if(p==NULL || strstr(p,"tool")==NULL) default_form_method="get"; |
1261 | if(p==NULL || strstr(p,"tool")==NULL) default_form_method="get"; |
1256 | if(noout) { |
1262 | if(noout) { |
1257 | write_logs(); save_session_vars(); |
1263 | write_logs(); save_session_vars(); |
1258 | goto outgo; |
1264 | goto outgo; |