[10,000 포인트] 로그인이 되지 않는 이유 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

[10,000 포인트] 로그인이 되지 않는 이유 정보

[10,000 포인트] 로그인이 되지 않는 이유

본문


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 

$url = '';
if ($g4['https_url']) {
    if (preg_match("/^\./", $urlencode))
        $url = $g4[url];
    else
        $url = $g4[url].$urlencode;
} else {
    $url = $urlencode;
}
?>
<script type="text/javascript" src="<?=$g4[path]?>/js/capslock.js"></script>
<div id="outlogin_wrap">
	<h2>로그인을 하시면 더 많은 서비스를 즐기실 수 있습니다.</h2>
	<form name="fhead" method="post" onsubmit="return fhead_submit(this);" autocomplete="off">
		<input type="hidden" name="url" value="<?=$url?>" />
		<table id="login_table">
			<tr>
				<td colspan="2"><input name="mb_id" type="text" class="ed" style="width:280px; padding:5px;" maxlength="20" required itemname="아이디" /></td>
			</tr>
			<tr>
				<td colspan="2"><input name="mb_password" id="outlogin_mb_password" type="password" class="ed"style="width:280px; padding:5px; margin-top:5px;" maxlength="20" itemname="패스워드" /></td>
			</tr>
			<tr>
				<td style="text-align:left;"><input type="checkbox" name="auto_login" style="margin-top:5px;" value="1" onclick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?')) { this.checked = true; } else { this.checked = false; } }" /> 자동로그인 사용</td>
				<td style="text-align:right;"><input type="submit" id="btnLogin" value="로 그 인" /></td>
			</tr>
		</table>
	</form>
</div>
<script type="text/javascript">
function fhead_submit(f)
{
    if (!f.mb_id.value)
    {
        alert("회원아이디를 입력하십시오.");
        f.mb_id.focus();
        return false;
    }

    if (!f.mb_password.value)
    {
        alert("패스워드를 입력하십시오.");
        f.mb_password.focus();
        return false;
    }

    <?
    if ($g4[https_url])
        echo "f.action = '$g4[https_url]/$g4[bbs]/login_check.php';";
    else
        echo "f.action = '$g4[bbs_path]/login_check.php';";
    ?>

    f.submit();
}
</script>
<!-- 수정 -->


로그인 스킨을 만들고 있는데 로그인이 되지 않네요.
코드 상에 문제가 있나요?

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT