Pracoval som na HCM moduloch a nahodilo mi to neznamu chybu, teda mne sa este nikdy nic takeho nestalo, chyba:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in xyz\codes\hcm.php on line 41 + samozrejme kod:
Kód:
/*** HCM parsovanie ***/
while (true) {
$start=strpos($desing,"[hcm]");
$end=strpos($desing,"[/hcm]");
if($start===false||$end===false||$end<=$start)
break 2;
else{
$hcm_data=substr($desing,$start+5,$end-$start+5);
$p1=str_replace(" ","",$hcm_data);
$p2=Explode(",",$p1);
$hcm_name=$p2[0];
if(isset($hcm[$hcm_name]))
$desing=str_replace("[hcm]$hcm_data[/hcm]",hcm($p1),$desing); - riadok 41
};
};