Subversion Repositories wimsdev

Rev

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

Rev 10291 Rev 11104
Line 173... Line 173...
173
char tmp_dir[MAX_FNAME+1]; /* temporary directory */
173
char tmp_dir[MAX_FNAME+1]; /* temporary directory */
174
char *bin_dir="bin"; /* directory containing executable scripts and programs. */
174
char *bin_dir="bin"; /* directory containing executable scripts and programs. */
175
char cwdbuf[MAX_FNAME+1]; /* store current working directory */
175
char cwdbuf[MAX_FNAME+1]; /* store current working directory */
176
char var_hacking=0; /* Trying to hack a variable? */
176
char var_hacking=0; /* Trying to hack a variable? */
177
char *tmp_debug="no";
177
char *tmp_debug="no";
-
 
178
char *tmp_debug_var="";
178
char ins_alt[MAX_LINELEN+1]; /* dynamic insertion alternative text */
179
char ins_alt[MAX_LINELEN+1]; /* dynamic insertion alternative text */
179
char *devel_modules="close"; /* whether to open devel modules */
180
char *devel_modules="close"; /* whether to open devel modules */
180
int isclassmodule=0; /* 1 if the module is class module */
181
int isclassmodule=0; /* 1 if the module is class module */
181
int isdevelmodule=0; /* development module? */
182
int isdevelmodule=0; /* development module? */
182
int setcookie=0; /* 1 if need to set cookie */
183
int setcookie=0; /* 1 if need to set cookie */
Line 238... Line 239...
238
char lang[16]="en";
239
char lang[16]="en";
239
char available_lang[MAX_LANGUAGES][4]={"en","fr"};
240
char available_lang[MAX_LANGUAGES][4]={"en","fr"};
240
int available_lang_no=2;
241
int available_lang_no=2;
241
char pre_language[4]="";
242
char pre_language[4]="";
242
FILE *trace_file;
243
FILE *trace_file;
-
 
244
int trace_indent=0;
243
char *protocol="http"; /* http or https */
245
char *protocol="http"; /* http or https */
244
 
246
 
245
/* check for coordinate input. This will mean that
247
/* check for coordinate input. This will mean that
246
 * the request is manual, but not robot.
248
 * the request is manual, but not robot.
247
 */
249
 */
Line 1233... Line 1235...
1233
    parse_ro_names();
1235
    parse_ro_names();
1234
    manager_check();
1236
    manager_check();
1235
    access_check(0);
1237
    access_check(0);
1236
/* this gives some bug on some servers... so desactivated
1238
/* this gives some bug on some servers... so desactivated
1237
  it is really for developing in wims, so no use in general */
1239
  it is really for developing in wims, so no use in general */
1238
   if (1==0) {
1240
   if (1==1) {
1239
    if(strstr(tmp_debug,"yes")!=NULL && checkhost(manager_site)>=1)
1241
    if(strstr(tmp_debug,"yes")!=NULL && checkhost(manager_site)>=1)
1240
       trace_file = fopen(mkfname(NULL,"%s/%s",tmp_dir,"trace.txt"),"a");
1242
       trace_file = fopen(mkfname(NULL,"%s/%s",tmp_dir,"trace.txt"),"a");
1241
   }
1243
   }
1242
    set_variables();
1244
    set_variables();
1243
    determine_font(getvar("module_language"));
1245
    determine_font(getvar("module_language"));