merge 후 helper 정리
This commit is contained in:
@@ -237,14 +237,13 @@ function han($s)
|
||||
}
|
||||
// function to_han ($str) { return preg_replace('/(\\\u[a-f0-9]+)+/e','han("$0")',$str); }
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
if (!function_exists('db_now')) {
|
||||
/**
|
||||
* DB의 현재 시간을 지정된 포맷으로 반환하는 RawSql 생성
|
||||
* @param string|null $format MariaDB 포맷 (예: '%Y-%m-%d %H:%i:%s')
|
||||
*/
|
||||
function db_now(?string $format = null) {
|
||||
function db_now(?string $format = null)
|
||||
{
|
||||
if ($format) {
|
||||
// 포맷이 있으면 DATE_FORMAT(NOW(), '포맷') 형태로 생성
|
||||
return new \CodeIgniter\Database\RawSql("DATE_FORMAT(NOW(), '$format')");
|
||||
@@ -253,7 +252,7 @@ if (! function_exists('db_now')) {
|
||||
return new \CodeIgniter\Database\RawSql('NOW()');
|
||||
}
|
||||
}
|
||||
=======
|
||||
|
||||
/**
|
||||
* 비밀번호 문자 조합 검사
|
||||
* - 영문 대문자 / 소문자 / 숫자 / 특수문자 중 최소 $minTypes 종류 이상
|
||||
@@ -284,4 +283,3 @@ function checkPasswordTypes(string $password, int $minTypes = 2): bool
|
||||
|
||||
return $types >= $minTypes;
|
||||
}
|
||||
>>>>>>> feature/template
|
||||
|
||||
Reference in New Issue
Block a user