Update gnuboard.dbt.php

This commit is contained in:
Namhyeon Go 2018-04-11 02:41:22 +09:00 committed by GitHub
parent b75cc959b6
commit fb813a3869
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,8 @@ if(!function_exists("gnb_set_post_parameters")) {
// get member data // get member data
if(!function_exists("gnb_get_member")) { if(!function_exists("gnb_get_member")) {
function gnb_get_member($mb_id, $tablename="member") { function gnb_get_member($mb_id, $tablename="member") {
$result = false; $result = array();
$bind = array( $bind = array(
"mb_id" => $mb_id, "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 // run login process
if(!function_exists("gnb_process_safe_login")) { if(!function_exists("gnb_process_safe_login")) {
function gnb_process_safe_login($user_name, $user_password) { function gnb_process_safe_login($user_name, $user_password) {