current_connect.php 파일에 대하여 질문 드립니다. 정보
current_connect.php 파일에 대하여 질문 드립니다.본문
bbs/current_connect.php
이 파일을 실행하면 이름부분이 아이피가 나오네요..
이걸 이름으로 출력하게 하려면 어디 어케 수정해야하는지요?
$list[$i][name]이 current_connect.skin.php파일 26행에서 <td colspan=2 align='center'>{$list[$i][name]}</td> 로 출력되는 것 같은데요..
요걸 수정하여 mb_name로 하면 될것 같은데..실력부족이네요...
꼭 부탁드립니다...
=============================================================================
$sql = " select a.mb_id, b.mb_nick, b.mb_name, b.mb_email, b.mb_homepage, b.mb_open, b.mb_point, a.lo_ip, a.lo_location, a.lo_url
from $g4[login_table] a left join $g4[member_table] b on (a.mb_id = b.mb_id)
where a.mb_id <> '$config[cf_admin]'
order by a.lo_datetime desc ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$list[$i] = $row;
if ($row[mb_id])
//$list[$i][name] = get_sideview($row[mb_id], $row[mb_nick], $row[mb_email], $row[mb_homepage]);
$list[$i][name] = get_sideview($row[mb_id], cut_str($row[mb_nick], $config[cf_cut_name]), $row[mb_email], $row[mb_homepage]);
else
{
if ($is_admin)
$list[$i][name] = $row[lo_ip];
else
$list[$i][name] = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "\\1.♡.\\3.\\4", $row[lo_ip]);
}
$list[$i][num] = sprintf("%03d",$i+1);
}
=================================================================
이 파일을 실행하면 이름부분이 아이피가 나오네요..
이걸 이름으로 출력하게 하려면 어디 어케 수정해야하는지요?
$list[$i][name]이 current_connect.skin.php파일 26행에서 <td colspan=2 align='center'>{$list[$i][name]}</td> 로 출력되는 것 같은데요..
요걸 수정하여 mb_name로 하면 될것 같은데..실력부족이네요...
꼭 부탁드립니다...
=============================================================================
$sql = " select a.mb_id, b.mb_nick, b.mb_name, b.mb_email, b.mb_homepage, b.mb_open, b.mb_point, a.lo_ip, a.lo_location, a.lo_url
from $g4[login_table] a left join $g4[member_table] b on (a.mb_id = b.mb_id)
where a.mb_id <> '$config[cf_admin]'
order by a.lo_datetime desc ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$list[$i] = $row;
if ($row[mb_id])
//$list[$i][name] = get_sideview($row[mb_id], $row[mb_nick], $row[mb_email], $row[mb_homepage]);
$list[$i][name] = get_sideview($row[mb_id], cut_str($row[mb_nick], $config[cf_cut_name]), $row[mb_email], $row[mb_homepage]);
else
{
if ($is_admin)
$list[$i][name] = $row[lo_ip];
else
$list[$i][name] = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "\\1.♡.\\3.\\4", $row[lo_ip]);
}
$list[$i][num] = sprintf("%03d",$i+1);
}
=================================================================
댓글 전체

bbs/current_connect.php 의 20번째 줄에서
$list[$i][name] = get_sideview($row[mb_id], cut_str($row[mb_nick], $config[cf_cut_name]), $row[mb_email], $row[mb_homepage]);
cut_str($row[mb_nick]을 cut_str($row[mb_name]로 바꾸면 급한대로 나오겠죠?
코드를 보니 로그인자와 비 로그인 자가 달리 나오게 되었네요. 비로 로그인시 아이피 출력?이 됩니다.
$list[$i][name] = get_sideview($row[mb_id], cut_str($row[mb_nick], $config[cf_cut_name]), $row[mb_email], $row[mb_homepage]);
cut_str($row[mb_nick]을 cut_str($row[mb_name]로 바꾸면 급한대로 나오겠죠?
코드를 보니 로그인자와 비 로그인 자가 달리 나오게 되었네요. 비로 로그인시 아이피 출력?이 됩니다.