Lines 160-166
Link Here
|
160 |
$_xh[$parser]['qt']=0; |
160 |
$_xh[$parser]['qt']=0; |
161 |
break; |
161 |
break; |
162 |
case "NAME": |
162 |
case "NAME": |
163 |
$_xh[$parser]['st'].='"'; $_xh[$parser]['ac']=""; |
163 |
$_xh[$parser]['st'].="'"; $_xh[$parser]['ac']=""; |
164 |
break; |
164 |
break; |
165 |
case "FAULT": |
165 |
case "FAULT": |
166 |
$_xh[$parser]['isf']=1; |
166 |
$_xh[$parser]['isf']=1; |
Lines 225-231
Link Here
|
225 |
$_xh[$parser]['cm']--; |
225 |
$_xh[$parser]['cm']--; |
226 |
break; |
226 |
break; |
227 |
case "NAME": |
227 |
case "NAME": |
228 |
$_xh[$parser]['st'].= $_xh[$parser]['ac'] . '" => '; |
228 |
$_xh[$parser]['st'].= $_xh[$parser]['ac'] . "' => "; |
229 |
break; |
229 |
break; |
230 |
case "BOOLEAN": |
230 |
case "BOOLEAN": |
231 |
// special case here: we translate boolean 1 or 0 into PHP |
231 |
// special case here: we translate boolean 1 or 0 into PHP |
Lines 246-252
Link Here
|
246 |
// we use double quotes rather than single so backslashification works OK |
246 |
// we use double quotes rather than single so backslashification works OK |
247 |
$_xh[$parser]['st'].="\"". $_xh[$parser]['ac'] . "\""; |
247 |
$_xh[$parser]['st'].="\"". $_xh[$parser]['ac'] . "\""; |
248 |
} else if ($_xh[$parser]['qt']==2) { |
248 |
} else if ($_xh[$parser]['qt']==2) { |
249 |
$_xh[$parser]['st'].='base64_decode("'. $_xh[$parser]['ac'] . '")'; |
249 |
$_xh[$parser]['st'].="base64_decode('". $_xh[$parser]['ac'] . "')"; |
250 |
} else if ($name=="BOOLEAN") { |
250 |
} else if ($name=="BOOLEAN") { |
251 |
$_xh[$parser]['st'].=$_xh[$parser]['ac']; |
251 |
$_xh[$parser]['st'].=$_xh[$parser]['ac']; |
252 |
} else { |
252 |
} else { |