From fb813a3869a7a1b3a99488dcccec951ae94baf06 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 11 Apr 2018 02:41:22 +0900 Subject: [PATCH] Update gnuboard.dbt.php --- helper/gnuboard.dbt.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/helper/gnuboard.dbt.php b/helper/gnuboard.dbt.php index 2f10fa5..702318a 100644 --- a/helper/gnuboard.dbt.php +++ b/helper/gnuboard.dbt.php @@ -120,7 +120,8 @@ if(!function_exists("gnb_set_post_parameters")) { // get member data if(!function_exists("gnb_get_member")) { function gnb_get_member($mb_id, $tablename="member") { - $result = false; + $result = array(); + $bind = array( "mb_id" => $mb_id, ); @@ -143,6 +144,18 @@ if(!function_exists("gnb_get_password")) { } } +// get config +if(!function_exists("gnb_get_config")) { + function gnb_get_config($tablename="config") { + $result = array(); + + $config_table = gnb_get_db_prefix() . $tablename; + $result = exec_db_fetch("select * from " . $config_table); + + return $result; + } +} + // run login process if(!function_exists("gnb_process_safe_login")) { function gnb_process_safe_login($user_name, $user_password) {