if($forum_config['o_regs_verify'] == '1')
{
$activate_key=random_key(8, true);
$group_id=0;
$query = array(
'INSERT' => 'group_id,username,password,salt,email,timezone,dst,registered, registration_ip, last_visit, activate_key',
'INTO' => 'users',
'VALUES' => '\''.$group_id.'\',\''.$row['username'].'\',\''.$row['password'].'\',\''.$forum_db->escape($row['salt']).'\',\''.$forum_db->escape($row['email']).'\',\''.$row['timezone'].'\',\''.$row['dst'].'\',\''.$row['registered'].'\',\''.$row['registration_ip'].'\',\''.$row['last_visit'].'\',\''.$forum_db->escape($activate_key).'\''
);
}
else
{
$query = array(
'INSERT' => 'username,password,salt,email,timezone,dst,registered, registration_ip, last_visit, activate_key',
'INTO' => 'users',
'VALUES' => '\''.$row['username'].'\',\''.$row['password'].'\',\''.$forum_db->escape($row['salt']).'\',\''.$forum_db->escape($row['email']).'\',\''.$row['timezone'].'\',\''.$row['dst'].'\',\''.$row['registered'].'\',\''.$row['registration_ip'].'\',\''.$row['last_visit'].'\',\''.$forum_db->escape($activate_key).'\''
);
}