Update gnuboard.dbt.php
This commit is contained in:
parent
b75cc959b6
commit
fb813a3869
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user