[제로] 로그인시 다중 프레임 제어

페이지 정보

루루아빠 2,984 1 2006.05.26 11:39

평점

  • 평점 : 0점 (0명 참여)

본문

로그인할때

=========================================
login_check.php 수정
=========================================

// 로그인 후 페이지 이동
$s_url=urldecode($s_url);
if(!$s_url&&$id) $s_url="zboard.php?id=$id";
if($s_url) { //어드민 로긴에 에러 때문에 조건 추가==========================
if(substr($s_url,-9)!="admin.php" && !$id)
echo"<script> try { parent.첫번째타겟프레임의 name.location.reload(); parent.두번째타겟프레임의 name.location.reload(); parent.세번째타겟프레임의 name.location.reload();} catch(er) {} </script>";
elseif(substr($s_url,-9)!="admin.php")
echo"<script> try { parent.아웃로그인이 포함된 프레임의 name.location.reload(); } catch(er) {}</script>";
//=======================================================
movepage($s_url);
}


< 2006년 5월 26일 현재 우리 홈피 적용 사항>

login_check.php :

//로그인 후 페이지 이동
$s_url=urldecode($s_url);
if(!$s_url&&$id) $s_url="zboard.php?id=$id";
echo "<SCRIPT> if(parent.log==self) parent.detail.location.reload();
else parent.log.location.reload(); </SCRIPT>";
if($s_url) movepage($s_url);

위 부분을 다음으로 수정 ------>

// 로그인 시 다중 프레임 리프레쉬
$s_url=urldecode($s_url);
if(!$s_url&&$id) $s_url="zboard.php?id=$id";
if($s_url) { //어드민 로긴에 에러 때문에 조건 추가==========================
if(substr($s_url,-9)!="admin.php" && !$id)
echo"<script> try { parent.detail.location.reload(); parent.yoback2.location.reload();} catch(er) {} </script>";
elseif(substr($s_url,-9)!="admin.php")
echo"<script> try { parent.log.location.reload(); } catch(er) {}</script>";
//=======================================================
movepage($s_url);
}


logout.php :

echo "<script> if(parent.log==self) parent.detail.location.reload();
else parent.log.location.reload(); </script>";
if($s_url) movepage($s_url);

위 부분을 다음으로 수정 ------>

// 로그아웃시 다중 프레임 리프레쉬
echo"<script> try { parent.detail.location.reload(); parent.yoback2.location.reload();} catch(er) {} </script>";
echo"<script> try { parent.log.location.reload(); } catch(er) {}</script>";
movepage($s_url);
추천인
  • 추천해 주세요
6
루루아빠 - 회원등급 : 최고관리자 - 포인트 : 1,292,389
레벨 96
경험치 1,393,206

Progress Bar 88%

- 가입일 : 2015-03-04 03:24:54
- 서명 : KNOW YOUR LIMITS BUT NEVER STOP TRYING TO EXCEED THEM !!
- 자기소개 : 루루의 자랑 루루아빠랍니다~~

댓글1

야돌이님의 댓글

야돌이 글쓴이 2006.05.26 11:48
다중 프레임을 리프레쉬 해야할 경우에는 위에 나열된 첫번째 두번째.. 위부분 처럼 첨가해주며 됨
Total 7473438 페이지
제목 글쓴이 날짜 조회 추천
JavaScript  댓글+2🏆 Prism.js 플러그인 Copy to Clipboard Button 이용 시 빈칸이 추가되는 문제 해결하기 shadow2fox 2021.06.22 1,158 2
그누•영카트  댓글+2🏆 그누보드(영카트) 5.4.9 shadow2fox 2021.06.25 1,157 1
그누•영카트  댓글+2🏆 그누보드(영카트) 5.4.16 shadow2fox 2021.09.24 1,154 2
그누•영카트  댓글+2🏆 그누보드(영카트) 5.4.15 shadow2fox 2021.08.18 1,152 2
CSS  댓글+2🏆 구문(코드) 강조 Prism.js에서 첫 라인이 빈칸으로 추가되는 문제 해결하기 shadow2fox 2021.06.22 1,151 2
그누•영카트  댓글+2🏆 그누보드(영카트) 5.4.14 shadow2fox 2021.08.11 1,119 1
그누•영카트  🏆 영카트 5.4.4.3 shadow2fox 2021.01.06 1,107 0
이윰  댓글+5🏆 유튜브 "이 동영상은 볼 수 없습니다" 해결하기 shadow2fox 2023.02.20 1,092 3
그누•영카트  🏆 영카트 5.4.5.3 shadow2fox 2021.04.05 1,086 0
그누•영카트  🏆 영카트 5.4.5.2 shadow2fox 2021.03.17 1,053 0
그누•영카트  🏆 영카트 5.4.4.1 shadow2fox 2021.01.05 1,036 0
그누•영카트  댓글+1🏆 그누보드(영카트) 5.4.12 shadow2fox 2021.07.21 1,034 1
그누•영카트  댓글+2🏆 그누보드(영카트) 5.4.11 (webp 파일 지원) shadow2fox 2021.07.20 1,027 2
그누•영카트  영카트 5.4.5.5.1 shadow2fox 2021.05.18 989 0
그누•영카트  댓글+2 그누보드(영카트) 5.4.17 shadow2fox 2021.10.19 975 2
그누•영카트  그누보드(영카트) 5.4.7 shadow2fox 2021.06.18 974 0
그누•영카트  댓글+4 그누보드(영카트) 5.5.1 (이니시스 통합인증[간편인증] 추가) shadow2fox 2022.02.17 962 2
그누•영카트  댓글+1 그누보드(영카트) 5.4.10 shadow2fox 2021.07.01 958 1
그누•영카트  댓글+1 그누보드(영카트) 5.4.18 shadow2fox 2021.10.26 930 1
JavaScript  댓글+1 텍스트 타입의 input 태그에 텍스트 입력 시 앞뒤 공백제거 shadow2fox 2021.06.20 903 1