로그인시 페이지 변경문제 정보
로그인시 페이지 변경문제본문
로그인만 하면 게시판 글들이 <strong>으로 바뀌는데요.
외부로그인 스킨 형식은 똑같거든요.
내용 부분은 똑같이 떠야 하는 거 아닌가요?
==========로그아웃시 정상적으로 보이는 화면(외부로긴스킨php)======================
<?
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>
<!-- 로그인 전 외부로그인 시작 -->
<!-- 로그인 전 외부로그인 끝 -->
<div id="login_box">
<form name="fhead" method="post" onsubmit="return fhead_submit(this);" autocomplete="off" style="margin:15px 15px 35px 25px; width:265px; clear:both;">
<input type="hidden" name="url" value="<?=$outlogin_url?>" />
<div style="width:235px; height:120px; background-color:#eeeeee;padding:15px;">
<center>
<div style="z-index:100; position:relative; left: 0px; top: 0px; background-image:url(../skin/outlogin/basic/img/login_bg.gif); width:235px; height:120px; margin:0px;">
<center>
<img style="margin-top:15px; margin-bottom:15px;" src="../skin/outlogin/basic/img/member_login.gif" />
<table width="210" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="141"><table width="141" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="35" height="23"><img src="<?=$outlogin_skin_path?>/img/login_id.gif" width="35" height="23" /></td>
<td width="106" height="23" colspan="2" align="center"><input name="mb_id" type="text" class=ed size="12" maxlength="20" required itemname="아이디" value='아이디' onmouseover='chkReset(this.form);' onfocus='chkReset(this.form);' /></td>
</tr>
<tr>
<td width="35" height="23"><img src="<?=$outlogin_skin_path?>/img/login_pw.gif" width="35" height="23" /></td>
<td id=pw1 width="106" height="23" colspan="2" align="center"><input type="text" class=ed size="12" maxlength="20" required itemname="패스워드" value='패스워드' onmouseover='chkReset(this.form);' onfocus='chkReset(this.form);' /></td>
<td id=pw2 style='display:none;' width="106" height="23" colspan="2" align="center"><input name="mb_password" id="outlogin_mb_password" type="password" class=ed size="12" maxlength="20" itemname="패스워드" onmouseover='chkReset(this.form);' onfocus='chkReset(this.form);' onkeypress="check_capslock(event, 'outlogin_mb_password');" /></td>
</tr>
</table></td>
<td width="69" height="46" rowspan="2" align="center"><input type="image" src="<?=$outlogin_skin_path?>/img/login_button.gif" width="52" height="46" /></td>
</tr>
</table>
</center>
<div style="clear:both; padding:0 0 0 40px;">
<a href="javascript:win_password_lost();"><img src="<?=$outlogin_skin_path?>/img/login_pw_find_button.gif" width="90" height="20" border="0"></a>
<a href="<?=$g4[bbs_path]?>/register.php"><img src="<?=$outlogin_skin_path?>/img/login_join_button.gif" width="69" height="20" border="0"></a>
</div>
</div>
</center>
</div>
</form></div>
<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>
=============로그인시 밀리는 화면(외부로긴스킨php)======================
<?
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>
<!-- 로그인 후 외부로그인 시작 -->
<link href="style.css" rel="stylesheet" type="text/css" />
<div id="login_box">
<form style="margin:0px 0px 0px 0px; width:250px; height:100%; clear:both">
<div style="width:235px; height:120px; background-color:#eeeeee; margin:15px 0px 0px 25px; padding:15px; clear:both">
<center>
<div style="z-index:100; position:relative; left: 0px; top: 0px; background-image:url(../skin/outlogin/basic/img/login_bg.gif); width:235px; height:120px; padding:10px; background-repeat:no-repeat; margin:0px; ">
<center><span class="member"><strong>
<?=$nick?>
</strong>님<? if ($is_admin == "super" || $is_auth) { ?>
<a href="<?=$g4['admin_path']?>/"><img src="<?=$outlogin_skin_path?>/img/admin.gif" width="33" height="15" border="0" align="absmiddle"></a>
<? } ?>
<br />
<table width="210" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="82"><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$outlogin_skin_path?>/img/logout_button.gif" width="78" height="20" border="0" /></a></td>
<td width="78"><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="<?=$outlogin_skin_path?>/img/login_modify.gif" width="78" height="20" border="0" /></a></td>
</tr>
<tr>
<td align="center"><a href="javascript:win_memo();"><font color="#ff8871;"><b>쪽지 (
<?=$memo_not_read?>
)</b></font></a></td>
<td><a href="javascript:win_scrap();"><img src="<?=$outlogin_skin_path?>/img/scrap_button.gif" width="78" height="20" border="0" /></a></td>
</tr>
</table></center>
</div></center>
</div>
</form>
</div>
<!--
<table width="220" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="220" colspan="5"><img src="<?=$outlogin_skin_path?>/img/login_ing_top.gif" width="220" height="42"></td>
</tr>
<tr>
<td width="5" rowspan="4" background="<?=$outlogin_skin_path?>/img/login_left_bg.gif"></td>
<td width="210" colspan="3"></td>
<td width="5" rowspan="4" background="<?=$outlogin_skin_path?>/img/login_right_bg.gif"></td>
</tr>
<tr>
<td colspan="3">
<table width="210" height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25" height="27"><img src="<?=$outlogin_skin_path?>/img/login_ing_icon.gif" width="25" height="27"></td>
<td width="139" height="27"> </td>
<td width="46" height="27"></td>
</tr>
</table></td>
</tr>
<tr>
<td width="25"></td>
<td width="160" height="25" align="center" bgcolor="#F9F9F9"><a href="javascript:win_point();"><font color="#737373">포인트 : <?=$point?>점</font></a></td>
<td width="25"></td>
</tr>
<tr>
<td colspan="3">
<table width="210" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="210" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25"></td>
<td width="82"><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$outlogin_skin_path?>/img/logout_button.gif" width="78" height="20" border="0"></a></td>
<td width="78"><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="<?=$outlogin_skin_path?>/img/login_modify.gif" width="78" height="20" border="0"></a></td>
<td width="25"></td>
</tr>
<tr>
<td></td>
<td align="center"><a href="javascript:win_memo();"><FONT color="#ff8871;"><B>쪽지 (<?=$memo_not_read?>)</B></FONT></a></td>
<td><a href="javascript:win_scrap();"><img src="<?=$outlogin_skin_path?>/img/scrap_button.gif" width="78" height="20" border="0"></a></td>
<td></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="5"><img src="<?=$outlogin_skin_path?>/img/login_down.gif" width="220" height="14"></td>
</tr>
</table>-->
<script type="text/javascript">
// 탈퇴의 경우 아래 코드를 연동하시면 됩니다.
function member_leave()
{
if (confirm("정말 회원에서 탈퇴 하시겠습니까?"))
location.href = "<?=$g4['bbs_path']?>/member_confirm.php?url=member_leave.php";
}
</script>
<!-- 로그인 후 외부로그인 끝 -->
외부로그인 스킨 형식은 똑같거든요.
내용 부분은 똑같이 떠야 하는 거 아닌가요?
==========로그아웃시 정상적으로 보이는 화면(외부로긴스킨php)======================
<?
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>
<!-- 로그인 전 외부로그인 시작 -->
<!-- 로그인 전 외부로그인 끝 -->
<div id="login_box">
<form name="fhead" method="post" onsubmit="return fhead_submit(this);" autocomplete="off" style="margin:15px 15px 35px 25px; width:265px; clear:both;">
<input type="hidden" name="url" value="<?=$outlogin_url?>" />
<div style="width:235px; height:120px; background-color:#eeeeee;padding:15px;">
<center>
<div style="z-index:100; position:relative; left: 0px; top: 0px; background-image:url(../skin/outlogin/basic/img/login_bg.gif); width:235px; height:120px; margin:0px;">
<center>
<img style="margin-top:15px; margin-bottom:15px;" src="../skin/outlogin/basic/img/member_login.gif" />
<table width="210" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="141"><table width="141" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="35" height="23"><img src="<?=$outlogin_skin_path?>/img/login_id.gif" width="35" height="23" /></td>
<td width="106" height="23" colspan="2" align="center"><input name="mb_id" type="text" class=ed size="12" maxlength="20" required itemname="아이디" value='아이디' onmouseover='chkReset(this.form);' onfocus='chkReset(this.form);' /></td>
</tr>
<tr>
<td width="35" height="23"><img src="<?=$outlogin_skin_path?>/img/login_pw.gif" width="35" height="23" /></td>
<td id=pw1 width="106" height="23" colspan="2" align="center"><input type="text" class=ed size="12" maxlength="20" required itemname="패스워드" value='패스워드' onmouseover='chkReset(this.form);' onfocus='chkReset(this.form);' /></td>
<td id=pw2 style='display:none;' width="106" height="23" colspan="2" align="center"><input name="mb_password" id="outlogin_mb_password" type="password" class=ed size="12" maxlength="20" itemname="패스워드" onmouseover='chkReset(this.form);' onfocus='chkReset(this.form);' onkeypress="check_capslock(event, 'outlogin_mb_password');" /></td>
</tr>
</table></td>
<td width="69" height="46" rowspan="2" align="center"><input type="image" src="<?=$outlogin_skin_path?>/img/login_button.gif" width="52" height="46" /></td>
</tr>
</table>
</center>
<div style="clear:both; padding:0 0 0 40px;">
<a href="javascript:win_password_lost();"><img src="<?=$outlogin_skin_path?>/img/login_pw_find_button.gif" width="90" height="20" border="0"></a>
<a href="<?=$g4[bbs_path]?>/register.php"><img src="<?=$outlogin_skin_path?>/img/login_join_button.gif" width="69" height="20" border="0"></a>
</div>
</div>
</center>
</div>
</form></div>
<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>
=============로그인시 밀리는 화면(외부로긴스킨php)======================
<?
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>
<!-- 로그인 후 외부로그인 시작 -->
<link href="style.css" rel="stylesheet" type="text/css" />
<div id="login_box">
<form style="margin:0px 0px 0px 0px; width:250px; height:100%; clear:both">
<div style="width:235px; height:120px; background-color:#eeeeee; margin:15px 0px 0px 25px; padding:15px; clear:both">
<center>
<div style="z-index:100; position:relative; left: 0px; top: 0px; background-image:url(../skin/outlogin/basic/img/login_bg.gif); width:235px; height:120px; padding:10px; background-repeat:no-repeat; margin:0px; ">
<center><span class="member"><strong>
<?=$nick?>
</strong>님<? if ($is_admin == "super" || $is_auth) { ?>
<a href="<?=$g4['admin_path']?>/"><img src="<?=$outlogin_skin_path?>/img/admin.gif" width="33" height="15" border="0" align="absmiddle"></a>
<? } ?>
<br />
<table width="210" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="82"><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$outlogin_skin_path?>/img/logout_button.gif" width="78" height="20" border="0" /></a></td>
<td width="78"><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="<?=$outlogin_skin_path?>/img/login_modify.gif" width="78" height="20" border="0" /></a></td>
</tr>
<tr>
<td align="center"><a href="javascript:win_memo();"><font color="#ff8871;"><b>쪽지 (
<?=$memo_not_read?>
)</b></font></a></td>
<td><a href="javascript:win_scrap();"><img src="<?=$outlogin_skin_path?>/img/scrap_button.gif" width="78" height="20" border="0" /></a></td>
</tr>
</table></center>
</div></center>
</div>
</form>
</div>
<!--
<table width="220" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="220" colspan="5"><img src="<?=$outlogin_skin_path?>/img/login_ing_top.gif" width="220" height="42"></td>
</tr>
<tr>
<td width="5" rowspan="4" background="<?=$outlogin_skin_path?>/img/login_left_bg.gif"></td>
<td width="210" colspan="3"></td>
<td width="5" rowspan="4" background="<?=$outlogin_skin_path?>/img/login_right_bg.gif"></td>
</tr>
<tr>
<td colspan="3">
<table width="210" height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25" height="27"><img src="<?=$outlogin_skin_path?>/img/login_ing_icon.gif" width="25" height="27"></td>
<td width="139" height="27"> </td>
<td width="46" height="27"></td>
</tr>
</table></td>
</tr>
<tr>
<td width="25"></td>
<td width="160" height="25" align="center" bgcolor="#F9F9F9"><a href="javascript:win_point();"><font color="#737373">포인트 : <?=$point?>점</font></a></td>
<td width="25"></td>
</tr>
<tr>
<td colspan="3">
<table width="210" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="210" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25"></td>
<td width="82"><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$outlogin_skin_path?>/img/logout_button.gif" width="78" height="20" border="0"></a></td>
<td width="78"><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="<?=$outlogin_skin_path?>/img/login_modify.gif" width="78" height="20" border="0"></a></td>
<td width="25"></td>
</tr>
<tr>
<td></td>
<td align="center"><a href="javascript:win_memo();"><FONT color="#ff8871;"><B>쪽지 (<?=$memo_not_read?>)</B></FONT></a></td>
<td><a href="javascript:win_scrap();"><img src="<?=$outlogin_skin_path?>/img/scrap_button.gif" width="78" height="20" border="0"></a></td>
<td></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="5"><img src="<?=$outlogin_skin_path?>/img/login_down.gif" width="220" height="14"></td>
</tr>
</table>-->
<script type="text/javascript">
// 탈퇴의 경우 아래 코드를 연동하시면 됩니다.
function member_leave()
{
if (confirm("정말 회원에서 탈퇴 하시겠습니까?"))
location.href = "<?=$g4['bbs_path']?>/member_confirm.php?url=member_leave.php";
}
</script>
<!-- 로그인 후 외부로그인 끝 -->
댓글 전체