Files
core/twe/d_setting/conf.orig.php
T
Hide_D 037a29ad02 autoload 경로 재 변경
kakao를 별도의 namespace로 분리
외부 class의 namespace 문제 해결
2018-03-24 18:46:37 +09:00

30 lines
567 B
PHP

<?php
require_once(__dir__.'/../../d_setting/conf.php');
/**
* DB 객체 생성
*
* @return \MeekroDB
*/
function getDB(){
$host = '_tK_host_';
$user = '_tK_user_';
$password = '_tK_password_';
$dbName = '_tK_dbName_';
$port = _tK_port_;
$encoding = 'utf8';
static $uDB = null;
if($uDB === null){
$uDB = new \MeekroDB($host,$user,$password,$dbName,$port,$encoding);
$uDB->connect_options[MYSQLI_OPT_INT_AND_FLOAT_NATIVE] = true;
}
return $uDB;
}
function getServPrefix()
{
return '_tK_prefix_';
}