strict standards 오류 문의입니다ㅠㅠ
본문
Strict Standards: Only variables should be passed by reference in /host/home4/deepkiss/html/gnuboard4/skin/board/web_paint_v3/a_function.php on line 17
이런 오류가 발생하는데요.
(오류 페이지: http://deepkiss.dothome.co.kr/gnuboard4/bbs/board.php?bo_table=test&page=1)
<?
if (!defined("_GNUBOARD_")) exit;
$captchano2 = $captchano;
//아이콘파일
$icon_include='a_icon_auto.php';
//아이콘경로
$icon_dir=$g4['path'].'/img/web_paint_icon';
//소속아이콘 가로 제한
$guild_width=200;
//소속아이콘 세로 제한
$guild_height=100;
//디자인버튼 사용여부 사용 : true / 사용안함 : false
$design_button=false;
$is_comment_write = false;
if (($member['mb_level'] >= $board['bo_comment_level'])||$is_admin) $is_comment_write = true;
if($board['bo_5']){$theme_img_dir='theme/'.$board['bo_5'].'/img';$theme_dir='theme/'.$board['bo_5'].'/';} else {$theme_img_dir='img';$theme_dir='';}
$buffer2=end(explode('/',$_SERVER['SCRIPT_NAME']));
if($buffer2=='a_config_adm.php'||$buffer2=='a_config_update.php')$admpage=true;else$admpage=false;
if(get_cookie($bo_table.'_table_style')&&!$table_style)$table_style=get_cookie($bo_table.'_table_style');
if(get_cookie($bo_table.'_theme')&&!$theme)$theme=get_cookie($bo_table.'_theme');
if($design_button&&!$admpage){
if($table_style){
switch($table_style){
case'wtable';$table_shape='w';$list_table_width=($list_table_width<=100)?$list_table_width:($wt_auto_cs+$img_w_resize+21);break;
case'htable';$table_shape='h';$list_table_width=($list_table_width<=100)?$list_table_width:($img_w_resize+21);break;
}
}
.
.
.
여기서
$buffer2=end(explode('/',$_SERVER['SCRIPT_NAME']));
이걸 수정해야하는 것 같은데, 어떻게 분리해야되는지도 모르겠고 이쪽으로 지식이 전혀 없어서 헤메이는 중입니다ㅠㅠ
이렇게 질문하는 게 맞는지 모르겠으나 도움주시면 감사하겠습니다..!
!-->!-->답변 1
$buffer2=basename($_SERVER['SCRIPT_NAME']); 이렇게 하면 되겠습니다
분리하여 하는 방법
$tmp=explode('/',$_SERVER['SCRIPT_NAME']);
$buffer2=end($tmp);
답변을 작성하시기 전에 로그인 해주세요.