|
|
@ -175,7 +175,10 @@ class Index extends CI_Controller {
|
|
|
|
$data['rank_month'] = $this->Outlook_model->get_person_rank($from_date, $to_date);
|
|
|
|
$data['rank_month'] = $this->Outlook_model->get_person_rank($from_date, $to_date);
|
|
|
|
//年榜
|
|
|
|
//年榜
|
|
|
|
$year_start = strtotime(date('Y-01-01', time()));
|
|
|
|
$year_start = strtotime(date('Y-01-01', time()));
|
|
|
|
|
|
|
|
//$year_start = strtotime(date('2016-01-01'));
|
|
|
|
$year_end = strtotime(date('Y-12-31', time()));
|
|
|
|
$year_end = strtotime(date('Y-12-31', time()));
|
|
|
|
|
|
|
|
//$year_end = strtotime(date('2016-12-31'));
|
|
|
|
|
|
|
|
|
|
|
|
$data['rank_year'] = $this->Outlook_model->get_person_rank($year_start, $year_end);
|
|
|
|
$data['rank_year'] = $this->Outlook_model->get_person_rank($year_start, $year_end);
|
|
|
|
//总榜
|
|
|
|
//总榜
|
|
|
|
//$data['rank_all']=$this->Outlook_model->get_person_rank();
|
|
|
|
//$data['rank_all']=$this->Outlook_model->get_person_rank();
|
|
|
@ -342,12 +345,12 @@ class Index extends CI_Controller {
|
|
|
|
|
|
|
|
|
|
|
|
$tip_type = 'comment'; //等于comment时页面不弹出提示
|
|
|
|
$tip_type = 'comment'; //等于comment时页面不弹出提示
|
|
|
|
$tpldata['list'] = $this->Outlook_model->get_comment_list($whc_whm_identify, 'comment', 'DESC');
|
|
|
|
$tpldata['list'] = $this->Outlook_model->get_comment_list($whc_whm_identify, 'comment', 'DESC');
|
|
|
|
$tpldata['mail_text'] = $this->Outlook_model->get_mail_text($whc_whm_identify);
|
|
|
|
$tpldata['mail_text'] = $this->Outlook_model->get_mail_text($whc_whm_identify);
|
|
|
|
$tpldata['userinfo'] = $this->Outlook_model->get_webhtuser_by_filed('whu_email', $whc_whm_identify . '@citsguilin.com', '*');
|
|
|
|
$tpldata['userinfo'] = $this->Outlook_model->get_webhtuser_by_filed('whu_email', $whc_whm_identify . '@citsguilin.com', '*');
|
|
|
|
|
|
|
|
|
|
|
|
if ($current_user->whu_uid && $linktype != 'comment' && $tpldata['userinfo']->whu_uid != $current_user->whu_uid) {
|
|
|
|
if ($current_user->whu_uid && $linktype != 'comment' && $tpldata['userinfo']->whu_uid != $current_user->whu_uid) {
|
|
|
|
$like_count = $this->Outlook_model->get_comment_count($whc_whm_identify, $linktype, $current_user->whu_uid);
|
|
|
|
$like_count = $this->Outlook_model->get_comment_count($whc_whm_identify, $linktype, $current_user->whu_uid);
|
|
|
|
if ($like_count < 3) {
|
|
|
|
if ($like_count < 3) {
|
|
|
|
$data['whc_type'] = $linktype;
|
|
|
|
$data['whc_type'] = $linktype;
|
|
|
|
$data['whc_whm_identify'] = $whc_whm_identify;
|
|
|
|
$data['whc_whm_identify'] = $whc_whm_identify;
|
|
|
|
$data['whc_uid'] = $current_user->whu_uid;
|
|
|
|
$data['whc_uid'] = $current_user->whu_uid;
|
|
|
@ -373,7 +376,7 @@ class Index extends CI_Controller {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$tpldata['list_count'] = $this->Outlook_model->get_space_comment($tpldata['userinfo']->whu_uname, $whc_whm_identify, 'comment', true);
|
|
|
|
$tpldata['list_count'] = $this->Outlook_model->get_space_comment($tpldata['userinfo']->whu_uname, $whc_whm_identify, 'comment', true);
|
|
|
|
$tpldata['like_list'] = $this->Outlook_model->get_space_comment($tpldata['userinfo']->whu_uname, $whc_whm_identify, 'like');
|
|
|
|
$tpldata['like_list'] = $this->Outlook_model->get_space_comment($tpldata['userinfo']->whu_uname, $whc_whm_identify, 'like');
|
|
|
|
$tpldata['unlike_list'] = $this->Outlook_model->get_space_comment($tpldata['userinfo']->whu_uname, $whc_whm_identify, 'unlike');
|
|
|
|
$tpldata['unlike_list'] = $this->Outlook_model->get_space_comment($tpldata['userinfo']->whu_uname, $whc_whm_identify, 'unlike');
|
|
|
|
$tpldata['type'] = $tip_type;
|
|
|
|
$tpldata['type'] = $tip_type;
|
|
|
|
$tpldata['current_user'] = $current_user;
|
|
|
|
$tpldata['current_user'] = $current_user;
|
|
|
@ -627,7 +630,6 @@ class Index extends CI_Controller {
|
|
|
|
$fromemail = $fromuser->whu_email;
|
|
|
|
$fromemail = $fromuser->whu_email;
|
|
|
|
$subject = $this->input->post('mail_subject');
|
|
|
|
$subject = $this->input->post('mail_subject');
|
|
|
|
$body = $this->input->post('emailcontent') . $mailbody;
|
|
|
|
$body = $this->input->post('emailcontent') . $mailbody;
|
|
|
|
|
|
|
|
|
|
|
|
if (!$this->do_sendmail($fromemail, $tolist_array, $cclist_array, $subject, $body)) {
|
|
|
|
if (!$this->do_sendmail($fromemail, $tolist_array, $cclist_array, $subject, $body)) {
|
|
|
|
$result = 0; //"邮件发送有误: " . $mail->ErrorInfo;
|
|
|
|
$result = 0; //"邮件发送有误: " . $mail->ErrorInfo;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -671,7 +673,8 @@ class Index extends CI_Controller {
|
|
|
|
$mail->Body = $mailbody; //邮件内容
|
|
|
|
$mail->Body = $mailbody; //邮件内容
|
|
|
|
|
|
|
|
|
|
|
|
if (!$mail->Send()) {
|
|
|
|
if (!$mail->Send()) {
|
|
|
|
$result = false; //"邮件发送有误: " . $mail->ErrorInfo;
|
|
|
|
//$result = false;// echo "邮件发送有误: " . $mail->ErrorInfo;
|
|
|
|
|
|
|
|
echo "邮件发送有误: " . $mail->ErrorInfo;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$result = true;
|
|
|
|
$result = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -814,6 +817,7 @@ class Index extends CI_Controller {
|
|
|
|
$whu_uname = $whu_uname[0];
|
|
|
|
$whu_uname = $whu_uname[0];
|
|
|
|
$whu_ip = $this->input->post('whu_ip');
|
|
|
|
$whu_ip = $this->input->post('whu_ip');
|
|
|
|
$result = $this->Outlook_model->verify_user($whu_uname, $whu_ip);
|
|
|
|
$result = $this->Outlook_model->verify_user($whu_uname, $whu_ip);
|
|
|
|
|
|
|
|
|
|
|
|
echo $result;
|
|
|
|
echo $result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|