특정페이지에 제한걸기에 대한 답변을 구합니다.
아래의 페이지를 회원과 권한별로 접속할수 있게 하고 싶은데요??
검색을 해봐도 딱히 답이 없는것 같아서
실례를 무릎쓰고 고수님들의 조언을 구합니다.
많은 조언바랍니다.!!
[소해당페이지 소스]
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 100;
?>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-bottom: 0px;
margin-right: 0px;
background-image: url();
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style></head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="998" valign="top"><table width="998" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="998" valign="top"><table width="998" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="316" height="780" valign="top" background="../hospital/images/board/menu_img_bg.gif"><script language="javascript" src="../hos_obe_menu.js"></script></td>
<td width="649" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../hospital/images/board/top_img.gif" width="660" height="38"></td>
</tr>
<tr>
<td><script language="javascript" src="../hos_info_tle1.js"></script></td>
</tr>
<tr>
<td align="center"><img src="hospital/images/obe/tle1.gif" width="660" height="104"></td>
</tr>
<tr>
<td align="center"><img src="hospital/images/obe/1_con_tle.gif" width="650" height="57"></td>
</tr>
<tr>
<td align="center"><img src="hospital/images/obe/1_con_img1.gif" width="650" height="230"></td>
</tr>
<tr>
<td align="center"><img src="hospital/images/obe/1_con_img2.gif" width="650" height="110"></td>
</tr>
<tr>
<td align="center"><img src="hospital/images/obe/1_con_img3.gif" width="650" height="155"></td>
</tr>
<tr>
<td align="center"><img src="hospital/images/obe/1_con_img4.gif" width="650" height="181"></td>
</tr>
<tr>
<td>
<?
include_once("./hos_sub_tail.php");
?>
검색을 해봐도 딱히 답이 없는것 같아서
실례를 무릎쓰고 고수님들의 조언을 구합니다.
많은 조언바랍니다.!!
[소해당페이지 소스]
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 100;
?>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-bottom: 0px;
margin-right: 0px;
background-image: url();
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style></head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="998" valign="top"><table width="998" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="998" valign="top"><table width="998" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="316" height="780" valign="top" background="../hospital/images/board/menu_img_bg.gif"><script language="javascript" src="../hos_obe_menu.js"></script></td>
<td width="649" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../hospital/images/board/top_img.gif" width="660" height="38"></td>
</tr>
<tr>
<td><script language="javascript" src="../hos_info_tle1.js"></script></td>
</tr>
<tr>
<td align="center"><img src="hospital/images/obe/tle1.gif" width="660" height="104"></td>
</tr>
<tr>
<td align="center"><img src="hospital/images/obe/1_con_tle.gif" width="650" height="57"></td>
</tr>
<tr>
<td align="center"><img src="hospital/images/obe/1_con_img1.gif" width="650" height="230"></td>
</tr>
<tr>
<td align="center"><img src="hospital/images/obe/1_con_img2.gif" width="650" height="110"></td>
</tr>
<tr>
<td align="center"><img src="hospital/images/obe/1_con_img3.gif" width="650" height="155"></td>
</tr>
<tr>
<td align="center"><img src="hospital/images/obe/1_con_img4.gif" width="650" height="181"></td>
</tr>
<tr>
<td>
<?
include_once("./hos_sub_tail.php");
?>
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 4개
// pass
} else {
alert("회원만 접속가능!");
}
(꾸벅)
한가지 더 질문이 있는데여??
"회원만 접속가능!" 확인누르면
로그인페이지로 이동하고 싶은데 어떻게 처리하면 좋을까요??
답변부탁드릴께요??
정확하게 어디에 붙여 넣어야 하는지요?