@ -61,3 +76,18 @@ function a_login($username, $password)
$GLOBALS['db']->query("UPDATE {$GLOBALS['DT_PRE']}_memeber SET loginip='{$GLOBALS['DT_IP']}',logintime={$GLOBALS['DT_TIME']},logintimes=logintimes+1 WHERE userid={$user['userid']}");
return $user;
}
function k_sell()
{
$categories = $GLOBALS['db']->query("SELECT * FROM {$GLOBALS['DT_PRE']}category where moduleid=5 ");
if (!$categories) {
var_dump(mysql_error());
}
$data = [];
if (mysql_num_rows($categories) > 0) {
while ($category = mysql_fetch_assoc($categories)) {