고수 님들 로그인 제발 도워 주세요 ~ 정보
고수 님들 로그인 제발 도워 주세요 ~본문
현재 rolo 님의 팁으로 로그아웃은 아주 잘 됨니다 .. .
근데 로그인이 페지유지가 않 됨니다 ..
여기 그누 팁과 질문답변 에서 검색하여 해보앗는데 전부 않 됨니다 ...
현재 <input type="hidden" name="url" value="<?=$urlencode?>">
이렇게 되여 잇슴니다 .. 근데 로그인시 현재페지 유지가 되지 않슴니다 ..
고수분 계심 조언 부탁함니다 ...
댓글 전체
반드시 포함되어야 한다는 코드에 주목!
유아원님 감사 함니다 ..
근데 반드시 포함되여야 하는 코드 전부 포함이 되여 잇는데 로그인페지 유지가 되지 않슴니다 .. .
어디가 문제인지 ..
몇달째 수정해보앗지만 도저히 로그인페지유지는 되지 않 슴니다 ...
근데 반드시 포함되여야 하는 코드 전부 포함이 되여 잇는데 로그인페지 유지가 되지 않슴니다 .. .
어디가 문제인지 ..
몇달째 수정해보앗지만 도저히 로그인페지유지는 되지 않 슴니다 ...
로그인이 유지되지 않는 페이지의 소스를 보고 싶네요~~
가을님
outlogin.skin.1.php 에는
<input type="hidden" name="url" value="<?=$urlencode?>">
outlogin.skin.2.php에는
<a href="<?=$g4[bbs_path]?>/logout.php?url=<?=$urlencode?>">
이렇게 되여 잇는 상태임니다 ...
도무지 어찌 된일인지 전혀 모르겟슴니다 ....
그리고 유아원님 소스 올려 드림니다 ..
// 엠파스 로긴 참고
var bReset = true;
function chkReset(f)
{
if (bReset) { if ( f.mb_id.value == '아이디' ) f.mb_id.value = ''; bReset = false; }
document.getElementById("pw1").style.display = "none";
document.getElementById("pw2").style.display = "";
}
</script>
<style>
.login_input { border:1px solid #CCCCCC; height:18px; width:75px;}
</style>
<!-- 로그인 전 외부로그인 시작 -->
<table width="" border="0" cellpadding="0" cellspacing="0">
<form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off">
<input type="hidden" name="url" value="">
<tr>
<TD width="58"><A href=".."><IMG src="../template/svc_main/img/top_011.gif" width="58" height="49" border=0></A></TD>
<td width="75" background="../template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input name="mb_id" type="text" maxlength="20" required itemname="아이디" value='아이디' onMouseOver='chkReset(this.form);' onfocus="this.value=''" class='login_input'> </td>
<!-- <td width="58"><img src="../skin/outlogin/svc_basic/img/pw.gif" width="58" height="18" border="0"></td> -->
<td id=pw1 width="75" background="../template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input type="text" maxlength="20" required itemname="패스워드" value='패스워드' onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' class='login_input'></td>
<td id=pw2 style='display:none;' width="75" background="../template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input name="mb_password" type="password" maxlength="20" required itemname="패스워드" onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' class='login_input'></td>
<td width="20" background="../template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input type="checkbox" name="auto_login" value="1" onclick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?')) { this.checked = true; } else { this.checked = false; } }"> </td>
<!-- <td style='padding:0 5 0 0'>AUTO</td> -->
<!-- <td width="72" background="../template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><a href="javascript:win_password_forget();"><img src="../skin/outlogin/svc_basic/img/id_pw.gif" width="68" height="18" border="0"></a></td> -->
<TD width="41" background="../template/svc_main/img/top_0bg.gif"><input type="image"
src="../template/svc_main/img/top_02.gif" width="41" height="49" border=0></TD>
<TD background="../template/svc_main/img/top_0bg.gif" width="79"><A href="../bbs/register_form.php"><IMG
src="../template/svc_main/img/top_03.gif" width="79" height="49" border=0></A></TD>
<TD width="52"><A onfocus=this.blur();
href="javascript:goLocate('index.php')"><IMG
src="../template/svc_main/img/top_06.gif" width="52" height="49" border=0></A></TD>
</tr>
</form>
</table>
<script language="JavaScript">
function fhead_submit(f)
{
f.action = "../bbs/login_check.php";
f.submit();
}
</script>
<!-- 로그인 전 외부로그인 끝 -->
소스 보기에서 보면 이렇게 되여 잇슴니다 ..
outlogin.skin.1.php 에는
<input type="hidden" name="url" value="<?=$urlencode?>">
outlogin.skin.2.php에는
<a href="<?=$g4[bbs_path]?>/logout.php?url=<?=$urlencode?>">
이렇게 되여 잇는 상태임니다 ...
도무지 어찌 된일인지 전혀 모르겟슴니다 ....
그리고 유아원님 소스 올려 드림니다 ..
// 엠파스 로긴 참고
var bReset = true;
function chkReset(f)
{
if (bReset) { if ( f.mb_id.value == '아이디' ) f.mb_id.value = ''; bReset = false; }
document.getElementById("pw1").style.display = "none";
document.getElementById("pw2").style.display = "";
}
</script>
<style>
.login_input { border:1px solid #CCCCCC; height:18px; width:75px;}
</style>
<!-- 로그인 전 외부로그인 시작 -->
<table width="" border="0" cellpadding="0" cellspacing="0">
<form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off">
<input type="hidden" name="url" value="">
<tr>
<TD width="58"><A href=".."><IMG src="../template/svc_main/img/top_011.gif" width="58" height="49" border=0></A></TD>
<td width="75" background="../template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input name="mb_id" type="text" maxlength="20" required itemname="아이디" value='아이디' onMouseOver='chkReset(this.form);' onfocus="this.value=''" class='login_input'> </td>
<!-- <td width="58"><img src="../skin/outlogin/svc_basic/img/pw.gif" width="58" height="18" border="0"></td> -->
<td id=pw1 width="75" background="../template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input type="text" maxlength="20" required itemname="패스워드" value='패스워드' onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' class='login_input'></td>
<td id=pw2 style='display:none;' width="75" background="../template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input name="mb_password" type="password" maxlength="20" required itemname="패스워드" onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' class='login_input'></td>
<td width="20" background="../template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input type="checkbox" name="auto_login" value="1" onclick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?')) { this.checked = true; } else { this.checked = false; } }"> </td>
<!-- <td style='padding:0 5 0 0'>AUTO</td> -->
<!-- <td width="72" background="../template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><a href="javascript:win_password_forget();"><img src="../skin/outlogin/svc_basic/img/id_pw.gif" width="68" height="18" border="0"></a></td> -->
<TD width="41" background="../template/svc_main/img/top_0bg.gif"><input type="image"
src="../template/svc_main/img/top_02.gif" width="41" height="49" border=0></TD>
<TD background="../template/svc_main/img/top_0bg.gif" width="79"><A href="../bbs/register_form.php"><IMG
src="../template/svc_main/img/top_03.gif" width="79" height="49" border=0></A></TD>
<TD width="52"><A onfocus=this.blur();
href="javascript:goLocate('index.php')"><IMG
src="../template/svc_main/img/top_06.gif" width="52" height="49" border=0></A></TD>
</tr>
</form>
</table>
<script language="JavaScript">
function fhead_submit(f)
{
f.action = "../bbs/login_check.php";
f.submit();
}
</script>
<!-- 로그인 전 외부로그인 끝 -->
소스 보기에서 보면 이렇게 되여 잇슴니다 ..
<input type="hidden" name="url" value=""> 이렇게 되어 있네요.
예 ~
분명 outlogin.skin.1.php 에서
<input type="hidden" name="url" value="<?=$urlencode?>">
이런 식으로 되여 잇는데 IE 에서 소스보기를 하면
<input type="hidden" name="url" value="">
이런 식으로 되여 잇슴니다 ...
먼 문제인지 .. 참으로 답답함니다 ...
분명 outlogin.skin.1.php 에서
<input type="hidden" name="url" value="<?=$urlencode?>">
이런 식으로 되여 잇는데 IE 에서 소스보기를 하면
<input type="hidden" name="url" value="">
이런 식으로 되여 잇슴니다 ...
먼 문제인지 .. 참으로 답답함니다 ...
다시한번 outlogin.skin.1.php 파일을 확인해 보시기 바랍니다.
바로 적혀 있다면
<input type="hidden" name="url" value="현재페이지 경로">
로 나와야 정상입니다.
바로 적혀 있다면
<input type="hidden" name="url" value="현재페이지 경로">
로 나와야 정상입니다.
여러번이고 outlogin.skin.1.php 파일을 확인해 보앗는데 이상 없슴니다 ...
아래 outlogin.skin.1.php 소스 첨부함니다 .. .
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<script type="text/javascript" language=JavaScript>
// 엠파스 로긴 참고
var bReset = true;
function chkReset(f)
{
if (bReset) { if ( f.mb_id.value == '아이디' ) f.mb_id.value = ''; bReset = false; }
document.getElementById("pw1").style.display = "none";
document.getElementById("pw2").style.display = "";
}
</script>
<style>
.login_input { border:1px solid #CCCCCC; height:18px; width:75px;}
</style>
<!-- 로그인 전 외부로그인 시작 -->
<table width="" border="0" cellpadding="0" cellspacing="0">
<form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off">
<input type="hidden" name="url" value="<?=$urlencode?>">
<tr>
<TD width="58"><A href="<?=$g4[path]?>"><IMG src="<?=$g4[path]?>/template/svc_main/img/top_011.gif" width="58" height="49" border=0></A></TD>
<td width="75" background="<?=$g4[path]?>/template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input name="mb_id" type="text" maxlength="20" required itemname="아이디" value='아이디' onMouseOver='chkReset(this.form);' onfocus="this.value=''" class='login_input'> </td>
<!-- <td width="58"><img src="<?=$outlogin_skin_path?>/img/pw.gif" width="58" height="18" border="0"></td> -->
<td id=pw1 width="75" background="<?=$g4[path]?>/template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input type="text" maxlength="20" required itemname="패스워드" value='패스워드' onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' class='login_input'></td>
<td id=pw2 style='display:none;' width="75" background="<?=$g4[path]?>/template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input name="mb_password" type="password" maxlength="20" required itemname="패스워드" onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' class='login_input'></td>
<td width="20" background="<?=$g4[path]?>/template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input type="checkbox" name="auto_login" value="1" onclick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?')) { this.checked = true; } else { this.checked = false; } }"> </td>
<!-- <td style='padding:0 5 0 0'>AUTO</td> -->
<!-- <td width="72" background="<?=$g4[path]?>/template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><a href="javascript:win_password_forget();"><img src="<?=$outlogin_skin_path?>/img/id_pw.gif" width="68" height="18" border="0"></a></td> -->
<TD width="41" background="<?=$g4[path]?>/template/svc_main/img/top_0bg.gif"><input type="image"
src="<?=$g4[path]?>/template/svc_main/img/top_02.gif" width="41" height="49" border=0></TD>
<TD background="<?=$g4[path]?>/template/svc_main/img/top_0bg.gif" width="79"><A href="<?=$g4[bbs_path]?>/register_form.php"><IMG
src="<?=$g4[path]?>/template/svc_main/img/top_03.gif" width="79" height="49" border=0></A></TD>
<TD width="52"><A onfocus=this.blur();
href="javascript:goLocate('index.php')"><IMG
src="<?=$g4[path]?>/template/svc_main/img/top_06.gif" width="52" height="49" border=0></A></TD>
</tr>
</form>
</table>
<script language="JavaScript">
function fhead_submit(f)
{
f.action = "<?=$g4[bbs_path]?>/login_check.php";
f.submit();
}
</script>
<!-- 로그인 전 외부로그인 끝 -->
아래 outlogin.skin.1.php 소스 첨부함니다 .. .
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<script type="text/javascript" language=JavaScript>
// 엠파스 로긴 참고
var bReset = true;
function chkReset(f)
{
if (bReset) { if ( f.mb_id.value == '아이디' ) f.mb_id.value = ''; bReset = false; }
document.getElementById("pw1").style.display = "none";
document.getElementById("pw2").style.display = "";
}
</script>
<style>
.login_input { border:1px solid #CCCCCC; height:18px; width:75px;}
</style>
<!-- 로그인 전 외부로그인 시작 -->
<table width="" border="0" cellpadding="0" cellspacing="0">
<form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off">
<input type="hidden" name="url" value="<?=$urlencode?>">
<tr>
<TD width="58"><A href="<?=$g4[path]?>"><IMG src="<?=$g4[path]?>/template/svc_main/img/top_011.gif" width="58" height="49" border=0></A></TD>
<td width="75" background="<?=$g4[path]?>/template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input name="mb_id" type="text" maxlength="20" required itemname="아이디" value='아이디' onMouseOver='chkReset(this.form);' onfocus="this.value=''" class='login_input'> </td>
<!-- <td width="58"><img src="<?=$outlogin_skin_path?>/img/pw.gif" width="58" height="18" border="0"></td> -->
<td id=pw1 width="75" background="<?=$g4[path]?>/template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input type="text" maxlength="20" required itemname="패스워드" value='패스워드' onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' class='login_input'></td>
<td id=pw2 style='display:none;' width="75" background="<?=$g4[path]?>/template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input name="mb_password" type="password" maxlength="20" required itemname="패스워드" onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' class='login_input'></td>
<td width="20" background="<?=$g4[path]?>/template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><input type="checkbox" name="auto_login" value="1" onclick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?')) { this.checked = true; } else { this.checked = false; } }"> </td>
<!-- <td style='padding:0 5 0 0'>AUTO</td> -->
<!-- <td width="72" background="<?=$g4[path]?>/template/svc_main/img/top_0bg.gif" style='padding-bottom:8;'><a href="javascript:win_password_forget();"><img src="<?=$outlogin_skin_path?>/img/id_pw.gif" width="68" height="18" border="0"></a></td> -->
<TD width="41" background="<?=$g4[path]?>/template/svc_main/img/top_0bg.gif"><input type="image"
src="<?=$g4[path]?>/template/svc_main/img/top_02.gif" width="41" height="49" border=0></TD>
<TD background="<?=$g4[path]?>/template/svc_main/img/top_0bg.gif" width="79"><A href="<?=$g4[bbs_path]?>/register_form.php"><IMG
src="<?=$g4[path]?>/template/svc_main/img/top_03.gif" width="79" height="49" border=0></A></TD>
<TD width="52"><A onfocus=this.blur();
href="javascript:goLocate('index.php')"><IMG
src="<?=$g4[path]?>/template/svc_main/img/top_06.gif" width="52" height="49" border=0></A></TD>
</tr>
</form>
</table>
<script language="JavaScript">
function fhead_submit(f)
{
f.action = "<?=$g4[bbs_path]?>/login_check.php";
f.submit();
}
</script>
<!-- 로그인 전 외부로그인 끝 -->
http://morssola.co.kr/data/house/main.php?mb_id=aone
위 링크에서 좌측 상단의 로그인 버튼을 보세용~
다른 페이지로 갔다가 다시 되돌아오죠~
(로그인시)
실험용
아이디/패스워드
test/1
test1/1
test2/1
test3/1
<?
if (!$member[mb_id]) {
echo "<a href='{$g4[bbs_path]}/login.php?url={$urlencode}'>로그인</a>";
} else {
echo "<a href='{$g4[bbs_path]}/logout.php'>로그아웃</a>";
}
?>
위 링크에서 좌측 상단의 로그인 버튼을 보세용~
다른 페이지로 갔다가 다시 되돌아오죠~
(로그인시)
실험용
아이디/패스워드
test/1
test1/1
test2/1
test3/1
<?
if (!$member[mb_id]) {
echo "<a href='{$g4[bbs_path]}/login.php?url={$urlencode}'>로그인</a>";
} else {
echo "<a href='{$g4[bbs_path]}/logout.php'>로그아웃</a>";
}
?>