| 1706 번 글의 답장글: Re: sysinfo에서 에러 나거든요, 좀 봐주세요. |
| 글쓴이: 산이
[홈페이지]
|
글쓴날: 2003년 10월 10일 04:41:00 금(새벽) |
조회: 843 |
 12 KB(11,911 Bytes)
|
파일명: class.utils.php.txt
|
[최진형]님이 남기신 글:
>-----------------------------------------
>답변자가 기본적으로 참고할 내용입니다.
>- 배포판(옵션) : 한컴 리눅스 2.2
>- 커널버전(옵션)
: Kernel 2.4.13-1hl
>- 데몬버전(예:apache
1.3.27) :
>- 데몬설치유형(RPM/컴파일/기타)
:
>-----------------------------------------
>
>한컴 리눅스 2.2 를 깐 후 sysinfo-20030604 를
설치했습니다.
>다음 에러가 나오는데, 이유를 모르겠습니다.
>어떻게 하면 되나요?
>
>Parse error: parse error in /var/www/html/sysinfo/func/class.utils.php(55) :
eval()'d code on line 17
>
>
>》》
화면보기
>
>
========================================
첨부한 파일로 교체해 보세요.
다운받고 확장자를 txt 를 지우세요.
문제가 계속된다면 PHP 설정상의 문제인것 같네요.
아래는 패치한 내용입니다.
diff -Nur sysinfo-20030604/func/class.utils.php
sysinfo-20030604-after/func/class.utils.php
--- sysinfo-20030604/func/class.utils.php Wed Jun 4 12:03:51 2003
+++ sysinfo-20030604-after/func/class.utils.php Fri Oct 10 04:26:25 2003
@@ -43,7 +43,6 @@
return $c;
}
-
## get tmplates file
##
function get_tmpl($file)
@@ -51,13 +50,16 @@
global $TMPL, $_SERVER;
$content = $this->get_file($_SERVER[_PWD]."/templates/$TMPL[config]/$file");
- $content = str_replace('"','\"',$content);
- eval('$content = "'.$content.'";');
+
+ $from = array('["','"]','"'); // for javascript error
+ $to = array("['","']",'\"');
+ $content = str_replace($from,$to,$content);
+
+ @eval('$content = "'.$content.'";');
return $content;
}
-
## get block tmplates file
## $from = array(), $to = array();
##
@@ -66,12 +68,15 @@
global $TMPL;
$content = str_replace($from,$to,$content);
- $content = str_replace('"','\"',$content);
- eval('$content = "'.$content.'";');
+
+ $from = array('["','"]','"'); // for javascript error
+ $to = array("['","']",'\"');
+ $content = str_replace($from,$to,$content);
+
+ @eval('$content = "'.$content.'";');
return $content;
}
-
function get_width($width)
{
|
이전글 : sysinfo에서 에러 나거든요, 좀 봐주세요.
다음글 : 고맙습니다. 에러는 해결되었지만 화면이....
|
from 61.254.75.40
JS(Redhands)Board 0.4 +@
|
|