채택완료

그누5 아이프레임 페이지 회원 접속

아이프레임 페이지에 회원만 접속할수 있도록 하는방법 없을까요?  (레벨2)

 

아래 소스식으로했는데 작동이 안되네요...   

 

http://swish.woweb.net/1.php 

아이프레임 페이지 소스 내용

 

 

Copy
<?
include_once("_common.php");
include_once("_head.php");
?>
<iframe src="http://swish.woweb.net/kim/1/frame.htm" width="796" height="900" scrolling="auto | yes | no" frameborder="1" align="left | center | right" name="사조영웅" ></iframe> 


<?
include_once("_tail.php");
?>
<?php if ($is_member) {  ?>

회원 전용

<?php } ?>
|

답변 2개 / 댓글 1개

채택된 답변
+20 포인트

Copy
<?php
include_once("_common.php");
if(!$is_member) alert("회원 가입 후 이용 가능합니다.");
include_once("_head.php");
?>
<iframe src="http://swish.woweb.net/kim/1/frame.htm" width="796" height="900" scrolling="auto | yes | no" frameborder="1" align="left | center | right" name="사조영웅" ></iframe> 

<?php
include_once("_tail.php");
?>

답변에 대한 댓글 1개

한글이 깨져보입니다.
파일 언어셋 확인해 보세요.

Copy
<?
include_once("_common.php");
include_once("_head.php");
?>
<?php if ($is_member) {  ?>
<iframe src="http://swish.woweb.net/kim/1/frame.htm" width="796" height="900" scrolling="auto | yes | no" frameborder="1" align="left | center | right" name="사조영웅" ></iframe> 
    
<? } else { ?>

회원만 확인 가능합니다.

<? } ?>

답변을 작성하려면 로그인이 필요합니다.