세션 변수를 이용한 index.php를 사이트 대문 만들기 정보
세션 변수를 이용한 index.php를 사이트 대문 만들기본문
common.php에서
@session_start();
if( $start_on) set_session("start_on_index", 'on');
if( $_SESSION['start_on_index'] != 'on') alert('xxxxxx', $g4['path'] );
이렇게 두 줄 추가.
$g4['path'](대부분이 index.php)에서는
<?php
$start_on='on;
include '_common.php';
common.php 이전에 start_on 변수 설정
모든 파일은 common.php를 include할 것
참조: http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=15023&sca=&sfl=wr_subject%7C%7Cwr_content&stx=gate&sop=and
@session_start();
if( $start_on) set_session("start_on_index", 'on');
if( $_SESSION['start_on_index'] != 'on') alert('xxxxxx', $g4['path'] );
이렇게 두 줄 추가.
$g4['path'](대부분이 index.php)에서는
<?php
$start_on='on;
include '_common.php';
common.php 이전에 start_on 변수 설정
모든 파일은 common.php를 include할 것
참조: http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=15023&sca=&sfl=wr_subject%7C%7Cwr_content&stx=gate&sop=and
추천
0
0
댓글 0개