From 96e4c08ee962c884d5285d44d94cc910f8a87054 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 17 Mar 2018 22:08:34 +0900 Subject: [PATCH] =?UTF-8?q?generateFileUsingSimpleTemplate=EC=9D=98=20?= =?UTF-8?q?=EB=B3=80=ED=99=98=20=EA=B7=9C=EC=B9=99=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- d_setting/conf.orig.php | 30 +++++++++++++++--------------- f_func/func.php | 4 ++-- tmp_kakao/conf.orig.php | 6 +++--- twe/d_setting/conf.orig.php | 12 ++++++------ 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/d_setting/conf.orig.php b/d_setting/conf.orig.php index 72f7f261..baa536ab 100644 --- a/d_setting/conf.orig.php +++ b/d_setting/conf.orig.php @@ -8,7 +8,7 @@ require(__dir__.'/../vendor/autoload.php'); * @return string */ function getGlobalSalt(){ - return '_globalSalt_'; + return '_tK_globalSalt_'; } /** @@ -17,11 +17,11 @@ function getGlobalSalt(){ * @return MeekroDB */ function getRootDB(){ - $host = '_host_'; - $user = '_user_'; - $password = '_password_'; - $dbName = '_dbName_'; - $port = _port_; + $host = '_tK_host_'; + $user = '_tK_user_'; + $password = '_tK_password_'; + $dbName = '_tK_dbName_'; + $port = _tK_port_; $encoding = 'utf8'; static $uDB = NULL; @@ -35,16 +35,16 @@ function getRootDB(){ } function newMailObj(){ - $mailType = '_mailType_'; - $mailSubType = '_mailSubType_'; + $mailType = '_tK_mailType_'; + $mailSubType = '_tK_mailSubType_'; $checkAuth = _mailCheckAuth_;//boolean - $host = '_mailHost_'; - $user = '_mailUser_'; - $password = '_mailPassword_'; - $address = '_mailAddress_'; - $nickname = '_mailNickname_'; - $port = _mailPort_;//number - $ignoreCert = _mailIgnoreCert_;//boolean + $host = '_tK_mailHost_'; + $user = '_tK_mailUser_'; + $password = '_tK_mailPassword_'; + $address = '_tK_mailAddress_'; + $nickname = '_tK_mailNickname_'; + $port = _tK_mailPort_;//number + $ignoreCert = _tK_mailIgnoreCert_;//boolean if($mailType == 'smtp'){ $objMail = new PHPMailer(); diff --git a/f_func/func.php b/f_func/func.php index c2806ae1..1b6b9c33 100644 --- a/f_func/func.php +++ b/f_func/func.php @@ -150,7 +150,7 @@ function hashPassword($salt, $password){ } /** - * 변환할 내용이 _key_ 형태로 작성된 단순한 템플릿 파일을 이용하여 결과물을 생성해주는 함수. + * 변환할 내용이 _tK_$key_ 형태로 작성된 단순한 템플릿 파일을 이용하여 결과물을 생성해주는 함수. */ function generateFileUsingSimpleTemplate(string $srcFilePath, string $destFilePath, array $params, bool $canOverwrite=false){ if($destFilePath === $srcFilePath){ @@ -168,7 +168,7 @@ function generateFileUsingSimpleTemplate(string $srcFilePath, string $destFilePa $text = file_get_contents($srcFilePath); foreach($params as $key => $value){ - $text = str_replace("_{$key}_", $value); + $text = str_replace("_tK_{$key}_", $value); } file_put_contents($destFilePath, $text); diff --git a/tmp_kakao/conf.orig.php b/tmp_kakao/conf.orig.php index eaaae2e4..e74c623f 100644 --- a/tmp_kakao/conf.orig.php +++ b/tmp_kakao/conf.orig.php @@ -1,6 +1,6 @@