|
|
|
@ -231,7 +231,7 @@ class Index extends CI_Controller {
|
|
|
|
|
|
|
|
|
|
$tolist_array = array();
|
|
|
|
|
$tolist_array['0'] = new stdClass();
|
|
|
|
|
$tolist_array['0']->ddu_Email = 'cyc@hainatravel.com';
|
|
|
|
|
$tolist_array['0']->ddu_Email = 'hr@chinahighlights.net';
|
|
|
|
|
|
|
|
|
|
if($this->do_sendmail('cyc',$tolist_array,'','应聘简历',$mailnody)){
|
|
|
|
|
echo '{"status":1}';
|
|
|
|
@ -246,15 +246,16 @@ class Index extends CI_Controller {
|
|
|
|
|
$mail = new PHPMailer();
|
|
|
|
|
$mail->IsSMTP();
|
|
|
|
|
$mail->Host = 'smtp.mxhichina.com';//smtp.sendgrid.net
|
|
|
|
|
$mail->Port = 25;
|
|
|
|
|
$mail->Port = 465;
|
|
|
|
|
$mail->SMTPAuth = true;
|
|
|
|
|
$mail->SMTPSecure = false;
|
|
|
|
|
$mail->Username = 'admin@hainatravel.com';
|
|
|
|
|
$mail->Password = "Hainatravel123";//Hainatravel1234
|
|
|
|
|
$mail->SMTPSecure = 'tls';
|
|
|
|
|
$mail->SMTPSecure = 'ssl';
|
|
|
|
|
$mail->CharSet = "utf-8";
|
|
|
|
|
$mail->Encoding = "base64";
|
|
|
|
|
$mail->IsHTML(true);
|
|
|
|
|
|
|
|
|
|
//$mail->SMTPDebug = 2;
|
|
|
|
|
|
|
|
|
|
$mail->FromName = $fromuser; //收件人昵称
|
|
|
|
|
$mail->From = 'admin@hainatravel.com'; //发件人
|
|
|
|
@ -574,6 +575,28 @@ class Index extends CI_Controller {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function upload_photos() {
|
|
|
|
|
$save_path = date('Y-m-d');
|
|
|
|
|
$jsfunction = 'get_photo_url';
|
|
|
|
|
$upload_id = 'Profile_file';
|
|
|
|
|
$config['upload_path'] = APPPATH . 'upload/' . $save_path;
|
|
|
|
|
if (!is_dir($config['upload_path'])) {
|
|
|
|
|
@mkdir($config['upload_path'], 0777, true);
|
|
|
|
|
}
|
|
|
|
|
$config['allowed_types'] = 'gif|jpg|png';
|
|
|
|
|
$config['encrypt_name'] = true;
|
|
|
|
|
|
|
|
|
|
$this->load->library('upload', $config);
|
|
|
|
|
if (!$this->upload->do_upload($upload_id)) {
|
|
|
|
|
$error = array('error' => $this->upload->display_errors());
|
|
|
|
|
var_dump($error);
|
|
|
|
|
} else {
|
|
|
|
|
$data = array('upload_data' => $this->upload->data());
|
|
|
|
|
$file_name = 'http://' . $_SERVER['HTTP_HOST'] . '/' . $config['upload_path'] . '/' . $data['upload_data']['file_name'];
|
|
|
|
|
echo "<script>parent.$jsfunction('$file_name');</script>";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//退出
|
|
|
|
|
public function logout(){
|
|
|
|
|
$this->session->unset_userdata('dingding_user_info');
|
|
|
|
|