Example #1
0
<?php

if (defined('DEBUG_MODE_PROCEDURE')) {
    print_Log('proc_Log', 'common.php_start');
}
if (defined('DEBUG_MODE_PROCEDURE')) {
    // print_Log('proc_Log', 'common.php_start');
}
/*******************************************************************************
** 공통 변수, 상수, 코드
*******************************************************************************/
error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
// 보안설정이나 프레임이 달라도 쿠키가 통하도록 설정
header('P3P: CP="ALL CURa ADMa DEVa TAIa OUR BUS IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC OTC"');
if (!defined('G5_SET_TIME_LIMIT')) {
    define('G5_SET_TIME_LIMIT', 0);
}
@set_time_limit(G5_SET_TIME_LIMIT);
//==========================================================================================================================
// extract($_GET); 명령으로 인해 page.php?_POST[var1]=data1&_POST[var2]=data2 와 같은 코드가 _POST 변수로 사용되는 것을 막음
// 081029 : letsgolee 님께서 도움 주셨습니다.
//--------------------------------------------------------------------------------------------------------------------------
$ext_arr = array('PHP_SELF', '_ENV', '_GET', '_POST', '_FILES', '_SERVER', '_COOKIE', '_SESSION', '_REQUEST', 'HTTP_ENV_VARS', 'HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_POST_FILES', 'HTTP_SERVER_VARS', 'HTTP_COOKIE_VARS', 'HTTP_SESSION_VARS', 'GLOBALS');
$ext_cnt = count($ext_arr);
for ($i = 0; $i < $ext_cnt; $i++) {
    // POST, GET 으로 선언된 전역변수가 있다면 unset() 시킴
    if (isset($_GET[$ext_arr[$i]])) {
        unset($_GET[$ext_arr[$i]]);
    }
    if (isset($_POST[$ext_arr[$i]])) {
        unset($_POST[$ext_arr[$i]]);
Example #2
0
<?php

echo '<script>console.log("logout");</script>';
include_once './_common.php';
if (defined('DEBUG_MODE_PROCEDURE')) {
    print_Log('proc_Log', 'logout.php_start');
}
// 이호경님 제안 코드
session_unset();
// 모든 세션변수를 언레지스터 시켜줌
session_destroy();
// 세션해제함
// 자동로그인 해제 --------------------------------
set_cookie('ck_mb_id', '', 0);
set_cookie('ck_auto', '', 0);
// 자동로그인 해제 end --------------------------------
if ($url) {
    $p = @parse_url($url);
    if ($p['scheme'] || $p['host']) {
        alert('url에 도메인을 지정할 수 없습니다.');
    }
    $link = $url;
} else {
    if ($bo_table) {
        $link = G5_BBS_URL . '/board.php?bo_table=' . $bo_table;
    } else {
        $link = G5_URL;
    }
}
goto_url($link);
Example #3
0
    </div>
</div>

<?php 
if (G5_DEVICE_BUTTON_DISPLAY && !G5_IS_MOBILE) {
    ?>
<a href="<?php 
    echo get_device_change_url();
    ?>
" id="device_change">모바일 버전으로 보기</a>
<?php 
}
if ($config['cf_analytics']) {
    echo $config['cf_analytics'];
}
?>

<!-- } 하단 끝 -->

<script>
$(function() {
    // 폰트 리사이즈 쿠키있으면 실행
    font_resize("container", get_cookie("ck_font_resize_rmv_class"), get_cookie("ck_font_resize_add_class"));
});
</script>

<?php 
include_once G5_PATH . "/tail.sub.php";
if (defined('DEBUG_MODE_PROCEDURE')) {
    print_Log('proc_Log', 'tail.php_end');
}
Example #4
0
    </script>





    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="bootstrap/js/jquery.js"></script>
    <script src="bootstrap/js/bootstrap-transition.js"></script>
    <script src="bootstrap/js/bootstrap-alert.js"></script>
    <script src="bootstrap/js/bootstrap-modal.js"></script>
    <script src="bootstrap/js/bootstrap-dropdown.js"></script>
    <script src="bootstrap/js/bootstrap-scrollspy.js"></script>
    <script src="bootstrap/js/bootstrap-tab.js"></script>
    <script src="bootstrap/js/bootstrap-tooltip.js"></script>
    <script src="bootstrap/js/bootstrap-popover.js"></script>
    <script src="bootstrap/js/bootstrap-button.js"></script>
    <script src="bootstrap/js/bootstrap-collapse.js"></script>
    <script src="bootstrap/js/bootstrap-carousel.js"></script>
    <script src="bootstrap/js/bootstrap-typeahead.js"></script>

  </body>
</html>

<?php 
include_once G5_PATH . '/tail.php';
if (defined('DEBUG_MODE_PROCEDURE')) {
    print_Log('proc_Log', 'index.php_end');
}
/scrap.php" target="_blank">스크랩</a>
        </li>
    </ul>
    <footer id="ol_after_ft">
        <a href="<?php 
echo G5_BBS_URL;
?>
/member_confirm.php?url=register_form.php" id="ol_after_info">정보수정</a>
        <a href="<?php 
echo G5_BBS_URL;
?>
/logout.php" id="ol_after_logout">로그아웃</a>
    </footer>
</aside>

<script>
// 탈퇴의 경우 아래 코드를 연동하시면 됩니다.
function member_leave()
{
    if (confirm("정말 회원에서 탈퇴 하시겠습니까?"))
        location.href = "<?php 
echo G5_BBS_URL;
?>
/member_confirm.php?url=member_leave.php";
}
</script>
<!-- 로그인 후 외부로그인 끝 -->
<?php 
if (defined('DEBUG_MODE_PROCEDURE')) {
    print_Log('proc_Log', 'outlogin.skin.2.php_end');
}
Example #6
0
include_once G5_MOBILE_PATH . '/head.php';
?>


<!-- 메인화면 최신글 시작 -->
<?php 
//  최신글
$sql = " select bo_table\n            from `{$g5['board_table']}` a left join `{$g5['group_table']}` b on (a.gr_id=b.gr_id)\n            where a.bo_device <> 'pc' ";
if (!$is_admin) {
    $sql .= " and a.bo_use_cert = '' ";
}
$sql .= " order by b.gr_order, a.bo_order ";
$result = sql_query($sql);
for ($i = 0; $row = sql_fetch_array($result); $i++) {
    // 이 함수가 바로 최신글을 추출하는 역할을 합니다.
    // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
    // 사용방법
    // latest(스킨, 게시판아이디, 출력라인, 글자수);
    echo latest("basic", $row['bo_table'], 5, 25);
}
?>
<!-- 메인화면 최신글 끝 -->

<?php 
include_once G5_MOBILE_PATH . '/tail.php';
if (defined('DEBUG_MODE_PROCEDURE')) {
    print_Log('proc_Log', 'mobile_index.php_end');
}
?>

Example #7
0
        Copyright &copy; <b>SinsunMart.</b> All rights reserved.<br>
        <a href="#">상단으로</a>
    </div>
</div>

<?php 
if (G5_DEVICE_BUTTON_DISPLAY && G5_IS_MOBILE) {
    ?>
<a href="<?php 
    echo get_device_change_url();
    ?>
" id="device_change">PC 버전으로 보기</a>
<?php 
}
if ($config['cf_analytics']) {
    echo $config['cf_analytics'];
}
?>

<script>
$(function() {
    // 폰트 리사이즈 쿠키있으면 실행
    font_resize("container", get_cookie("ck_font_resize_rmv_class"), get_cookie("ck_font_resize_add_class"));
});
</script>

<?php 
include_once G5_PATH . "/tail.sub.php";
if (defined('DEBUG_MODE_PROCEDURE')) {
    print_Log('proc_Log', 'mobile_tail.php_end');
}
Example #8
0
<?php

if (defined('DEBUG_MODE_PROCEDURE')) {
    print_Log('proc_Log', 'config.php_start');
}
/********************
    상수 선언
********************/
define('G5_VERSION', '그누보드5');
define('G5_GNUBOARD_VER', '5.1.12');
define('MYTITLE', '신선마트');
//define('DEBUG_MODE_PROCEDURE', true);
// 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음
define('_GNUBOARD_', true);
define('_SINSUNMART', true);
if (PHP_VERSION >= '5.1.0') {
    //if (function_exists("date_default_timezone_set")) date_default_timezone_set("Asia/Seoul");
    date_default_timezone_set("Asia/Seoul");
}
/********************
    경로 상수
********************/
/*
보안서버 도메인
회원가입, 글쓰기에 사용되는 https 로 시작되는 주소를 말합니다.
포트가 있다면 도메인 뒤에 :443 과 같이 입력하세요.
보안서버주소가 없다면 공란으로 두시면 되며 보안서버주소 뒤에 / 는 붙이지 않습니다.
입력예) https://www.domain.com:443/gnuboard5
*/
//define('G5_DOMAIN', 'http://52.35.188.219');
define('G5_DOMAIN', 'http://112.184.66.69');
    }
    // 읽지 않은 쪽지가 있다면
    if ($is_member) {
        $sql = " select count(*) as cnt from {$g5['memo_table']} where me_recv_mb_id = '{$member['mb_id']}' and me_read_datetime = '0000-00-00 00:00:00' ";
        $row = sql_fetch($sql);
        $memo_not_read = $row['cnt'];
        $is_auth = false;
        $sql = " select count(*) as cnt from {$g5['auth_table']} where mb_id = '{$member['mb_id']}' ";
        $row = sql_fetch($sql);
        if ($row['cnt']) {
            $is_auth = true;
        }
    }
    $outlogin_url = login_url($urlencode);
    //$outlogin_action_url = G5_HTTPS_BBS_URL.'/login_check.php';
    $outlogin_action_url = G5_BBS_URL . '/login_check.php';
    ob_start();
    if ($is_member) {
        include_once $outlogin_skin_path . '/outlogin.skin.2.php';
        // 로그인 후
    } else {
        include_once $outlogin_skin_path . '/outlogin.skin.1.php';
        // 로그인 전
    }
    $content = ob_get_contents();
    ob_end_clean();
    return $content;
}
if (defined('DEBUG_MODE_PROCEDURE')) {
    print_Log('proc_Log', 'outlogin.lib.php_end');
}
Example #10
0
<!-- } 상단 끝 -->

<hr>

<!-- 콘텐츠 시작 { -->
<div id="wrapper">
    <div id="aside">
        <?php 
echo outlogin('basic');
// 외부 로그인, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정
?>
        <?php 
echo poll('basic');
// 설문조사, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정
?>
    </div>
    <div id="container">
        <?php 
if ((!$bo_table || $w == 's') && !defined("_INDEX_")) {
    ?>
<div id="container_title"><?php 
    echo $g5['title'];
    ?>
</div><?php 
}
?>

<?php 
if (defined('DEBUG_MODE_PROCEDURE')) {
    print_Log('proc_Log', 'head.php_end');
}
Example #11
0
                $(".hd_opener:eq("+idx+")").find("span").text("열기");
            });


        });
        </script>

        <!--   -->

    </div>
</header>

<hr>

<div id="wrapper">
    <div id="aside">
        <?php 
echo outlogin('basic');
// 외부 로그인 outlogin_lib.php에 정의된 함수
?>
    </div>
    <div id="container">
        
        

<?php 
if (defined('DEBUG_MODE_PROCEDURE')) {
    print_Log('proc_Log', 'mobile_head.php_end');
}
?>
        
$omp.focus(function() {
    $omp_label.css('visibility','hidden');
});
$omi.blur(function() {
    $this = $(this);
    if($this.attr('id') == "ol_id" && $this.attr('value') == "") $omi_label.css('visibility','visible');
});
$omp.blur(function() {
    $this = $(this);
    if($this.attr('id') == "ol_pw" && $this.attr('value') == "") $omp_label.css('visibility','visible');
});
<?php 
}
?>

$("#auto_login").click(function(){
    if (this.checked) {
        this.checked = confirm("자동로그인을 사용하시면 다음부터 회원아이디와 비밀번호를 입력하실 필요가 없습니다.\n\n공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?");
    }
});

function fhead_submit(f)
{
    return true;
}
</script>
<!-- 로그인 전 외부로그인 끝 -->
<?php 
if (defined('DEBUG_MODE_PROCEDURE')) {
    print_Log('proc_Log', 'mobile_outlogin.skin.1.php_end');
}
Example #13
0
if (G5_IS_MOBILE) {
    echo '<script src="' . G5_JS_URL . '/modernizr.custom.70111.js"></script>' . PHP_EOL;
    // overflow scroll 감지
}
if (!defined('G5_IS_ADMIN')) {
    echo $config['cf_add_script'];
}
?>
</head>
<body>
<?php 
if ($is_member) {
    // 회원이라면 로그인 중이라는 메세지를 출력해준다.
    $sr_admin_msg = '';
    if ($is_admin == 'super') {
        $sr_admin_msg = "최고관리자 ";
    } else {
        if ($is_admin == 'group') {
            $sr_admin_msg = "그룹관리자 ";
        } else {
            if ($is_admin == 'board') {
                $sr_admin_msg = "게시판관리자 ";
            }
        }
    }
    echo '<div id="hd_login_msg">' . $sr_admin_msg . get_text($member['mb_nick']) . '님 로그인 중 ';
    echo '<a href="' . G5_BBS_URL . '/logout.php">로그아웃</a></div>';
}
if (defined('DEBUG_MODE_PROCEDURE')) {
    print_Log('proc_Log', 'head_sup.php_end');
}