[이성희]님이 남기신 글:
>
> function parse($contents, $TMPL=array(), $_TMPL=array())
> {
> global $_SERVER, $TMPL, $_TMPL;
>
> $contents = str_replace('"','\"',$contents);
> eval('$contents = "'.$contents.'";');
>
> return $contents;
> }
>
>이것을 하라는대로 바꿔줬는데도...
>function parse($contents, $TMPL=array(), $_TMPL=array())
>{
> global $_SERVER, $TMPL, $_TMPL;
>
> $from =
array("['",'["',"']",'"]','"');
> $to = array('[','[',']',']','\"');
>
> $contents = str_replace($from,$to,$contents);
>
> eval('$contents = "'.$contents.'";');
>
> return $contents;
>}
>
>eval('$contents = "'.$contents.'";'); 이부분에서 에러가 나는듯
합니다.
>
>제가 고칠수 있으면 좋으렷만...도저히
어디부터 손봐줘야 할지 모르겠내요...
>^^;
>
>다시한번 봐주시면 감사하겠습니다.
>
>http://cucu.nameip.net/test/index.php?path=vtm5/LqwILPrt6EvWzIwMDMuM
DUuMTVdIMDatc4gM8H9IC0gVGhlIEphZHUgKDEyOEticHMp
========================================
....
음... 뭔가 $blist에 예상되지 않은 문자가 들어간것 같네요.
일단 디버깅해봐야 하는데..
include/default/index.php 파일에서
$TMPL['list'] = $tmpl->parse($blist,$TMPL);
부분 바로 앞줄에
if($_GET[debug]) _debug(1); // 추가사항
$TMPL['list'] = $tmpl->parse($blist,$TMPL);
이렇게 추가하고 다시 연락주세요..
PHP/4.3.2 버전이 좀 많이 이상합니다. 연산문제도 있고...
PHP/4.2.x 에서는 현재 이상없습니다.
|