<?php // (2019.4.26, 차재복, Cha Jae Bok, cjbword@gmailcom)
# contents_ajax.php
// navigation menu에서 '▷'를 클릭하면, Ajax에 의해, 이 스크립트가 수행됨
# 주요 함수 불러오기
include_once "view_utils.php";
# db_connect
include_once "../base_utils/db_conn.php";
# 전달 변수
$id = $_REQUEST[id];
if (isset($_REQUEST[id]) and !empty($id) and !is_numeric($id) or $id<0) exit; // 해킹방지
$id = substr($id,0,10); // 해킹 방지, 글자 수 제한
if(empty($id)) $id=0;
# html 헤더부 ------------------------------------------------------------
// html 및 utf-8 선언
echo "<meta http-equiv='content-type' content='text/html; charset=utf-8'>";
# 쿼리문 (db 쿼리 -> php 배열)
include_once "view_contents_db_qry.php";
# 배열 출력
include_once "view_contents_display.php";
?>
"본 웹사이트 내 모든 저작물은 원출처를 밝히는 한 자유롭게 사용(상업화포함) 가능합니다"