묻고답하기

등급을 정해 놔서 로그인을 하지 않았을 때 내용을 볼 수 없습니다
갤러리 게시판(http://themaktoob.com/bbs/zboard.php?id=vintage)을 만들고 있는데
로그인을 안 하고 게시물을 눌렀을 때
'로그인 해 주세요'라는 경고창을 띄우고 싶습니다
subject는 bbs/include/list_check.php에서 해결 봤는데, 이미지는 어떻게 해야 되는 지 모르겠습니다
뭘 고쳐야 될 지 모르겠네요

위 게시판에 해당 되는 list_main.php 부분입니다
어디를 고쳐야 되는 건지 고수님 부탁 드립니당

<?
 if($member[level]<=$setup[grant_view]||$is_admin) {
 $comment_num="$data[total_comment]";
/* Check New Comment <?=$comment_new?> */
if(!$comment_num==0) {
  $last_comment = mysql_fetch_array(mysql_query("select * from $t_comment"."_$id where parent='$data[no]' order by reg_date desc limit 1"));
  $last_comment_time = $last_comment['reg_date'];
  if(time()-$last_comment_time<60*60*12) $comment_new = "<font color=#800080 class=ve8>".$comment_num."</font><font color=orange class=icon4 style=\"cursor:hand\" title=\"".cut_str(stripslashes($last_comment['memo']),30)."\">*</font>";
  elseif(time()-$last_comment_time<60*60*24) $comment_new = "<font color=#800080 class=ve8>".$comment_num."</font><font color=gray class=icon4 style=\"cursor:hand\" title=\"".cut_str(stripslashes($last_comment['memo']),30)."\">*</font>";
  else $comment_new = "<font color=#800080 class=ve8>".$comment_num."</font>";
  }
  else $comment_new = "";
  } else {
 $comment_num="$data[total_comment]";
/* Check New Comment <?=$comment_new?> */
if(!$comment_num==0) {
  $last_comment = mysql_fetch_array(mysql_query("select * from $t_comment"."_$id where parent='$data[no]' order by reg_date desc limit 1"));
  $last_comment_time = $last_comment['reg_date'];
  if(time()-$last_comment_time<60*60*12) $comment_new = "<font color=#800080 class=ve8>".$comment_num."</font><font color=orange class=icon4 style=\"cursor:hand\">*</font>";
  elseif(time()-$last_comment_time<60*60*24) $comment_new = "<font color=#800080 class=ve8>".$comment_num."</font><font color=gray class=icon4 style=\"cursor:hand\">*</font>";
  else $comment_new = "<font color=#800080 class=ve8>".$comment_num."</font>";
  }
  else $comment_new = "";
  }
 $subject = str_replace(">","><font class=list_han>",$subject);
 $name= str_replace(">","><font class=list_han>",$name);
$date="<span title='".date("Y년 m월 d일 D H시 i분 s초", $data[reg_date])."'><font class=list_eng2>".date("m-d", $data[reg_date])."</font></span>";
 if(eregi("\.jpg|\.png|\.gif|\.jpeg",$data['file_name1'])&&@file_exists($data['file_name1'])) {
  $screenshot = $data['file_name1'];
  $image_info = @getimagesize($screenshot);
  if($image_info[0]>110) {
   $_x = 110;
   $_y = 110;
  }
  else {
   $_x = $image_info[0];
   $_y = $image_info[1];
  }
   if($member[level]<=$setup[grant_view]||$is_admin) {
  $img_a = "<a href='view.php?id=$id&no=$data[no]' onFocus='this.blur()'>";
  $img_a2 = "</a>";
  } else {
  $img_a = "";
  $img_a2 = "";
  }
 } elseif(eregi("\.jpg|\.png|\.gif|\.jpeg",$data['file_name2'])&&@file_exists($data['file_name2'])) {
  $screenshot = $data['file_name2'];
  $image_info = @getimagesize($screenshot);
  if($image_info[0]>110) {
   $_x = 110;
   $_y = 110;
  }
  else {
   $_x = $image_info[0];
   $_y = $image_info[1];
  }
     if($member[level]<=$setup[grant_view]||$is_admin) {
  $img_a = "<a href='view.php?id=$id&no=$data[no]' onFocus='this.blur()'>";
  $img_a2 = "</a>";
    } else {
  $img_a = "";
  $img_a2 = "";
  }
 } else {
  $screenshot=$dir."/t.gif";
  $_x = 110;
  $_y = 110;
  $img_a = $img_a2 = "";
 }
?>
  <th class=thm8 width=<?echo (100 / $max_show_image);?>% valign=top>
    <table border=0 cellspacing=0 cellpadding=0  width=<?=$size_factor*1.01?> style='table-layout:fixed;'>
               <tr>
                <td align=center style='padding:10;'>
      <table border=0 cellspacing=0 cellpadding=0 width=122 style='table-layout:fixed;'>
       <tr><td widh=122 height=122 style='padding:5;border:1 #F0F0F0 solid;' bgcolor=#FAFAFA style='FILTER:dropshadow(color=#e6b1b7,offX=1,offY=1,positive=1);'>
       <?=$img_a?><img src="<?=$screenshot?>" width=<?=$_x?> height=<?=$_y?> border=0 onMouseOver="this.className='imgover'" onMouseOut="this.className='imgbase'" class="imgbase"></td>
       </tr>
       <tr><td align=center style='word-break:break-all;padding:5 0 0 0;'><?=$hide_cart_start?><input type=checkbox name=cart value="<?=$data[no]?>"><?=$hide_cart_end?><?=$icon?><?=$subject?> <?=$comment_new?></td>
                      </table>
          </td>
         </tr>
   </table></th>
<?
  $image_loop++;
  if($image_loop>=$max_show_image)
  {
     echo"
               </tr>
        <tr>
         <td colspan=$max_show_image class='line1'></td>
        </tr>";
     $image_loop=0;
  }
?>
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
곰탱이왕자 이미지 뜨는게 너무 느립니다. 왜그럴까요  
백용권 회원가입을 두개로 나누고 싶어요 가르쳐주세요 [1] 2009.11.25 by NineTail
yujin. bash.history 내용 해석좀 부탁 드립니다. [1] 2009.11.25 by 피키4
장윤발 제로보드xe 글씨  
손기혁247 관리자 페이지에 접속하면 이런 애러 메세지가 뜨네요.. ㅠㅠ  
아모란 회원 정보 수정시 프로필 이미지 등록이 안되요.. file  
박하향풍선껌 XE Offical 게시판 스킨에 동영상 재생이 안됩니다 [1] file 2009.12.30 by 백성찬
제스 .ru 도메인 한국업체에서 호스팅지원받을수있나요?  
작은상자 xe 파일들 tar로 백업하는데 오류가 발생하네요. [2] 2009.11.24 by 공듀
햇살만가득 제로보드4의 데이타를 xe 에서 사용하고싶습니다2 [1] 2009.11.24 by DuRi
:SM[狼]늑대: xe삭제시 권한없음 [3] 2009.11.24 by DuRi
win win xe.1.3.0.tgz 설치방법 좀 알려주세요!! [2] file 2009.11.24 by 휘즈
두루두루 XE 설치후 모듈을 찾을 수 없다는데요.. [1] 2009.11.24 by 뒷뜰에핀행복
유바마님 고수님~ 갤러리 이미지 클릭 → 로그인 해 주세요를 띄우고 싶은데요  
SO.. 외부로그인 위젯 삽입방법 (질문수정) [1] 2009.11.24 by DuRi
Cityhunter Textyle 쉬운 설치 후, 글쓰기 안 됩니다.  
장윤발 제로보드4설치후 [1] 2009.11.24 by ememo
병후니짱 탭메뉴 작동중 문의사항  
aroma01 동영상 주소 확장변수 사용법 file  
제시카조아 첨부파일 첨부하면 키보드가 영문만 먹어요~ 흑흑  
commando 서비스 관리에 게시판 항목이 없습니다. 설치가 잘못된 건지요? [1] file 2009.11.24 by SO..
mcamoz 레이아웃 편집에서 미리보기가 안됩니다... [1] file 2009.11.24 by 뒷뜰에핀행복
으아악. 게시판/페이지 링크를 찾아 가지를 못하네요. [2] file 2009.11.24 by DuRi
푸른바다 html 파일 올리기 [1] 2009.11.24 by a
예준 왕 초보^^ xe설치후... [1] 2009.11.24 by 백성찬
윤스키 이모티콘 팝업 창에 나오는 이미지 크기 조절.. [1] 2009.11.24 by 하늘03
우냠냠 글작성이나,댓글작성시 특정한분이 소스가삽입됩니다.. [1] 2009.11.24 by 백성찬
쏘쿨민 제로보드XE로 바꿈과 동시에 [2] 2009.11.24 by Gekkou
김예찬967 1.0.6 -> 1.3 업댓이후 레이아웃 생성이안됩니다. [2] 2009.11.24 by Gekkou
최정훈594 기본회원가입폼의 글자색 변경법? [1] file 2009.11.24 by 궁금이2