파일 위치를 twe에서 hwe로 옮김.

This commit is contained in:
2018-04-01 01:23:44 +09:00
parent 1ddd26c8a1
commit 25ec9a2579
201 changed files with 0 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
Deny from all
+37
View File
@@ -0,0 +1,37 @@
<?php
namespace sammo;
class DB{
private static $uDB = null;
private static $host = '_tK_host_';
private static $user = '_tK_user_';
private static $password = '_tK_password_';
private static $dbName = '_tK_dbName_';
private static $port = _tK_port_;
private static $encoding = 'utf8mb4';
private static $prefix = '_tK_prefix_';
private function __construct(){
}
/**
* DB 객체 생성
*
* @return \MeekroDB
*/
public static function db(){
if(self::$uDB === null){
self::$uDB = new \MeekroDB(self::$host,self::$user,self::$password,self::$dbName,self::$port,self::$encoding);
self::$uDB->connect_options[MYSQLI_OPT_INT_AND_FLOAT_NATIVE] = true;
}
return self::$uDB;
}
public static function prefix()
{
return self::$prefix;
}
}
+9
View File
@@ -0,0 +1,9 @@
<?php
namespace sammo;
class UniqueConst{
public static $serverID = '_tK_serverID_';
private function __construct(){}
}
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace sammo;
if(!defined('ROOT')){
define('ROOT', '../..');
}
require_once(ROOT.'/f_config/config.php');
CustomHeader();