도솔천 님의 미니필 사용 질문 입니다. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

도솔천 님의 미니필 사용 질문 입니다. 정보

도솔천 님의 미니필 사용 질문 입니다.

본문

Warning: gmmktime() expects parameter 4 to be long, string given in /web/home/luckymen/html/gorilla/minifeel/myhome.php on line 63
 
이런..메시지가 미니필 최상단에 뜹니다..ㅡㅡ;;;
 
일반사용자한테는 안뜨는거 같은데..
 
관리자 미니필에 뜹니다...
  • 복사

댓글 전체

혹시 수정 했습니까?

63번째 줄은 스타일인데...

myhome.php 소스 올려주세요

//------
바이오리듬 부분이네요.
도솔천님이 답변해야 할것 같습니다.
<?
$g4_path = ".."; // 상대 경로
include_once ("$g4_path/common.php");

if($mb_id == ""){ $mb_id = $member[mb_id];}
$mb_sql = " select * from $g4[member_table] where mb_id='$mb_id'";
$mb_result = sql_query($mb_sql);
for ($i=0; $row = sql_fetch_array($mb_result); $i++) {
$mb_id = $row[mb_id]; //아이디
$mb_name = $row[mb_name];//이름
$mb_nick = $row[mb_nick]; //별명
$sex = $row[mb_sex]; //성별
$birth = $row[mb_birth]; //생일
$mb_level = $row[mb_level]; //그누레벨
$mb_point = $row[mb_point];//포인트
$mb_profile = $row[mb_profile];//자기소개글
$mb_open = $row[mb_open];//공개여부
$mb_today_login = $row[mb_today_login];//접속일
$mb_memo_call = $row[mb_memo_call]; //신규메모 보낸사람
$mprofile = $row[mb_7]; //미니홈소개글
$mb_visit = $row[mb_8]; //미니홈방문카운트
}
// 별명이 길경우 일부를 잘라냄
$mb_nick = cut_str(get_text($mb_nick), 18);
// 자기소개글이 길경우 일부를 잘라냄
$mb_profile = cut_str(get_text($mb_profile), 150);
$mprofile = cut_str(get_text($mprofile), 150);

if($mb_level == 1){$level = "준회원 <img src=./images/lev01.gif title=준회원>";}
else if($mb_level == 2){$level = "평회원2 &nbsp;<img src=./images/lev02.gif title=평회원>";}
else if($mb_level == 3){$level = "평회원3 &nbsp;<img src=./images/lev03.gif title=평회원>";}
else if($mb_level == 4){$level = "평회원4 &nbsp;<img src=./images/lev04.gif title=평회원>";}
else if($mb_level == 5){$level = "평회원5 &nbsp;<img src=./images/lev05.gif title=평회원>";}
else if($mb_level == 6){$level = "편집위원 &nbsp;<img src=./images/lev06.gif title=운영자>";}
else if($mb_level == 7){$level = "운영위원 &nbsp;<img src=./images/lev07.gif title=운영자>";}
else if($mb_level == 8){$level = "심의위원 &nbsp;<img src=./images/lev08.gif title=운영자>";}
else if($mb_level == 9){$level = "관리위원 &nbsp;<img src=./images/lev09.gif title=부관리자>";}
else if($mb_level == 10){$level = "관리자 &nbsp;<img src=./images/sup.gif title=관리자>";}
else{$level = "준회원";}

// 쪽지를 받았나?
if ($member[mb_memo_call]) {
    $mb = get_member($member[mb_memo_call], "mb_nick");
    sql_query(" update {$g4[member_table]} set mb_memo_call = '' where mb_id = '$member[mb_id]' ");

    echo "<embed src='i_memo.swf' width='0' height='0' border='0' autostart='true' volume='100%' hidden='true'></embed>";
    alert($mb[mb_nick]."님으로부터 쪽지가 전달되었습니다.", $_SERVER[REQUEST_URI]);
}

$height = "32";//바이오리듬 그래프 높이 설정
$by = substr("$birth",0,4);
$bm = substr("$birth",-4,2);
$bd = substr("$birth",-2,2);
$s_birth = "$bm$bd";
$sy = "$by";
$sm = "$bm";
$sd = "$bd";
$yr = date("Y");
$mnth = date("m");
$dy = date("d");
$total=gmmktime(0,0,0,$mnth,$dy,$yr);
$total/=60*60*24;
$my_total=gmmktime(0,0,0,$sm,$sd,$sy);
$my_total/=60*60*24;
$totalday = $total - $my_total;
$pis = 3.141592654;
$physical = sin(($totalday / 23) * 2 * $pis) * 100;
$emotional = sin(($totalday / 28) * 2 * $pis) * 100;
$mental = sin(($totalday / 33) * 2 * $pis) * 100;
$intuitive = sin(($totalday / 38) * 2 * $pis) * 100;
$p = (int)$physical;
$e = (int)$emotional;
$m = (int)$mental;
$i = (int)$intuitive;
$p1 = (int)$physical/100 * "$height";
$e1 = (int)$emotional/100 * "$height";
$m1 = (int)$mental/100 * "$height";
$i1 = (int)$intuitive/100 * "$height";
$p2 = -$p1;
$e2 = -$e1;
$m2 = -$m1;
$i2 = -$i1;
?>
<style type="text/css">
<!--
BODY,TD,input,DIV,form,TEXTAREA,center,pre,blockquote {font-size:9pt;font-family:tahoma,굴림;color:#000000;}

.line    { background-color:#B5AACD; height:1px;} /* 모든 테이블 상단 파란 라인 */
a:visited {text-decoration:none; color:#333333;}
a:link {text-decoration:none; color:#333333;}
a:hover {text-decoration:none; color:#333333;}
.base {border:0 solid #8FA8D0;}
.on {border-style:solid; border-width:1; border-color:#B2C3DE #577BB7 #577BB7 #B2C3DE;}
.down {border-width:1; border-style:solid; border-color:#577BB7 #B2C3DE #B2C3DE #577BB7; padding:2 0 0 2}

BODY
{scrollbar-face-color:#FFFFFF; scrollbar-shadow-color:#9F9B9B ;scrollbar-highlight-color: #FFFFFF;
scrollbar-3dlight-color: #C9C9C9;scrollbar-darkshadow-color: #FFFFFF;
scrollbar-track-color: #FFFFFF; scrollbar-arrow-color: #E9E9E9}
-->
</style>
<table width="470" border="0" cellspacing="0" cellpadding="0" align="center">
<tr><td align="center" valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr><td height="20">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr><td width="150"><img src="<?=$g4[path]?>/img/minifeel/icon_home.gif" border=0 align=absmiddle>&nbsp;<b><?=$mb_nick?>님</b></td>
          <td width=""><img src="<?=$g4[path]?>/img/minifeel/icon_flower.gif" align=absmiddle>미니홈 방문자 : <?=number_format($mb_visit)?></td>
          <? if($mb_id == $member[mb_id]){ ?>
          <td width="190">
          <img src="<?=$g4[path]?>/img/minifeel/icon_help.gif" width=15 height=15 border=0 align="absmiddle">
          <a onfocus=blur() href=# onclick=void(window.open('mem_confirm.php?url=register_form.php','mb_id','width=650,height=460,toolbar=no,scrollbars=1'))>정보수정</a>
          <img src="<?=$g4[path]?>/img/minifeel/icon_help.gif" width=15 height=15 border=0 align="absmiddle">
          <a onfocus=blur() href=# onclick=void(window.open('<?=$g4[bbs_path]?>/memo.php','mb_id','width=618,height=460,toolbar=no,scrollbars=1'))><FONT color="#ff8871;">쪽지</font></a>
          <img src="<?=$g4[path]?>/img/minifeel/friend_i.gif" border=0 align="absmiddle">
          <a onfocus=blur() href=# onclick=void(window.open('myfriend.php','friend_cfg','width=360,height=300,toolbar=no,scrollbars=1'))>친구관리</a>
          <? } else { ?>
          <td width="70">
          <img src="<?=$g4[path]?>/img/minifeel/friend_n.gif" border=0 align="absmiddle">
          <a onfocus=blur() href=# onclick=void(window.open('friend.php?mem=<?=$mb_id?>','friend_add','width=0,height=0,toolbar=no,scrollbars=no'))>친구등록</a>
<?}?>
</td></tr></table></td></tr>
<tr><td valign=top class=line></td></tr>
<tr><td valign=top height=8></td></tr></table></td></tr>
    <tr><td align="center" valign="top">
<table border=0 cellpadding="0" cellspacing="0" width="470" align="center">
<tr>
<td width="4" height="4"><img src="<?=$g4[path]?>/img/minifeel/bg_top_left.gif" width="4" height="4" border="0"></td>
<td width="100%" background="<?=$g4[path]?>/img/minifeel/bg_top_mid.gif" height="4"></td>
<td width="4" height="4"><img src="<?=$g4[path]?>/img/minifeel/bg_top_right.gif" width="4" height="4" border="0"></td>
</tr><tr>
<td width="4" background="<?=$g4[path]?>/img/minifeel/bg_mid_left.gif" height="4"></td>
<!-- 이곳에 내용넣기 -->
<td width="100%" valign=top align="center">
<table cellpadding="0" cellspacing="0" align="center">
<tr><td width="100%" height="5"></td></tr>
<tr><td width="100%">&nbsp;&nbsp;<img src="<?=$g4[path]?>/img/minifeel/icon1.gif" align="absmiddle"> 기본정보
</td></tr>
<tr><td width="100%" height="3"></td></tr>
<tr><td width="100%">
<table cellpadding="0" cellspacing="0" width="450" height=120 background="<?=$g4[path]?>/img/minifeel/bg_minifeel.gif" align="center">
  <tr><td width="100%">
      <table width="98%" height="100" border="0" cellpadding="0" cellspacing="0" align="center"><tr>
        <td width="55%" height="20"><img src="<?=$g4[path]?>/img/minifeel/icon3.gif"> 닉네임: <?=$mb_nick?> (ID: <?=$mb_id?>)&nbsp;
        <img height=13 src="<?=$g4[path]?>/img/minifeel/<?=$sex?>.gif" width=13 align=absMiddle>
        </td>
        <td width="15%" rowspan="3" align="center">
        <a onfocus=blur() href=# onclick=void(window.open('star.php?mb_id=<?=$mb_id?>','mb_id','width=500,height=550,toolbar=no,scrollbars=1'))>
      <?
        if ($s_birth > "0119" && $s_birth <= "0218") { echo "<img src=./images/star_01.gif border=0 title=물병자리>"; }
        else if ($s_birth > "0218" && $s_birth<= "0320") { echo "<img src=./images/star_02.gif border=0 title=물고기자리>"; }
        else if ($s_birth > "0320" && $s_birth <= "0420") { echo "<img src=./images/star_03.gif border=0 title=양자리>"; }
        else if ($s_birth > "0420" && $s_birth <= "0520") { echo "<img src=./images/star_04.gif border=0 title=황소자리>"; }
        else if ($s_birth > "0520" && $s_birth <= "0621") { echo "<img src=./images/star_05.gif border=0 title=쌍둥이자리>"; }
        else if ($s_birth > "0621" && $s_birth <= "0722") { echo "<img src=./images/star_06.gif border=0 title=게자리>"; }
        else if ($s_birth > "0722" && $s_birth <= "0822") { echo "<img src=./images/star_07.gif border=0 title=사자자리>"; }
        else if ($s_birth > "0822" && $s_birth <= "0922") { echo "<img src=./images/star_08.gif border=0 title=처녀자리>"; }
        else if ($s_birth > "0922" && $s_birth <= "1021") { echo "<img src=./images/star_09.gif border=0 title=천칭자리>"; }
        else if ($s_birth > "1021" && $s_birth <= "1121") { echo "<img src=./images/star_10.gif border=0 title=전갈자리>"; }
        else if ($s_birth > "1121" && $s_birth <= "1221") { echo "<img src=./images/star_11.gif border=0 title=사수자리>"; }
        else { echo "<img src=./images/star_12.gif border=0 title=염소자리>"; }
      ?>
        </a></td>
        <td width="30%" rowspan="4">
<? echo ("
    <table width='120' cellspacing='1' cellpadding='0' align='center' bgcolor='#CEC7C6'><tr><td bgcolor='white'>
<table width='100%' cellpadding='0' cellspacing='0' bgcolor='white' valign='bottom'>
<tr><td width='20%' valign='bottom' align='center' border='0' height='$height'>
");
            if ($p>0) {echo ("<img src=./images/bio1.gif width='20' height='$p1' title='$p' align='absbottom'>");}
            echo("</td><td width='25%' valign='bottom' align='center' height='$height'>");
            if ($e>0) {echo ("<img src=./images/bio2.gif width='20' height='$e1' title='$e' align='absbottom'>");}
            echo("</td><td width='25%' valign='bottom' align='center' height='$height'>");
            if ($m>0) {echo ("<img src=./images/bio4.gif width='20' height='$m1' title='$m' align='absbottom'>");}
            echo("</td><td width='25%' valign='bottom' align='center' height='$height'>");
            if ($i>0) {echo ("<img src=./images/bio3.gif width='20' height='$i1' title='$i' align='absbottom'>");}
            echo("</td></tr></table></td></tr><tr><td bgcolor='white'><table width='100%' cellpadding='0' cellspacing='0' bgcolor='white'><tr><td width='25%' valign='top' align='center' height='$height'>");
            if ($p<0) {$p=-$p; echo ("<img src=./images/bio5.gif width='20' height='$p2' title='-$p'>");}
            echo("</td><td width='25%' valign='top' align='center' height='$height'>");
            if ($e<0) {$e=-$e;echo ("<img src=./images/bio6.gif width='20' height='$e2' title='-$e'>");}
            echo("</td><td width='25%' valign='top' align='center' height='$height'>");
            if ($m<0) {$m=-$m;echo ("<img src=./images/bio8.gif width='20' height='$m2' title='-$m'>");}
            echo("</td><td width='25%' valign='top' align='center' height='$height'>");
            if ($i<0) {$i=-$i;echo ("<img src=./images/bio7.gif width='20' height='$i2' title='-$i'>");}
            echo("</td></tr></tr></table></td>"); ?>
        <tr><td bgcolor='white'>
            <table width='100%' cellpadding='0' cellspacing='0' bgcolor='white'><tr>
<td width='40' height='20'><div align='center'><font style='size:8pt;family:tahoma;color:gray;'><b>체력</b></div></font></td>
<td width='40'><div align='center'><font style='size:8pt;family:tahoma;color:gray;'><b>감성</b></div></font></td>
<td width='40'><div align='center'><font style='size:8pt;family:tahoma;color:gray;'><b>지성</b></div></font></td>
<td width='40'><div align='center'><font style='size:8pt;family:tahoma;color:gray;'><b>지각</b></div></font></td>
</tr></table></td></tr></table></td>
  </tr><tr>
        <td height="19"><img src="<?=$g4[path]?>/img/minifeel/icon3.gif"> 회원구분: <?=$level?></td>
      </tr><tr>
    <? if ($mb_id == "master") { ?>
        <td height="20"><img src="<?=$g4[path]?>/img/minifeel/icon3.gif"> 최종접속일 : 알 수 없음 </td>
    <? } else {?>
        <td height="20"><img src="<?=$g4[path]?>/img/minifeel/icon3.gif"> 최종접속일 : <?=$mb_today_login?></td>
    <? } ?>
      </tr><tr>
        <td width="70%" colspan="2"><img src="<?=$g4[path]?>/img/minifeel/ico_folder.gif"> 소개글:
        <? if ($mprofile !== "") { echo "$mprofile"; }
        else { echo "$mb_profile"; } ?>
      </td></tr></table></td></tr></table>
</td></tr>
<tr><td width="100%" height="10"></td></tr>
<tr><td width="100%" height="10">
<iframe src="<?=$g4[path]?>/bbs/board.php?bo_table=myperson&sca=<?=$mb_id?>" width="470" height="210" frameborder="0" marginwidth="0" marginheight="0" topmargin="0" scrolling="0"></iframe>
</td></tr></table></td>
<td width="4" background="<?=$g4[path]?>/img/minifeel/bg_mid_right.gif" height="4"></td>
</tr><tr>
<td width="4"><img src="<?=$g4[path]?>/img/minifeel/bg_but_left.gif" width="4" height="4" border="0"></td>
<td width="100%" background="<?=$g4[path]?>/img/minifeel/bg_but_mid.gif" height="4"></td>
<td width="4"><img src="<?=$g4[path]?>/img/minifeel/bg_but_right.gif" width="4" height="4" border="0"></td>
</tr></table></td></tr></table>
<table cellpadding="0" cellspacing="0" width="100%" align="center">
<tr><td width="100%" height=10></td></tr>
</table>
$by = substr("$birth",0,4);
$bm = substr("$birth",-4,2);
$bd = substr("$birth",-2,2);
$s_birth = "$bm$bd";
$sy = "$by";
$sm = "$bm";
$sd = "$bd";
----------------아래처럼---------------------------------------------

$by = substr($birth,0,4);
$bm = substr($birth,-4,2);
$bd = substr($birth,-2,2);
$s_birth = $bm$bd;
$sy = $by;
$sm = $bm;
$sd = $bd;

---------------------------------------------------------------------
 [ "" ]  <<=== 이거 변수에는 안쓰는데..요. [ "" ] 쓰면. 걍 $by 로 인식해서 63라인처럼 컴퓨터가 빼기를 못하지 않을가 해용.  ..echo로 인식해서리

아닌가....쩝... 맞으면 선택해주세요  ^^

맞으면 포인트 저 주세요 ^^ 얼룽용
아...해결했습니다.^^ 관리자 생년월일 공개를 안해서..오류가 났던거구요^^

뮤존님 포인트 드리겠습니다

알라뷰님 답변해 주셔서 감사드리구요~ 뮤존님두 감사드립니다~!!!
© SIRSOFT
현재 페이지 제일 처음으로