외부로그인에서 뭔가 오류가 있는것같은대;; 정보
외부로그인에서 뭔가 오류가 있는것같은대;;관련링크
http://dreamwas.net
183회 연결
본문
페이지가 다 열리면 "완료" 라고 나와야되는대
이상하게
"작업을 마쳤으나 페이지에 오류가 있습니다." 라고 나오내요.
뭐가문제인지 알아보려고 이것저것 지워보면서 확인해보니
외부로그인을 지우면 "완료" 라고 나타납니다.
----outlogin.skin.1.php----
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$url = '';
if ($g4['https_url']) {
if (preg_match("/^\./", $urlencode))
$url = $g4[url];
else
$url = $g4[url].$urlencode;
} else {
$url = $urlencode;
}
// 아이디 자동저장
$ck_id_save = get_cookie("ck_id_save");
if ($ck_id_save) {
$ch_id_save_chk = "checked";
$ck_id_save = "{$ck_id_save}";
} else {
$ck_id_save = "아이디";
}
$home_name = get_text($config[cf_home_name]);
?>
<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>
.auto_login { font-family:dotum; font-size:8pt; padding-top:8px; padding-bottom:3px; color:#666666; letter-spacing:-0.5px; }
.login_input { font-family:dotum; font-size:8pt; color:#777777; border-top:1px solid #d9d9d9; border-bottom:1px solid #d9d9d9; border-left:1px solid #d9d9d9; border-right:1px solid #d9d9d9; letter-spacing:0px; padding-top:3px; padding-left:5; padding-right:0; padding-bottom:0; width:116px; height:18px; }
.login_text1 { font-family:dotum; font-size:8pt; color:#777777; padding-top:5px; color:#999999; padding-right:10px; }
</style>
<!-- 로그인 전 외부로그인 시작 -->
<form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off" style="margin:0">
<input type="hidden" name="url" value="<?=$url?>">
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#5997D3" style="border-collapse:collapse;">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td class="login_text1"> <b>로그인</b></td></tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr height="2"><td background="<?=$outlogin_skin_path?>/img/_bar.gif"></td></tr>
<tr height="5"><td></td></tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="8" rowspan="3"></td>
<td><input name="mb_id" type="text" class="login_input" maxlength="20" required itemname="아이디" value='아이디' onMouseOver='chkReset(this.form);' onFocus='chkReset(this.form);' tabIndex=3>
</td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="14">
<span><input type='checkbox' id='id_save' name='id_save' offsrc="<?=$outlogin_skin_path?>/img/check_off.gif" onsrc="<?=$outlogin_skin_path?>/img/check_on.gif" />
</span><script>imgCbox("id_save");</script></td>
<td class="auto_login" style="padding-top:3px; padding-left:3px;">ID저장</td>
</tr>
</table>
</td>
<td></td>
</tr>
<tr height="1"><td colspan="2"></td>
<td></td>
</tr>
<tr>
<td id="pw1"><input type="text" class="login_input" maxlength="20" required itemname="패스워드" value='비밀번호' onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' tabIndex=4></td>
<td id="pw2" style="display:none;"><input name="mb_password" type="password" class="login_input" maxlength="20" itemname="패스워드" onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' tabIndex=4></td><td width="60"><input type="image" src="<?=$outlogin_skin_path?>/img/login_button.gif" tabindex="5" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr height="5"><td></td></tr>
<tr height="2"><td background="<?=$outlogin_skin_path?>/img/_bar.gif"></td></tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td class="login_text1" align="center"><a href="<?=$g4['bbs_path']?>/register.php" style="color:#5895d2; font-weight:bold;">회원가입</a> | <a href="javascript:win_password_forget();" style="color:#777777;">아이디/비밀번호 찾기</a></td></tr>
</table>
</td>
</tr>
<tr height="5"><td></td></tr>
</table>
</td>
</tr>
</table>
</form>
<script language="JavaScript">
function fhead_submit(f)
{
if (!f.mb_id.value)
{
alert("회원아이디를 입력하십시오.");
f.mb_id.focus();
return;
}
if (document.getElementById('pw2').style.display!='none' && !f.mb_password.value)
{
alert("패스워드를 입력하십시오.");
f.mb_password.focus();
return;
}
<?
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>
<!-- 로그인 전 외부로그인 끝 -->
이상하게
"작업을 마쳤으나 페이지에 오류가 있습니다." 라고 나오내요.
뭐가문제인지 알아보려고 이것저것 지워보면서 확인해보니
외부로그인을 지우면 "완료" 라고 나타납니다.
----outlogin.skin.1.php----
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$url = '';
if ($g4['https_url']) {
if (preg_match("/^\./", $urlencode))
$url = $g4[url];
else
$url = $g4[url].$urlencode;
} else {
$url = $urlencode;
}
// 아이디 자동저장
$ck_id_save = get_cookie("ck_id_save");
if ($ck_id_save) {
$ch_id_save_chk = "checked";
$ck_id_save = "{$ck_id_save}";
} else {
$ck_id_save = "아이디";
}
$home_name = get_text($config[cf_home_name]);
?>
<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>
.auto_login { font-family:dotum; font-size:8pt; padding-top:8px; padding-bottom:3px; color:#666666; letter-spacing:-0.5px; }
.login_input { font-family:dotum; font-size:8pt; color:#777777; border-top:1px solid #d9d9d9; border-bottom:1px solid #d9d9d9; border-left:1px solid #d9d9d9; border-right:1px solid #d9d9d9; letter-spacing:0px; padding-top:3px; padding-left:5; padding-right:0; padding-bottom:0; width:116px; height:18px; }
.login_text1 { font-family:dotum; font-size:8pt; color:#777777; padding-top:5px; color:#999999; padding-right:10px; }
</style>
<!-- 로그인 전 외부로그인 시작 -->
<form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off" style="margin:0">
<input type="hidden" name="url" value="<?=$url?>">
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#5997D3" style="border-collapse:collapse;">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td class="login_text1"> <b>로그인</b></td></tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr height="2"><td background="<?=$outlogin_skin_path?>/img/_bar.gif"></td></tr>
<tr height="5"><td></td></tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="8" rowspan="3"></td>
<td><input name="mb_id" type="text" class="login_input" maxlength="20" required itemname="아이디" value='아이디' onMouseOver='chkReset(this.form);' onFocus='chkReset(this.form);' tabIndex=3>
</td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="14">
<span><input type='checkbox' id='id_save' name='id_save' offsrc="<?=$outlogin_skin_path?>/img/check_off.gif" onsrc="<?=$outlogin_skin_path?>/img/check_on.gif" />
</span><script>imgCbox("id_save");</script></td>
<td class="auto_login" style="padding-top:3px; padding-left:3px;">ID저장</td>
</tr>
</table>
</td>
<td></td>
</tr>
<tr height="1"><td colspan="2"></td>
<td></td>
</tr>
<tr>
<td id="pw1"><input type="text" class="login_input" maxlength="20" required itemname="패스워드" value='비밀번호' onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' tabIndex=4></td>
<td id="pw2" style="display:none;"><input name="mb_password" type="password" class="login_input" maxlength="20" itemname="패스워드" onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' tabIndex=4></td><td width="60"><input type="image" src="<?=$outlogin_skin_path?>/img/login_button.gif" tabindex="5" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr height="5"><td></td></tr>
<tr height="2"><td background="<?=$outlogin_skin_path?>/img/_bar.gif"></td></tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td class="login_text1" align="center"><a href="<?=$g4['bbs_path']?>/register.php" style="color:#5895d2; font-weight:bold;">회원가입</a> | <a href="javascript:win_password_forget();" style="color:#777777;">아이디/비밀번호 찾기</a></td></tr>
</table>
</td>
</tr>
<tr height="5"><td></td></tr>
</table>
</td>
</tr>
</table>
</form>
<script language="JavaScript">
function fhead_submit(f)
{
if (!f.mb_id.value)
{
alert("회원아이디를 입력하십시오.");
f.mb_id.focus();
return;
}
if (document.getElementById('pw2').style.display!='none' && !f.mb_password.value)
{
alert("패스워드를 입력하십시오.");
f.mb_password.focus();
return;
}
<?
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>
<!-- 로그인 전 외부로그인 끝 -->
댓글 전체
-ㅁ-;; 해결됫습니당;;