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

페이지 정보

yadolee 루루아빠 3,264 1 2006.05.26 11:39:29

평점

  • 평점 : 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);
추천인
  • 추천해 주세요
yadolee
6
루루아빠 - 회원등급 : 최고관리자 - 포인트 : 1,332,923
레벨 100
경험치 1,488,670

Progress Bar 12.24%

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

댓글1

야돌이님의 댓글

야돌이 글쓴이 2006.05.26 11:48
다중 프레임을 리프레쉬 해야할 경우에는 위에 나열된 첫번째 두번째.. 위부분 처럼 첨가해주며 됨

Total 7622426 페이지

제목 글쓴이 날짜 조회 추천
이윰  댓글+2 비메오 썸네일 추출 올바르게 적용하기 shadow2fox 2023.04.24 971 2
그누•영카트  댓글+1 그누보드(영카트) 5.5.3 (구글 쇼핑 피드 추가) shadow2fox 2022.03.05 924 1
그누•영카트  그누보드(영카트) 5.5.8.3.3 shadow2fox 2023.08.20 910 2
에디터  댓글+2 CKEditor 4.x 링크 이용 시 rel 속성 noopener, noreferrer, nofollow 자동으로 삽입하기 shadow2fox 2023.10.15 909 2
그누•영카트  댓글+1 그누보드(영카트) 5.4.21 shadow2fox 2022.01.11 909 2
그누•영카트  댓글+1 그누보드(영카트) 5.4.20 shadow2fox 2021.12.23 893 1
이윰  댓글+2 Prism.js 플러그인 사용 시 HTML 주석 처리가 삭제되는 문제 해결하기 shadow2fox 2022.04.24 891 2
PHP  댓글+2 cURL 웹 스크래핑 시 403 error가 발생하여 수집할 수 없을 때 shadow2fox 2023.10.15 889 2
그누•영카트  댓글+2 그누보드(영카트) 5.5.8.3.1 shadow2fox 2023.06.19 889 2
그누•영카트  댓글+2 인터넷 상에서 텍스트를 복사할 경우 한글이 자소로 분리되는 문제 해결하기 shadow2fox 2023.12.18 881 2
이윰  댓글+2 date 시간 형식으로 출력(~전) 올바르게 해결하기 shadow2fox 2023.03.10 875 2
그누•영카트  댓글+2 그누보드(영카트) 5.5.8.2.5 shadow2fox 2022.12.08 872 1
그누•영카트  댓글+1 그누보드(영카트) 5.5.7 shadow2fox 2022.04.26 852 1
그누•영카트  댓글+2 그누보드(영카트) 5.5.11 shadow2fox 2024.01.03 841 2
그누•영카트  댓글+2 그누보드(영카트) 5.5.8.3.2 shadow2fox 2023.07.18 820 3
그누•영카트  [KG이니시스 결제 사용자 필독] 그누보드(영카트) 5.5.8.2.9 shadow2fox 2023.04.14 819 0
그누•영카트  댓글+2 그누보드(영카트) 5.5.8.1.2 shadow2fox 2022.07.01 799 2
그누•영카트  댓글+2 그누보드(영카트) 5.5.8.1 shadow2fox 2022.06.21 795 2
그누•영카트  댓글+1 그누보드(영카트) 5.5.7.5 shadow2fox 2022.05.27 783 1
그누•영카트  댓글+2 그누보드(영카트) 5.5.13 shadow2fox 2024.02.20 778 2
그누•영카트  그누보드(영카트) 5.5.8.2.1 shadow2fox 2022.09.25 774 1
그누•영카트  댓글+1 그누보드(영카트) 5.5.4 shadow2fox 2022.03.22 762 1
그누•영카트  댓글+1 그누보드(영카트) 5.5.7.2 (★ 5.5.7.1 버전 사용자님은 필독해 주세요) shadow2fox 2022.05.04 755 2
그누•영카트  댓글+2 그누보드(영카트) 5.5.7.3 shadow2fox 2022.05.24 741 2
그누•영카트  댓글+1 그누보드(영카트) 5.5.8.2.4 shadow2fox 2022.11.22 734 1
그누•영카트  댓글+1 그누보드(영카트) 5.5.8.1.1 shadow2fox 2022.06.24 732 1
그누•영카트  댓글+1 그누보드(영카트) 5.5.5 shadow2fox 2022.04.08 729 2
그누•영카트  댓글+2 그누보드(영카트) 5.5.8.2.3 shadow2fox 2022.10.19 728 2
그누•영카트  그누보드(영카트) 5.5.8.2.2 shadow2fox 2022.10.05 723 0
그누•영카트  댓글+2 그누보드(영카트) 5.5.8.2.6 shadow2fox 2023.01.14 720 2