로그인,로그아웃시 페이지 설정에 대해 질문 드립니다. 정보
로그인,로그아웃시 페이지 설정에 대해 질문 드립니다.본문
안녕하세요 ...
다른게 아니라 제가 홈페이지를 하나 만들고 있습니다 헌데 문제는..
http://hoya777.hubweb.net/gg/adm 이 사이트에서 접속하셔서
아이디: test 비번: 1234 으로 로그인을 하면 보통 로그인창에 로그인이 되었다는 표시가 되잖아요 ?
예를들어 위에 아이디로 로그인을 하면 정보수정 로그아웃 회원포인트 등 이런것을 보이게 하고 싶은데요
웬걸 이상한 최근글게시판만 나옵니다 ㅠ ㅠ
로그인을 하면 이사이트http://hoya777.hubweb.net/gg/로 되는데 해결좀 부탁드립니다.
며칠째 이것만 보고 있습니다 ㅠ ㅠ
댓글 전체
일단 로그인 하는 부분이 없네요
head.php에 보면 <!--왼쪽메뉴-->라고 적힌 부분다음에 <? =outlogin('basic');?> 이부분이 없을 것 같네요.. 일단 이것이 있어야 여기서 로그인 하고, 값을 전송하면 action을 받는 페이지가 있는 건데..우선 <?=outlogin('스킨명');?> 이것을 찾아보셔야 하겠네요..^^ 그리고 여기서 여러가지 함수가 시작되어야 하는데..action값을 어느 페이지에 링크를 걸었는지..음..그 링크걸린 페이지를 찾아보시면될 것 같군요. 그리고 페이지를 만드는 방식은 미리 head와 tail이 만들어 져있고, 현재 보여주고자 하는 페이지의 메인부분을 만든다음에....아래위로 끼워맞추는 방식이라는 것을 염두에 두고 생각해보시길 바랍니다.
head.php에 보면 <!--왼쪽메뉴-->라고 적힌 부분다음에 <? =outlogin('basic');?> 이부분이 없을 것 같네요.. 일단 이것이 있어야 여기서 로그인 하고, 값을 전송하면 action을 받는 페이지가 있는 건데..우선 <?=outlogin('스킨명');?> 이것을 찾아보셔야 하겠네요..^^ 그리고 여기서 여러가지 함수가 시작되어야 하는데..action값을 어느 페이지에 링크를 걸었는지..음..그 링크걸린 페이지를 찾아보시면될 것 같군요. 그리고 페이지를 만드는 방식은 미리 head와 tail이 만들어 져있고, 현재 보여주고자 하는 페이지의 메인부분을 만든다음에....아래위로 끼워맞추는 방식이라는 것을 염두에 두고 생각해보시길 바랍니다.
head.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 = 1004;
?>
<html>
<head>
<script language="JavaScript" src="http://hoya777.hubweb.net/flash.js"></script>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
<meta name="generator" content="Namo WebEditor v5.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<p> </p>
<div id="layer1" style="width:1277px; height:796px; position:absolute; left:0px; top:0px; z-index:1;">
<table cellpadding="0" cellspacing="0" width="1800">
<tr>
<td width="1800" colspan="3"> <p><img src="http://hoya777.hubweb.net/home/line.jpg" width="1600" height="10" border="0"></p>
</td>
</tr>
<tr>
<td width="1800" colspan="3"> <p align="left"><script language="javascript">
flash('230','80','http://hoya777.hubweb.net/home/logo.swf');
</script><script language="javascript">
flash('680','80','http://hoya777.hubweb.net/home/menu.swf');
</script></p>
</td>
</tr>
<tr>
<td width="1800" height="11" colspan="3">
<p><script language="javascript">
flash('870','160','http://hoya777.hubweb.net/home/main1.swf');
</script></p>
</td>
</tr>
<tr>
<td width="94" height="123" rowspan="2">
<p> </p>
</td>
<td width="777" height="9">
<p align="left"> </p>
</td>
<td width="929" height="123" rowspan="2">
<p><!--오른쪽 움직이는 메뉴 -->
<!--오른쪽 움직이는 메뉴 시작-->
<!--오른쪽 움직이는 메뉴 스크립트시작-->
<script language="JavaScript">
<!--
self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
action = window.setInterval("heartBeat()",1);
function heartBeat() {
diffX = 0;
diffY = document.body.scrollTop;
if (diffY != lastScrollY) {
percent = .2 * (diffY - lastScrollY);
if (percent > 0) {
percent = Math.ceil(percent);
} else {
percent = Math.floor(percent);
}
document.all.layer_right.style.pixelTop += percent;
lastScrollY = lastScrollY + percent;
}
if (diffX != lastScrollX) {
percent = .2 * (diffX - lastScrollX);
if (percent > 0) {
percent = Math.ceil(percent);
} else {
percent = Math.floor(percent);
}
document.all.layer_right.style.pixelLeft += percent;
lastScrollY = lastScrollY + percent;
}
}
//-->
</script>
<!--움직이는 메뉴 스크립트끝-->
<!--오른쪽 움직이는 메뉴 div시작-->
<div id="layer_right" style="width:130px; height:400px; position:absolute; left:895px; top:203px; z-index:1;">
<table width="100" height="400" border='0' cellpadding='0' cellspacing='0'>
<tr>
<td> <script language="javascript">
flash('100','300','http://hoya777.hubweb.net/home/quick.swf');
</script></td>
</tr>
</table>
</div>
<!--오른쪽 움직이는 메뉴 div끝-->
<!--오른쪽 움직이는 메뉴 끝-->
<!--오른쪽 움직이는 메뉴 --> </p>
</td>
</tr>
<tr>
<td width="777">
<p align="left"><img src="http://hoya777.hubweb.net/home/title8.jpg" width="685" height="50" border="0"><br><img src="http://hoya777.hubweb.net/home/dot.jpg" width="20" height="10" border="0"><span style="font-size:9pt;"><font color="#666666">Home
> 로그인 > <b>회원가입 및 로그인</b> <br><img src="http://hoya777.hubweb.net/home/atitle8.jpg" width="685" height="50" border="0"> <br>
---------------------------------------------------------------------------------------------
여기서 <?=outlogin('스킨명')?> 이것을 어디에 넣어야 하나요ㅠ ㅠ ?
<?
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 = 1004;
?>
<html>
<head>
<script language="JavaScript" src="http://hoya777.hubweb.net/flash.js"></script>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
<meta name="generator" content="Namo WebEditor v5.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<p> </p>
<div id="layer1" style="width:1277px; height:796px; position:absolute; left:0px; top:0px; z-index:1;">
<table cellpadding="0" cellspacing="0" width="1800">
<tr>
<td width="1800" colspan="3"> <p><img src="http://hoya777.hubweb.net/home/line.jpg" width="1600" height="10" border="0"></p>
</td>
</tr>
<tr>
<td width="1800" colspan="3"> <p align="left"><script language="javascript">
flash('230','80','http://hoya777.hubweb.net/home/logo.swf');
</script><script language="javascript">
flash('680','80','http://hoya777.hubweb.net/home/menu.swf');
</script></p>
</td>
</tr>
<tr>
<td width="1800" height="11" colspan="3">
<p><script language="javascript">
flash('870','160','http://hoya777.hubweb.net/home/main1.swf');
</script></p>
</td>
</tr>
<tr>
<td width="94" height="123" rowspan="2">
<p> </p>
</td>
<td width="777" height="9">
<p align="left"> </p>
</td>
<td width="929" height="123" rowspan="2">
<p><!--오른쪽 움직이는 메뉴 -->
<!--오른쪽 움직이는 메뉴 시작-->
<!--오른쪽 움직이는 메뉴 스크립트시작-->
<script language="JavaScript">
<!--
self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
action = window.setInterval("heartBeat()",1);
function heartBeat() {
diffX = 0;
diffY = document.body.scrollTop;
if (diffY != lastScrollY) {
percent = .2 * (diffY - lastScrollY);
if (percent > 0) {
percent = Math.ceil(percent);
} else {
percent = Math.floor(percent);
}
document.all.layer_right.style.pixelTop += percent;
lastScrollY = lastScrollY + percent;
}
if (diffX != lastScrollX) {
percent = .2 * (diffX - lastScrollX);
if (percent > 0) {
percent = Math.ceil(percent);
} else {
percent = Math.floor(percent);
}
document.all.layer_right.style.pixelLeft += percent;
lastScrollY = lastScrollY + percent;
}
}
//-->
</script>
<!--움직이는 메뉴 스크립트끝-->
<!--오른쪽 움직이는 메뉴 div시작-->
<div id="layer_right" style="width:130px; height:400px; position:absolute; left:895px; top:203px; z-index:1;">
<table width="100" height="400" border='0' cellpadding='0' cellspacing='0'>
<tr>
<td> <script language="javascript">
flash('100','300','http://hoya777.hubweb.net/home/quick.swf');
</script></td>
</tr>
</table>
</div>
<!--오른쪽 움직이는 메뉴 div끝-->
<!--오른쪽 움직이는 메뉴 끝-->
<!--오른쪽 움직이는 메뉴 --> </p>
</td>
</tr>
<tr>
<td width="777">
<p align="left"><img src="http://hoya777.hubweb.net/home/title8.jpg" width="685" height="50" border="0"><br><img src="http://hoya777.hubweb.net/home/dot.jpg" width="20" height="10" border="0"><span style="font-size:9pt;"><font color="#666666">Home
> 로그인 > <b>회원가입 및 로그인</b> <br><img src="http://hoya777.hubweb.net/home/atitle8.jpg" width="685" height="50" border="0"> <br>
---------------------------------------------------------------------------------------------
여기서 <?=outlogin('스킨명')?> 이것을 어디에 넣어야 하나요ㅠ ㅠ ?
시험삼아 다음 줄에 넣어보세요...
</tr><tr><td align="left"><?=outlogin('basic');?></td></tr>
여기서 tr은 table row ... td는 table data을 줄여서 말함
윗줄(tr)과 아랫줄(tr)에서의 td 갯수가 다를 때는colspan을 이용...
<?=함수명('인자');?> 여기서 " ; " 이것을 빼먹으면 안됩니다. php에서 함수를 부르고 문장끝에는 ";"를 꼭 표시해야 합니다.
안그러면 eRRor발생 하지 않을까요? 헉 제가 써놓은 곳에서도 ";"를 빼먹었네요..음 기초적인건데 죄송합니다요..지금 수정했습니다요.
</tr><tr><td align="left"><?=outlogin('basic');?></td></tr>
여기서 tr은 table row ... td는 table data을 줄여서 말함
윗줄(tr)과 아랫줄(tr)에서의 td 갯수가 다를 때는colspan을 이용...
<?=함수명('인자');?> 여기서 " ; " 이것을 빼먹으면 안됩니다. php에서 함수를 부르고 문장끝에는 ";"를 꼭 표시해야 합니다.
안그러면 eRRor발생 하지 않을까요? 헉 제가 써놓은 곳에서도 ";"를 빼먹었네요..음 기초적인건데 죄송합니다요..지금 수정했습니다요.