|  line  | 
 true  | 
 false  | 
 branch  | 
 
| 
6
 | 
 90  | 
 1051  | 
   if (OptEscape.begin
 | 
 
| 
43
 | 
 1427  | 
 19  | 
   if ((tmpl_var_case & ASK_NAME_MASK) == ASK_NAME_DEFAULT  | 
 
| 
44
 | 
 44  | 
 1383  | 
       || tmpl_var_case & ASK_NAME_AS_IS) {  | 
 
| 
46
 | 
 33  | 
 30  | 
     if (retval != NULL) return retval;  | 
 
| 
48
 | 
 987  | 
 426  | 
   if (tmpl_var_case & ASK_NAME_LOWERCASE) {  | 
 
| 
49
 | 
 935  | 
 52  | 
     if (param->lowercase_varname.begin == NULL) {  | 
 
| 
53
 | 
 789  | 
 198  | 
     if (retval != NULL) return retval;  | 
 
| 
55
 | 
 426  | 
 198  | 
   if (tmpl_var_case & ASK_NAME_UPPERCASE) {  | 
 
| 
56
 | 
 426  | 
 0  | 
     if (param->uppercase_varname.begin == NULL) {  | 
 
| 
60
 | 
 288  | 
 138  | 
     if (retval != NULL) return retval;  | 
 
| 
71
 | 
 13  | 
 1381  | 
   if (param->path_like_variable_scope) {  | 
 
| 
72
 | 
 9  | 
 4  | 
     if(*(name.begin) == '/' || strncmp(name.begin, "../", 3) == 0){  | 
 
| 
 | 
 2  | 
 7  | 
     if(*(name.begin) == '/' || strncmp(name.begin, "../", 3) == 0){  | 
 
| 
75
 | 
 4  | 
 2  | 
       if(*(name.begin) == '/'){  | 
 
| 
83
 | 
 2  | 
 2  | 
 	while(strncmp(tmp_name.begin, "../", 3) == 0){  | 
 
| 
95
 | 
 1066  | 
 322  | 
   if (valptr) return valptr;  | 
 
| 
101
 | 
 286  | 
 36  | 
   if (0==param->global_vars) {  | 
 
| 
102
 | 
 205  | 
 81  | 
     while (isScopeMap(getScope(¶m->var_scope_stack,CurLevel)) && --CurLevel>=0) {  | 
 
| 
 | 
 2  | 
 203  | 
     while (isScopeMap(getScope(¶m->var_scope_stack,CurLevel)) && --CurLevel>=0) {  | 
 
| 
104
 | 
 2  | 
 0  | 
       if (valptr!=NULL) return valptr;  | 
 
| 
109
 | 
 50  | 
 0  | 
   while (--CurLevel>=0) {  | 
 
| 
111
 | 
 36  | 
 14  | 
     if (valptr!=NULL) return valptr;  | 
 
| 
120
 | 
 768  | 
 260  | 
   if (param->loop_context_vars) {  | 
 
| 
123
 | 
 857  | 
 171  | 
   if (varvalue.begin==NULL) {  | 
 
| 
125
 | 
 731  | 
 126  | 
     if (abstrval!=NULL) varvalue=(param->AbstractVal2pstringFuncPtr)(param->ext_data_state, abstrval);  | 
 
| 
127
 | 
 0  | 
 1028  | 
   if (debuglevel>=TMPL_LOG_DEBUG2) {  | 
 
| 
128
 | 
 0  | 
 0  | 
     if (name.begin!=NULL) {  | 
 
| 
133
 | 
 0  | 
 0  | 
     if (varvalue.begin!=NULL) {  | 
 
| 
146
 | 
 477  | 
 664  | 
   if (TagOptVal[TAG_OPT_EXPR].begin!=NULL) {  | 
 
| 
151
 | 
 120  | 
 1021  | 
   if (varvalue.begin==NULL) {  | 
 
| 
152
 | 
 27  | 
 93  | 
     if (defvalue.begin!=defvalue.endnext) {  | 
 
| 
170
 | 
 281  | 
 1141  | 
   if (! state->is_visible) return;  | 
 
| 
173
 | 
 93  | 
 1048  | 
   if (varvalue.begin==NULL) return;  | 
 
| 
175
 | 
 94  | 
 954  | 
   if (escapeopt!=HTML_TEMPLATE_OPT_ESCAPE_NO) {  | 
 
| 
191
 | 
 4  | 
 79  | 
   if (! state->is_visible) return;  | 
 
| 
193
 | 
 0  | 
 79  | 
   if (param->no_includes) {  | 
 
| 
197
 | 
 79  | 
 0  | 
   if (param->max_includes && param->max_includes < param->cur_includes) {  | 
 
| 
 | 
 2  | 
 77  | 
   if (param->max_includes && param->max_includes < param->cur_includes) {  | 
 
| 
206
 | 
 4  | 
 73  | 
   if (TagOptVal[TAG_OPT_EXPR].begin!=NULL) {  | 
 
| 
209
 | 
 0  | 
 77  | 
   if (varvalue.begin==varvalue.endnext && defvalue.begin!=defvalue.endnext) varvalue=defvalue;  | 
 
| 
 | 
 0  | 
 0  | 
   if (varvalue.begin==varvalue.endnext && defvalue.begin!=defvalue.endnext) varvalue=defvalue;  | 
 
| 
214
 | 
 1061  | 
 77  | 
     for (x=0;x
 | 
 
| 
231
 | 
 70  | 
 436  | 
   if (TagOptVal[TAG_OPT_EXPR].begin!=NULL) {  | 
 
| 
238
 | 
 220  | 
 216  | 
     if (state->param->loop_context_vars) {  | 
 
| 
240
 | 
 20  | 
 200  | 
       if (loop_var.begin!=NULL) {  | 
 
| 
244
 | 
 416  | 
 90  | 
   if (ifval==-1) {  | 
 
| 
247
 | 
 112  | 
 304  | 
     if (abstrval==NULL) return 0;  | 
 
| 
249
 | 
 304  | 
 0  | 
     if (userSuppliedIsTrueFunc!=NULL) {  | 
 
| 
267
 | 
 454  | 
 48  | 
   if (state->is_visible && is_var_true(state,TagOptVal)) {  | 
 
| 
 | 
 230  | 
 224  | 
   if (state->is_visible && is_var_true(state,TagOptVal)) {  | 
 
| 
275
 | 
 0  | 
 502  | 
   if (debuglevel>=TMPL_LOG_DEBUG2) log_state(state,TMPL_LOG_DEBUG2,"tag_handler_if:visible context =%d value=%d ",iftag.vcontext,iftag.value);  | 
 
| 
287
 | 
 48  | 
 2  | 
   if (state->is_visible && !is_var_true(state,TagOptVal)) {  | 
 
| 
 | 
 29  | 
 19  | 
   if (state->is_visible && !is_var_true(state,TagOptVal)) {  | 
 
| 
295
 | 
 0  | 
 50  | 
   if (debuglevel>=TMPL_LOG_DEBUG2) log_state(state,TMPL_LOG_DEBUG2,"tag_handler_unless:visible context =%d value=%d ",iftag.vcontext,iftag.value);  | 
 
| 
311
 | 
 0  | 
 0  | 
   if (stack_tag_type) {  | 
 
| 
312
 | 
 0  | 
 0  | 
     if (tagstack_notempty(&(state->tag_stack))) {  | 
 
| 
314
 | 
 0  | 
 0  | 
       if (iftag->tag!=stack_tag_type) {  | 
 
| 
328
 | 
 1  | 
 677  | 
   if (is_underflow) {  | 
 
| 
339
 | 
 0  | 
 506  | 
   if (! test_stack(HTML_TEMPLATE_TAG_IF)) {  | 
 
| 
344
 | 
 262  | 
 244  | 
   if (0==state->is_visible) state->last_processed_pos=state->cur_pos;  | 
 
| 
353
 | 
 0  | 
 46  | 
   if (! test_stack(HTML_TEMPLATE_TAG_UNLESS)) {  | 
 
| 
358
 | 
 22  | 
 24  | 
   if (0==state->is_visible) state->last_processed_pos=state->cur_pos;  | 
 
| 
373
 | 
 222  | 
 184  | 
   if (0==state->is_visible) state->last_processed_pos=state->cur_pos;  | 
 
| 
374
 | 
 188  | 
 218  | 
   if (iftag->value) {  | 
 
| 
376
 | 
 192  | 
 26  | 
   } else if (1==iftag->vcontext) {  | 
 
| 
379
 | 
 0  | 
 406  | 
   if (debuglevel>=TMPL_LOG_DEBUG2) log_state(state,TMPL_LOG_DEBUG2,"else:(pos " MOD_TD ") visible:context =%d, set to %d ",  | 
 
| 
394
 | 
 4  | 
 4  | 
   if (0==state->is_visible) state->last_processed_pos=state->cur_pos;  | 
 
| 
395
 | 
 4  | 
 4  | 
   if (iftag->value) {  | 
 
| 
397
 | 
 4  | 
 0  | 
   } else if (1==iftag->vcontext) {  | 
 
| 
400
 | 
 4  | 
 0  | 
     if (is_var_true(state,TagOptVal)) {  | 
 
| 
408
 | 
 0  | 
 8  | 
   if (debuglevel>=TMPL_LOG_DEBUG2) log_state(state,TMPL_LOG_DEBUG2,"elsif:(pos " MOD_TD ") visible:context =%d, set to %d ",  | 
 
| 
419
 | 
 0  | 
 254  | 
   if (!isScopeLoop(currentScope)) {  | 
 
| 
423
 | 
 67  | 
 187  | 
   if (++currentScope->loop < currentScope->loop_count || currentScope->loop_count< 0) {  | 
 
| 
 | 
 0  | 
 67  | 
   if (++currentScope->loop < currentScope->loop_count || currentScope->loop_count< 0) {  | 
 
| 
425
 | 
 187  | 
 0  | 
     if ((arrayvalptr!=NULL)) {  | 
 
| 
430
 | 
 0  | 
 0  | 
       if (currentScope->loop_count>0) log_state(state,TMPL_LOG_ERROR, "PARAM:LOOP:next_loop(%d): callback returned null scope\n", currentScope->loop);  | 
 
| 
433
 | 
 0  | 
 67  | 
   if (state->param->ExitLoopScopeFuncPtr) state->param->ExitLoopScopeFuncPtr(state->param->ext_data_state, currentScope->loops_AV);  | 
 
| 
442
 | 
 46  | 
 75  | 
   if (loopptr==NULL) {  | 
 
| 
447
 | 
 0  | 
 75  | 
     if (loopptr == NULL)  | 
 
| 
454
 | 
 8  | 
 67  | 
     if (0==loop_count) return 0;  | 
 
| 
472
 | 
 121  | 
 5  | 
   if (state->is_visible && init_loop(state,TagOptVal) && next_loop(state)) {  | 
 
| 
 | 
 67  | 
 54  | 
   if (state->is_visible && init_loop(state,TagOptVal) && next_loop(state)) {  | 
 
| 
 | 
 67  | 
 0  | 
   if (state->is_visible && init_loop(state,TagOptVal) && next_loop(state)) {  | 
 
| 
489
 | 
 0  | 
 246  | 
   if (! test_stack(HTML_TEMPLATE_TAG_LOOP)) {  | 
 
| 
494
 | 
 187  | 
 59  | 
   if (iftag_ptr->value==1 && next_loop(state)) {  | 
 
| 
 | 
 120  | 
 67  | 
   if (iftag_ptr->value==1 && next_loop(state)) {  |