From b5922095f03ce8324ed843b67bcaf2eb20cb4fb0 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 15 Sep 2019 02:50:10 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B8=EC=8A=A4=ED=86=A8=EB=9F=AC=20?= =?UTF-8?q?=EC=9E=84=EC=8B=9C=20=ED=8A=B8=EC=9C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- f_install/j_setup_db.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/f_install/j_setup_db.php b/f_install/j_setup_db.php index 926f6791..01b7833a 100644 --- a/f_install/j_setup_db.php +++ b/f_install/j_setup_db.php @@ -12,6 +12,10 @@ $servHost = Util::getReq('serv_host'); $sharedIconPath = Util::getReq('shared_icon_path'); $gameImagePath = Util::getReq('game_image_path'); +$kakaoRESTKey = Util::getReq('kakao_rest_key', ''); +$kakaoAdminKey = Util::getReq('kakao_admin_key', ''); + + if (!$host || !$port || !$username || !$password || !$dbName || !$servHost || !$sharedIconPath || !$gameImagePath) { Json::die([ 'result'=>false, @@ -263,10 +267,15 @@ $result = Util::generateFileUsingSimpleTemplate( ] ); +$kakaoRedirectURI = WebUtil::resolveRelativePath('oauth_kakao/oauth.php', $servHost); + Util::generateFileUsingSimpleTemplate( __dir__.'/templates/KakaoKey.orig.php', ROOT.'/d_setting/KakaoKey.php', [ + 'REST_API_KEY'=>$kakaoRESTKey, + 'ADMIN_KEY'=>$kakaoAdminKey, + 'REDIRECT_URI'=>$kakaoRedirectURI ], true );