Rev 15743 | Rev 16124 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 15743 | Rev 16080 | ||
---|---|---|---|
Line 1291... | Line 1291... | ||
1291 | /* Output a phtml file. */ |
1291 | /* Output a phtml file. */ |
1292 | void phtml_put(char *fname,int cache) |
1292 | void phtml_put(char *fname,int cache) |
1293 | { |
1293 | { |
1294 | int t; |
1294 | int t; |
1295 | char tbuf[MAX_LINELEN+1]; |
1295 | char tbuf[MAX_LINELEN+1]; |
1296 | 1296 | char *s; |
|
1297 | outputing=1; |
1297 | outputing=1; |
1298 | /* File not found; we give empty output, but no error message. */ |
1298 | /* File not found; we give empty output, but no error message. */ |
1299 | if(fname!=NULL && read_module_file(fname)!=0) return; |
1299 | if(fname!=NULL && read_module_file(fname)!=0) return; |
1300 | if(untrust&6) get_var_privileges(); |
1300 | if(untrust&6) get_var_privileges(); |
1301 | if (trace_file) start_tracefile(); |
1301 | if (trace_file) start_tracefile(); |
Line 1306... | Line 1306... | ||
1306 | } |
1306 | } |
1307 | t=m_file.lines[m_file.linepointer].isstart; |
1307 | t=m_file.lines[m_file.linepointer].isstart; |
1308 | if((t&~18)!=1) {m_file.linepointer++; continue;} |
1308 | if((t&~18)!=1) {m_file.linepointer++; continue;} |
1309 | wgetline(tbuf,MAX_LINELEN,&m_file); substnest=0; |
1309 | wgetline(tbuf,MAX_LINELEN,&m_file); substnest=0; |
1310 | if((t&2)!=0) {exec_main(tbuf+1); continue;} |
1310 | if((t&2)!=0) {exec_main(tbuf+1); continue;} |
- | 1311 | substit(tbuf); |
|
- | 1312 | s=getvar("wims_parm_detag"); |
|
- | 1313 | if(s!=NULL && *s != 0) calc_detag(tbuf); |
|
1311 |
|
1314 | output0(tbuf); _output_("\n"); |
1312 | } |
1315 | } |
1313 | if (trace_file) stop_tracefile(); |
1316 | if (trace_file) stop_tracefile(); |
1314 | close_working_file(&m_file,cache); |
1317 | close_working_file(&m_file,cache); |
1315 | } |
1318 | } |
1316 | 1319 |