항상 좋은 답변 주시는 분들께 감사드립니다.
덕분에 홈피를 잘 만들어서 좋아하고 있었는데,
크롬에서는 로그인이 안된다는 사실이 발견되었네요. ㅠㅠ
외부로그인만을 이용하는데,
익스플로러에서 잘 되어서, 잘 된다고만 생각하고 있었거든요.
로그인 아이콘을 눌러도 아무 반응이 없어요. 흑
문제가 뭔지 아시는 분, 도움 부탁드려요.
제가 쓰는 아웃로긴 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="/gnuboard/login.php">
<tr height="20">
<td width="35"><img src="<?=$outlogin_skin_path?>/img/text_id.gif" width="31" height="9"></td>
<td width="75" align="center"><input name="mb_id" type="text" maxlength="20" required itemname="아이디" value='' onMouseOver='chkReset(this.form);' onfocus="this.value=''" class='login_input'></td>
<td width="46"> <img src="<?=$outlogin_skin_path?>/img/text_pw.gif" width="42" height="9"></td>
<td id=pw1 width="78" align="center"><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" align="center"><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" valign="top"><input type="checkbox" name="auto_login" value="1" onclick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 주의하여 주십시오.\n\nWill you use the autologin option?')) { this.checked = true; } else { this.checked = false; } }"></td>
<td width="33"><input type="image" src="<?=$outlogin_skin_path?>/img/login.gif" width="29" height="11"></td>
<td width="53"><a href="javascript:win_password_lost();"><img src="<?=$outlogin_skin_path?>/img/id_pw.gif" width="49" height="11" border="0"></a></td>
<td width="33"><div align="right"><a href="javascript:win_register();"><img src="<?=$outlogin_skin_path?>/img/join.gif" width="29" height="11" border="0"></a></div></td>
<td width="20"></td>
</tr>
</form>
</table>
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="/gnuboard/login.php">
<tr height="20">
<td width="35"><img src="<?=$outlogin_skin_path?>/img/text_id.gif" width="31" height="9"></td>
<td width="75" align="center"><input name="mb_id" type="text" maxlength="20" required itemname="아이디" value='' onMouseOver='chkReset(this.form);' onfocus="this.value=''" class='login_input'></td>
<td width="46"> <img src="<?=$outlogin_skin_path?>/img/text_pw.gif" width="42" height="9"></td>
<td id=pw1 width="78" align="center"><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" align="center"><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" valign="top"><input type="checkbox" name="auto_login" value="1" onclick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 주의하여 주십시오.\n\nWill you use the autologin option?')) { this.checked = true; } else { this.checked = false; } }"></td>
<td width="33"><input type="image" src="<?=$outlogin_skin_path?>/img/login.gif" width="29" height="11"></td>
<td width="53"><a href="javascript:win_password_lost();"><img src="<?=$outlogin_skin_path?>/img/id_pw.gif" width="49" height="11" border="0"></a></td>
<td width="33"><div align="right"><a href="javascript:win_register();"><img src="<?=$outlogin_skin_path?>/img/join.gif" width="29" height="11" border="0"></a></div></td>
<td width="20"></td>
</tr>
</form>
</table>
<script language="JavaScript">
function fhead_submit(f)
{
f.action = "<?=$g4[bbs_path]?>/login_check.php";
f.submit();
}
</script>
<!-- 로그인 전 외부로그인 끝 -->
function fhead_submit(f)
{
f.action = "<?=$g4[bbs_path]?>/login_check.php";
f.submit();
}
</script>
<!-- 로그인 전 외부로그인 끝 -->
|
답변 3개 / 댓글 1개
답변을 작성하려면 로그인이 필요합니다.