<?php
//****************
//데이터베이스 관련 설정하기
//****************
//데이터베이스 사용자 설정하기
define("_DB_USER","user1");
//데이터베이스 비밀번호 설정하기
define("_DB_PASS", "test");
//데이터베이스 호스트명
define("_DB_HOST","localhost");
//데이터베이스명
define("_DB_NAME","sample");
//데이터베이스 종류
define("_DB_TYPE","mysql");
//데이터 소스
define("_DSN",_DB_TYPE.":host="._DB_HOST.";dbname="._DB_NAME.";charset=utf8");
//*******************
// 세션명
//*******************
//회원용 세션명
define("_MEMBER_SESSNAME", "PHPSESSION_MEMBER");
//관리자용 세션명
define("_ADMIN_SESSNAME","PHPSESSION_ADMIN");
//회원용 인증정보를 보관하기 위한 변수명
define("_MEMBER_AUTHINFO", 'userInfo');
//관리자 인증정보를 보관하기 위한 변수명
define("_ADMIN_AUTHINFO",'adminInfo');
//*****************************
// 파일 설치 디렉토리
//*****************************
define("_PHP_LIBS_DIR",__DIR__);
//클래스 파일
define("_CLASS_DIR",_PHP_LIBS_DIR."/class/");
//***********************************
//Smarty 관련 설정하기
//***********************************
define("_SMARTY_LIBS_DIR",_PHP_LIBS_DIR."/smarty/libs/");
define("_SMARTY_TEMPLATES_DIR",_PHP_LIBS_DIR."/smarty/templates/");
define("_SMARTY_TEMPLATES_C_DIR",_PHP_LIBS_DIR."/smarty/templates_c/");
define("_SMARTY_CONFIGS_DIR",_PHP_LIBS_DIR."/smarty/configs/");
define("_SMARTY_CACHE_DIR",_PHP_LIBS_DIR."/smarty/cache/");
//***************************
//QuickForm.php, ArraySmarty.php, Smarty.class.php불러오기
//***************************
require_once('HTML/QuickForm.php');
require_once('HTML/QuickForm/Renderer/ArraySmarty.php');
require_once(_SMARTY_LIBS_DIR."Smarty.class.php");
//***************************
//클래스 파일 불러오기
//***************************
require_once (_CLASS_DIR."Auth.php");
?>
'PHP > PHP함수' 카테고리의 다른 글
session_regenerate_id (0) | 2017.11.14 |
---|---|
sprintf(), hash(), uniqid(); (0) | 2017.11.13 |
$_SERVER 함수 (0) | 2017.11.13 |
ceil(), floor(), round() 반올림 처리하는 함수들 (1) | 2014.10.31 |
글자수, 글자추출 strlen(), substr(), explode() (0) | 2014.10.30 |