5시간동안 고생했는데.. 외부로그인 문제 정보
5시간동안 고생했는데.. 외부로그인 문제- WebGameCommunity 자기소개 아이디로 검색 회원게시물
- 조회 899
- 댓글 1
본문
미치겠습니다. ㅠㅠ 로그인눌려도 반응이없어요..
아래는 소스구요... 진짜 뭐가문제인지모르겠어요
http://parkhyunt.dothome.co.kr/gnuboard4/bbs/board.php?bo_table=eos_freeboard
로그인버튼을 눌려도 아예 폼이안넘어가네요;; 도와주세요 ㅠㅠ
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($g4['https_url']) {
$outlogin_url = $_GET['url'];
if ($outlogin_url) {
if (preg_match("/^\.\.\//", $outlogin_url)) {
$outlogin_url = urlencode($g4[url]."/".preg_replace("/^\.\.\//", "", $outlogin_url));
}
else {
$purl = parse_url($g4[url]);
if ($purl[path]) {
$path = urlencode($purl[path]);
$urlencode = preg_replace("/".$path."/", "", $urlencode);
}
$outlogin_url = $g4[url].$urlencode;
}
}
else {
$outlogin_url = $g4[url];
}
}
else {
$outlogin_url = $urlencode;
}
?>
<script type="text/javascript" src="<?=$g4[path]?>/js/capslock.js"></script>
<script type="text/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>
<!-- 로그인 전 외부로그인 시작 -->
<form name="fhead" method="post" onsubmit="return fhead_submit(this);" autocomplete="off" style="margin:0px;">
<input type="hidden" name="url" value="<?=$outlogin_url?>">
<!-- ImageReady Slices (login.psd) -->
<table width="322" height="58" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="4">
<a href="index.php"><img src="<?=$outlogin_skin_path?>/img/login_01.gif" width="18" height="57" alt="" border="0"></a></td>
<td colspan="3" rowspan="2">
<img src="<?=$outlogin_skin_path?>/img/login_02.gif" width="177" height="26" alt=""></td>
<td colspan="3">
<img src="<?=$outlogin_skin_path?>/img/login_03.gif" width="118" height="18" alt=""></td>
<td rowspan="3">
<img src="<?=$outlogin_skin_path?>/img/login_04.gif" width="9" height="48" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="<?=$outlogin_skin_path?>/img/login_05.gif" width="118" height="8" alt=""></td>
</tr>
<tr>
<td>
<input name="mb_id" type="text" size="12" maxlength="20" required itemname="아이디" value='아이디' onMouseOver='chkReset(this.form);' onFocus='chkReset(this.form);' style="border: 0px solid;"></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/login_07.gif" width="10" height="22" alt=""></td>
<td colspan="2">
<input type="password" class=ed size="10" maxlength="20" required itemname="패스워드" value='' onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' style="border: 0px solid;"></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/login_09.gif" width="9" height="22" alt=""></td>
<td>
<input type="image" src="<?=$outlogin_skin_path?>/img/login_10.gif" width="50" height="22" alt="" border="0"></td>
</tr>
<tr>
<td colspan="7">
<img src="<?=$outlogin_skin_path?>/img/login_11.gif" width="304" height="9" alt=""></td>
</tr>
<tr>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="18" height="1" alt=""></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="114" height="1" alt=""></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="10" height="1" alt=""></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="53" height="1" alt=""></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="59" height="1" alt=""></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="9" height="1" alt=""></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="50" height="1" alt=""></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="9" height="1" alt=""></td>
</tr>
</table>
</form>
<script type="text/javascript">
function fhead_submit(f)
{
if (!f.mb_id.value) {
alert("회원아이디를 입력하십시오.");
f.mb_id.focus();
return false;
}
if (document.getElementById('pw2').style.display!='none' && !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';";
?>
return true;
}
</script>
<!-- 로그인 전 외부로그인 끝 -->
</body>
</html>
아래는 소스구요... 진짜 뭐가문제인지모르겠어요
http://parkhyunt.dothome.co.kr/gnuboard4/bbs/board.php?bo_table=eos_freeboard
로그인버튼을 눌려도 아예 폼이안넘어가네요;; 도와주세요 ㅠㅠ
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($g4['https_url']) {
$outlogin_url = $_GET['url'];
if ($outlogin_url) {
if (preg_match("/^\.\.\//", $outlogin_url)) {
$outlogin_url = urlencode($g4[url]."/".preg_replace("/^\.\.\//", "", $outlogin_url));
}
else {
$purl = parse_url($g4[url]);
if ($purl[path]) {
$path = urlencode($purl[path]);
$urlencode = preg_replace("/".$path."/", "", $urlencode);
}
$outlogin_url = $g4[url].$urlencode;
}
}
else {
$outlogin_url = $g4[url];
}
}
else {
$outlogin_url = $urlencode;
}
?>
<script type="text/javascript" src="<?=$g4[path]?>/js/capslock.js"></script>
<script type="text/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>
<!-- 로그인 전 외부로그인 시작 -->
<form name="fhead" method="post" onsubmit="return fhead_submit(this);" autocomplete="off" style="margin:0px;">
<input type="hidden" name="url" value="<?=$outlogin_url?>">
<!-- ImageReady Slices (login.psd) -->
<table width="322" height="58" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="4">
<a href="index.php"><img src="<?=$outlogin_skin_path?>/img/login_01.gif" width="18" height="57" alt="" border="0"></a></td>
<td colspan="3" rowspan="2">
<img src="<?=$outlogin_skin_path?>/img/login_02.gif" width="177" height="26" alt=""></td>
<td colspan="3">
<img src="<?=$outlogin_skin_path?>/img/login_03.gif" width="118" height="18" alt=""></td>
<td rowspan="3">
<img src="<?=$outlogin_skin_path?>/img/login_04.gif" width="9" height="48" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="<?=$outlogin_skin_path?>/img/login_05.gif" width="118" height="8" alt=""></td>
</tr>
<tr>
<td>
<input name="mb_id" type="text" size="12" maxlength="20" required itemname="아이디" value='아이디' onMouseOver='chkReset(this.form);' onFocus='chkReset(this.form);' style="border: 0px solid;"></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/login_07.gif" width="10" height="22" alt=""></td>
<td colspan="2">
<input type="password" class=ed size="10" maxlength="20" required itemname="패스워드" value='' onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' style="border: 0px solid;"></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/login_09.gif" width="9" height="22" alt=""></td>
<td>
<input type="image" src="<?=$outlogin_skin_path?>/img/login_10.gif" width="50" height="22" alt="" border="0"></td>
</tr>
<tr>
<td colspan="7">
<img src="<?=$outlogin_skin_path?>/img/login_11.gif" width="304" height="9" alt=""></td>
</tr>
<tr>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="18" height="1" alt=""></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="114" height="1" alt=""></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="10" height="1" alt=""></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="53" height="1" alt=""></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="59" height="1" alt=""></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="9" height="1" alt=""></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="50" height="1" alt=""></td>
<td>
<img src="<?=$outlogin_skin_path?>/img/spacer.gif" width="9" height="1" alt=""></td>
</tr>
</table>
</form>
<script type="text/javascript">
function fhead_submit(f)
{
if (!f.mb_id.value) {
alert("회원아이디를 입력하십시오.");
f.mb_id.focus();
return false;
}
if (document.getElementById('pw2').style.display!='none' && !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';";
?>
return true;
}
</script>
<!-- 로그인 전 외부로그인 끝 -->
</body>
</html>
댓글 전체
<script type="text/javascript">
function fhead_submit(f)
{
if (!f.mb_id.value) {
alert("회원아이디를 입력하십시오.");
f.mb_id.focus();
return false;
}
if (document.getElementById('pw2').style.display!='none' && !f.mb_password.value) { // 여기가 문제.. document.getElementById('pw2').style.display!='none' 중에 pw2라는 개체 없음...
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';";
?>
return true;
}
</script>
function fhead_submit(f)
{
if (!f.mb_id.value) {
alert("회원아이디를 입력하십시오.");
f.mb_id.focus();
return false;
}
if (document.getElementById('pw2').style.display!='none' && !f.mb_password.value) { // 여기가 문제.. document.getElementById('pw2').style.display!='none' 중에 pw2라는 개체 없음...
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';";
?>
return true;
}
</script>