$sql = "select * from {$t_users} where user_email='{$u_email}'"; $user_info = $dbo->getRow($sql); if (empty($user_info)) { echo 'emailmsg|' . $l_langpackage->l_not_check; exit; } $get_pws = $user_info['user_pws']; if ($get_pws != $user_pws) { echo 'pwdmsg|' . $l_langpackage->l_wrong_pass; exit; } if ($user_info['is_pass'] == 0) { echo 'emailmsg|' . $l_langpackage->l_lock_u; exit; } $mypals = getMypals($dbo, $user_info['user_id'], $t_mypals); set_sess_mypals($mypals); set_sess_username($user_info['user_name']); set_sess_userid($user_info['user_id']); set_sess_usersex($user_info['user_sex']); set_sess_cgroup($user_info['creat_group']); set_sess_jgroup($user_info['join_group']); set_sess_userico($user_info['user_ico']); set_session('hidden_pals', $user_info['hidden_pals_id']); set_session('hidden_type', $user_info['hidden_type_id']); set_sess_plugins($user_info['use_plugins']); set_sess_apps($user_info['use_apps']); set_sess_online($hidden); set_session($user_info['user_id'] . "_dressup", $user_info['dressup']); $sql = "select * from {$t_frontgroup} where gid='{$user_info['user_group']}'"; $rights = $dbo->getRow($sql);
$p_result_rs = array(); $p_com_rs = array(); $p_put_info = array(); $poll_row = array(); $sum_poll_num = array(); $is_poll = array(); $pals_id = ''; $refuse_str = ''; $error_str = ''; if ($pid) { $poll_row = get_poll_row($dbo, $t_poll, $pid); $sql = "select * from {$t_polloption} where pid={$pid}"; $p_result_rs = $dbo->getRs($sql); $sql = "select sum(votenum) as sum_votenum from {$t_polloption} where pid={$pid}"; $sum_poll_num = $dbo->getRow($sql); $pals_id = getMypals($dbo, $poll_row['user_id'], $t_mypals); $sql = "select * from {$t_polluser} where pid={$pid} order by dateline desc limit 10"; $p_put_info = $dbo->getRs($sql); } //投票信息 $show_poll_info = ""; if (empty($p_put_info)) { $show_poll_info = "content_none"; } if ($ses_uid != '') { $sql = "select username from {$t_polluser} where uid={$ses_uid} and pid={$pid}"; $is_poll = $dbo->getRs($sql); } //防止重复投票 if (empty($is_poll)) { $check_form = "check_form();";