• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP getEmail函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getEmail函数的典型用法代码示例。如果您正苦于以下问题:PHP getEmail函数的具体用法?PHP getEmail怎么用?PHP getEmail使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getEmail函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: kirim_undangan

 function kirim_undangan($id)
 {
     if (!$this->ion_auth->logged_in()) {
         redirect('auth/login', 'refresh');
     }
     $is_update = getValue('is_invited', 'users_resignment', array('id' => 'where/' . $id));
     $undangan = array('is_invited' => 1, 'date_invitation' => date('Y-m-d', strtotime($this->input->post('date_invited'))), 'time_invitation' => $this->input->post('time_invited'), 'note_invitation' => $this->input->post('note_invited'));
     $this->db->where('id', $id)->update('users_resignment', $undangan);
     $sess_id = $this->session->userdata('user_id');
     $user_id = getValue('user_id', 'users_resignment', array('id' => 'where/' . $id));
     $url = base_url() . 'form_resignment/detail/' . $id;
     $isi_email = $is_update == 0 ? get_name($sess_id) . " mengundang anda untuk melakukan wawancara pengajuan resign yang telah anda ajukan, untuk melihat detail silakan <a class='klikmail' href={$url}>Klik Disini</a><br />" : get_name($sess_id) . " melakukan perubahan jadwal wawancara pengajuan resign yang telah anda ajukan, untuk melihat detail silakan <a class='klikmail' href={$url}>Klik Disini</a><br />";
     $subject = $is_update == 0 ? '' : 'Perubahan Jadwal ';
     $data = array('sender_id' => get_nik($sess_id), 'receiver_id' => get_nik($user_id), 'sent_on' => date('Y-m-d-H-i-s', strtotime('now')), 'subject' => $subject . 'Undangan Wawancara Resignment', 'email_body' => $isi_email . $this->detail_email($id), 'is_read' => 0);
     $this->db->insert('email', $data);
     if (!empty(getEmail(get_nik($user_id)))) {
         $this->send_email(getEmail($user_id), 'Undangan Wawancara Resignment', $isi_email);
     }
 }
开发者ID:ocpyosep78,项目名称:hris_client,代码行数:19,代码来源:form_resignment.php


示例2: changePass

function changePass($user, $pass)
{
    $email = getEmail();
    $salt = substr("{$user}", 0, 2);
    $epass = crypt($pass, $salt);
    $params = array('user' => $user, 'epass' => $epass);
    $result = query("user.changePass", $params);
    echo " <img src=\"icon_accept.gif\" border=\"0\" /> password has been updated!";
}
开发者ID:ultramookie,项目名称:dertyn,代码行数:9,代码来源:dertyn.php


示例3: do_approve

 function do_approve($id, $type)
 {
     if (!$this->ion_auth->logged_in()) {
         redirect('auth/login', 'refresh');
     } else {
         $user_id = get_nik($this->session->userdata('user_id'));
         $date_now = date('Y-m-d');
         $data = array('is_app_' . $type => 1, 'approval_status_id_' . $type => $this->input->post('app_status_' . $type), 'user_app_' . $type => $user_id, 'date_app_' . $type => $date_now, 'note_' . $type => $this->input->post('note_' . $type));
         $approval_status = $this->input->post('app_status_' . $type);
         $this->recruitment_model->update($id, $data);
         $approval_status_mail = getValue('title', 'approval_status', array('id' => 'where/' . $approval_status));
         $user_recruitment_id = getValue('user_id', 'users_recruitment', array('id' => 'where/' . $id));
         $isi_email = 'Status pengajuan recruitment anda ' . $approval_status_mail . ' oleh ' . get_name($user_id) . ' untuk detail silakan <a href=' . base_url() . 'form_recruitment/detail/' . $id . '>Klik Disini</a><br />';
         $isi_email_request = get_name($user_recruitment_id) . ' mengajukan Permohonan recruitment, untuk melihat detail silakan <a href=' . base_url() . 'form_recruitment/detail/' . $id . '>Klik Disini</a><br />';
         if ($is_app == 0) {
             $this->approval->approve('recruitment', $id, $approval_status, $this->detail_email($id));
             if (!empty(getEmail($user_recruitment_id))) {
                 $this->send_email(getEmail($user_recruitment_id), 'Status Pengajuan Permohonan Recruitment dari Atasan', $isi_email);
             }
         } else {
             $this->approval->update_approve('recruitment', $id, $approval_status, $this->detail_email($id));
             if (!empty(getEmail($user_recruitment_id))) {
                 $this->send_email(getEmail($user_recruitment_id), 'Perubahan Status Pengajuan Permohonan Recruitment dari Atasan', $isi_email);
             }
         }
         if ($type !== 'hrd' && $approval_status == 1) {
             $lv = substr($type, -1) + 1;
             $lv_app = 'lv' . $lv;
             $user_app = $lv < 4 ? getValue('user_app_' . $lv_app, 'users_recruitment', array('id' => 'where/' . $id)) : 0;
             if (!empty($user_app)) {
                 if (!empty(getEmail($user_app))) {
                     $this->send_email(getEmail($user_app), 'Pengajuan Permohonan Recruitment', $isi_email_request);
                 }
                 $this->approval->request($lv_app, 'recruitment', $id, $user_recruitment_id, $this->detail_email($id));
             } else {
                 if (!empty(getEmail($this->approval->approver('recruitment')))) {
                     $this->send_email(getEmail($this->approval->approver('recruitment')), 'Pengajuan Permohonan Recruitment', $isi_email_request);
                 }
                 $this->approval->request('hrd', 'recruitment', $id, $user_recruitment_id, $this->detail_email($id));
             }
         } else {
             $email_body = "Status pengajuan permohonan recruitment yang diajukan oleh " . get_name($user_recruitment_id) . ' ' . $approval_status_mail . ' oleh ' . get_name($user_id) . ' untuk detail silakan <a href=' . base_url() . 'form_recruitment/detail/' . $id . '>Klik Disini</a><br />';
             switch ($type) {
                 case 'lv1':
                     //$this->approval->not_approve('recruitment', $id, )
                     break;
                 case 'lv2':
                     $receiver_id = getValue('user_app_lv1', 'users_recruitment', array('id' => 'where/' . $id));
                     $this->approval->not_approve('recruitment', $id, $receiver_id, $approval_status, $this->detail_email($id));
                     if (!empty(getEmail($receiver_id))) {
                         $this->send_email(getEmail($receiver_id), 'Status Pengajuan Permohonan recruitment Dari Atasan', $email_body);
                     }
                     break;
                 case 'lv3':
                     $receiver_lv2 = getValue('user_app_lv2', 'users_recruitment', array('id' => 'where/' . $id));
                     $this->approval->not_approve('recruitment', $id, $receiver_lv2, $approval_status, $this->detail_email($id));
                     if (!empty(getEmail($receiver_lv2))) {
                         $this->send_email(getEmail($receiver_lv2), 'Status Pengajuan Permohonan recruitment Dari Atasan', $email_body);
                     }
                     $receiver_lv1 = getValue('user_app_lv1', 'users_recruitment', array('id' => 'where/' . $id));
                     $this->approval->not_approve('recruitment', $id, $receiver_lv1, $approval_status, $this->detail_email($id));
                     if (!empty(getEmail($receiver_lv1))) {
                         $this->send_email(getEmail($receiver_lv1), 'Status Pengajuan Permohonan recruitment Dari Atasan', $email_body);
                     }
                     break;
                 case 'hrd':
                     $receiver_lv3 = getValue('user_app_lv3', 'users_recruitment', array('id' => 'where/' . $id));
                     if (!empty($receiver_lv3)) {
                         $this->approval->not_approve('recruitment', $id, $receiver_lv3, $approval_status, $this->detail_email($id));
                         if (!empty(getEmail($receiver_lv3))) {
                             $this->send_email(getEmail($receiver_lv3), 'Status Pengajuan Permohonan recruitment Dari Atasan', $email_body);
                         }
                     }
                     $receiver_lv2 = getValue('user_app_lv2', 'users_recruitment', array('id' => 'where/' . $id));
                     if (!empty($receiver_lv2)) {
                         $this->approval->not_approve('recruitment', $id, $receiver_lv2, $approval_status, $this->detail_email($id));
                         if (!empty(getEmail($receiver_lv2))) {
                             $this->send_email(getEmail($receiver_lv2), 'Status Pengajuan Permohonan recruitment Dari Atasan', $email_body);
                         }
                     }
                     $receiver_lv1 = getValue('user_app_lv1', 'users_recruitment', array('id' => 'where/' . $id));
                     if (!empty($receiver_lv1)) {
                         $this->approval->not_approve('recruitment', $id, $receiver_lv1, $approval_status, $this->detail_email($id));
                         if (!empty(getEmail($receiver_lv1))) {
                             $this->send_email(getEmail($receiver_lv1), 'Status Pengajuan Permohonan recruitment Dari Atasan', $email_body);
                         }
                     }
                     break;
             }
         }
         redirect('form_recruitment/approval/' . $id, 'refresh');
     }
 }
开发者ID:ocpyosep78,项目名称:hris_client,代码行数:93,代码来源:form_recruitment.php


示例4: getEmail

<?php

function getEmail($name)
{
    $sqlite = new PDO("sqlite:/usr/local/users.db");
    $rows = $db->query("SELECT email FROM users WHERE name LIKE '{$name}'");
    $row = $rows->fetch();
    $email = $row['email'];
    return $email;
}
$email = getEmail('Rasmus Lerdorf');
开发者ID:zmwebdev,项目名称:PHPcookbook-code-3ed,代码行数:11,代码来源:access-control3.php


示例5: add

 public function add()
 {
     $this->form_validation->set_rules('destination', 'Tujuan', 'trim|required');
     $this->form_validation->set_rules('title', 'Tanggal Terakhir Cuti', 'trim|required');
     $this->form_validation->set_rules('date_spd_start', 'Tanggal Berangkat', 'trim|required');
     $this->form_validation->set_rules('date_spd_end', 'Tanggal Berangkat', 'trim|required');
     $this->form_validation->set_rules('city_to', 'Kota Tujuan', 'trim|required');
     $this->form_validation->set_rules('city_from', 'Kota Asal', 'trim|required');
     $this->form_validation->set_rules('vehicle', 'Kendaraan', 'trim|required');
     if ($this->form_validation->run() == FALSE) {
         //echo json_encode(array('st'=>0, 'errors'=>validation_errors('<div class="alert alert-danger" role="alert">', '</div>')));
         redirect('form_spd_luar_group/input', 'refresh');
     } else {
         $sess_id = $this->session->userdata('user_id');
         $sess_nik = get_nik($sess_id);
         $task_receiver = implode(',', $this->input->post('peserta'));
         $additional_data = array('task_creator' => $this->input->post('emp_tc'), 'title' => $this->input->post('title'), 'destination' => $this->input->post('destination'), 'date_spd_start' => date('Y-m-d', strtotime($this->input->post('date_spd_start'))), 'date_spd_end' => date('Y-m-d', strtotime($this->input->post('date_spd_end'))), 'from_city_id' => $this->input->post('city_from'), 'to_city_id' => $this->input->post('city_to'), 'transportation_id' => $this->input->post('vehicle'), 'user_app_lv1' => $this->input->post('atasan1'), 'user_app_lv2' => $this->input->post('atasan2'), 'user_app_lv3' => $this->input->post('atasan3'), 'created_on' => date('Y-m-d', strtotime('now')), 'created_by' => $sess_id);
         $task_creator = $this->input->post('emp_tc');
         $created_by = $sess_nik;
         $biaya_tambahan_id = $this->input->post('biaya_tambahan_id');
         $biaya_tambahan = $this->input->post('jumlah_biaya_tambahan');
         if ($this->form_validation->run() == true && $this->form_spd_luar_group_model->create_($task_receiver, $additional_data)) {
             $spd_id = $this->db->insert_id();
             $tr = $this->input->post('peserta');
             if (!empty($biaya_tambahan_id)) {
                 for ($i = 0; $i < sizeof($tr); $i++) {
                     for ($j = 0; $j < sizeof($biaya_tambahan_id); $j++) {
                         $data = array('user_spd_luar_group_id' => $spd_id, 'user_id' => $tr[$i], 'pjd_biaya_id' => $biaya_tambahan_id[$j], 'jumlah_biaya' => str_replace(',', '', $biaya_tambahan[$j]), 'created_on' => date('Y-m-d', strtotime('now')), 'created_by' => $sess_id);
                         $this->db->insert('users_spd_luar_group_biaya', $data);
                     }
                 }
             }
             $task_receiver_id = explode(',', $task_receiver);
             $this->send_spd_mail($spd_id, $task_creator, $task_receiver_id);
             $user_app_lv1 = getValue('user_app_lv1', 'users_spd_luar_group', array('id' => 'where/' . $spd_id));
             $isi_email = get_name($task_creator) . ' mengajukan Perjalanan Dinas Luar Kota, untuk melihat detail silakan <a href=' . base_url() . 'form_spd_luar_group/submit/' . $spd_id . '>Klik Disini</a><br />';
             if ($task_creator !== $created_by) {
                 $this->approval->by_admin('spd_luar_group', $spd_id, $created_by, $task_creator, $this->detail_email_submit($spd_id));
             }
             if (!empty($user_app_lv1)) {
                 if (!empty(getEmail($user_app_lv1))) {
                     $this->send_email(getEmail($user_app_lv1), 'Pengajuan Perjalanan Dinas Luar Kota (Group)', $isi_email);
                 }
                 $this->approval->request('lv1', 'spd_luar_group', $spd_id, $task_creator, $this->detail_email_submit($spd_id));
             } else {
                 if (!empty(getEmail($this->approval->approver('dinas')))) {
                     $this->send_email(getEmail($this->approval->approver('dinas')), 'Pengajuan Perjalanan Dinas Luar Kota (Group)', $isi_email);
                 }
                 $this->approval->request('hrd', 'spd_luar_group', $spd_id, $task_creator, $this->detail_email_submit($spd_id));
             }
             //echo json_encode(array('st' =>1));
             redirect('form_spd_luar_group/input_biaya/' . $spd_id, 'refresh');
         }
     }
 }
开发者ID:ocpyosep78,项目名称:hris_client,代码行数:55,代码来源:form_spd_luar_group.php


示例6: traiter

function traiter()
{
    global $db_realmd;
    $id = $_SESSION['id'];
    if (empty($_POST['email'])) {
        die("Vous n'avez pas rentré d'adresse email !");
    }
    $email = $_POST['email'];
    if (!empty($_POST['mdp'])) {
        $mdp = $_POST['mdp'];
        $query = $db_realmd->query("SELECT `username` FROM `account` WHERE `id` = '" . $id . "' LIMIT 1");
        $fetch = $query->fetch(PDO::FETCH_NUM);
        $sha_pass = sha1(strtoupper($fetch[0]) . ':' . strtoupper($mdp));
        try {
            global $prepare_query_mdp;
            $prepare_query_mdp->execute(array($sha_pass, $id));
        } catch (Exception $e) {
            die("Erreur lors de la requête du mot de passe <br/>Erreur à communiquer : " . $e->getMessage());
        }
    }
    if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
        die("<div align=\"center\"><font color=\"red\">L'adresse email rentré n'a pas le bon format !</font></div>");
    }
    if ($email != getEmail()) {
        global $prepare_query_email;
        $prepare_query_email->execute(array($email, $id));
    }
    return true;
}
开发者ID:pauljenny,项目名称:NoCMS,代码行数:29,代码来源:modify.php


示例7: getContact

function getContact($idContact)
{
    //Realiza el query en la base de datos
    $mysqli = makeSqlConnection();
    $sql = "SELECT * FROM contacts a LEFT JOIN contacts_cstm ac ON a.id = ac.id_c WHERE id = '{$idContact}'";
    $res = $mysqli->query($sql);
    $rows = array();
    while ($r = mysqli_fetch_assoc($res)) {
        $obj = (object) $r;
        $obj->email_address = getEmail($idContact);
        $obj->idAccount = getAccountId($idContact);
        $obj->nameAccount = getAccountName($obj->idAccount);
        $obj->reports_to_name = getContactName($obj->reports_to_id);
        $obj->created_by_name = getUserName($obj->created_by);
        $obj->modified_user_name = getUserName($obj->modified_user_id);
        $obj->assigned_user_name = getUserName($obj->user_id_c);
        $obj->nameCampaign = getCampaignName($obj->campaign_id);
        $a = (array) $obj;
        $rows[] = $a;
    }
    if (empty($rows)) {
        return '{"results" :[]}';
    } else {
        //Convierte el arreglo en json y lo retorna
        $temp = json_encode(utf8ize($rows));
        return '{"results" :' . $temp . '}';
    }
}
开发者ID:ekutor,项目名称:hermes,代码行数:28,代码来源:getContact.php


示例8: register_header

 function register_header()
 {
     global $_G;
     $inputemail = 'gp_' . $this->regemail['email'];
     $_G['gp_email'] = $_G[$inputemail];
     if ($_POST) {
         $_G['gp_activationauth'] = strip_tags(str_replace(" ", "+", $_G['gp_activationauth']));
         $activationinfo = authcode($_G['gp_activationauth'], $operation = 'DECODE');
         $activationinfoname = preg_replace("/\\s.+/i", "", $activationinfo);
         if ($activationinfoname) {
             loaducenter();
             if ($data = uc_get_user($activationinfoname)) {
                 list($uid, $username, $email) = $data;
             }
             $_G['gp_email'] = getEmail(strip_tags($email));
         } else {
             $_G['gp_email'] = getEmail(strip_tags($_G['gp_email']));
         }
         $_G['gp_rid'] = strip_tags($_G['gp_rid']);
         if (!$_G['gp_rid']) {
             showmessage('dsu_amufzc:1', '');
         }
         if (!$_G['gp_email']) {
             showmessage('dsu_amufzc:5', '');
         }
         $amutb = DB::table("plugin_dsuamfzc");
         $query = DB::fetch_first("SELECT * FROM {$amutb} WHERE rid = '" . $_G['gp_rid'] . "'");
         if (!$query || $query['yes'] == '1') {
             showmessage('dsu_amufzc:2', '');
         }
         if ($_G['gp_email'] != $query['email']) {
             showmessage('dsu_amufzc:11', '');
         }
     }
 }
开发者ID:v998,项目名称:dsu,代码行数:35,代码来源:fzc.class.php


示例9: login

function login($ip, $nick, $password)
{
    /*$intentos = 0;
    		if (isset($_COOKIE['intentos'])){ 
    			$intentos = $_COOKIE['intentos'];
    		}
    				
    		if ($intentos <= 3){*/
    $hashedPassword = hash("sha256", $password, false);
    if (checkNickPassword($nick, $hashedPassword)) {
        $email = getEmail($nick);
        $_SESSION['nick'] = $nick;
        $_SESSION['email'] = $email;
        $_SESSION['role'] = getRole($email);
        //setcookie( 'intentos', 0, time() + 1800 ); //30 minutos
        addAction($nick, $email, $ip, 'logged_in');
        addConnection($nick, $email, $ip);
        return '0';
        // Logged.
    } else {
        //if ($intentos < 3) {
        //setcookie( 'intentos', $intentos + 1, time() + 1800 ); //30 minutos
        return '1';
        // Log in failed.
    }
    /*} 
    		
    		setcookie( 'intentos', 0, time() + 1800);
    		return '2';	// Superado el límite de intentos.
    		*/
}
开发者ID:jagumiel,项目名称:bigou-Album,代码行数:31,代码来源:user_logic.php


示例10: action

 function action($data = array(), $post = array(), $id)
 {
     $ci =& get_instance();
     $ci->load->library('session');
     if (isset($this->ini['sandbox']) && isset($this->ini['api_login_id']) && isset($this->ini['transaction_key']) && isset($post['card_num']) && isset($post['exp_date'])) {
         require dirname(__FILE__) . '/lib/shared/AuthorizeNetRequest.php';
         require dirname(__FILE__) . '/lib/shared/AuthorizeNetTypes.php';
         require dirname(__FILE__) . '/lib/shared/AuthorizeNetXMLResponse.php';
         require dirname(__FILE__) . '/lib/shared/AuthorizeNetResponse.php';
         require dirname(__FILE__) . '/lib/AuthorizeNetAIM.php';
         define("AUTHORIZENET_API_LOGIN_ID", $this->ini['api_login_id']);
         define("AUTHORIZENET_TRANSACTION_KEY", $this->ini['transaction_key']);
         define("AUTHORIZENET_SANDBOX", $this->ini['sandbox']);
         $sale = new AuthorizeNetAIM();
         $sale->amount = number_format($data['amount'], 2);
         $sale->card_num = $post['card_num'];
         $sale->exp_date = $post['exp_date'];
         $response = $sale->authorizeAndCapture();
         if ($response->approved) {
             $ci =& get_instance();
             $ci->load->model('order_m');
             $order = $ci->order_m->getOrderNumber($data['item_number']);
             if (count($order) > 0) {
                 $update['status'] = 'completed';
                 $updatehis['order_id'] = $order->id;
                 $updatehis['label'] = 'order_status';
                 $updatehis['content'] = json_encode(array($order->order_number => 'completed'));
                 $updatehis['date'] = date('Y-m-d H:i:s');
                 $ci->order_m->_table_name = 'orders';
                 if ($ci->order_m->save($update, $order->id)) {
                     $ci->order_m->_table_name = 'orders_histories';
                     $ci->order_m->save($updatehis);
                     $ci->load->helper('cms');
                     $user = $ci->session->userdata('user');
                     //params shortcode email.
                     $params = array('username' => $user['username'], 'email' => $user['email'], 'date' => date('Y-m-d H:i:s'), 'shop' => getSiteName(config_item('site_name')), 'shop_url' => site_url(), 'total' => number_format($data['amount'], 2), 'order_number' => $data['item_number'], 'status' => 'completed');
                     //config email.
                     $config = array('mailtype' => 'html');
                     $subject = configEmail('sub_order_status', $params);
                     $message = configEmail('order_status', $params);
                     $ci->load->library('email', $config);
                     $ci->email->from(getEmail(config_item('admin_email')), getSiteName(config_item('site_name')));
                     $ci->email->to($user['email']);
                     $ci->email->subject($subject);
                     $ci->email->message($message);
                     $ci->email->send();
                 }
             }
             $ci->session->set_flashdata('msg', 'Thanks you for payment!');
             if (isset($this->ini['message'])) {
                 $ci->session->set_flashdata('message', $this->ini['message']);
             }
         } else {
             $ci->session->set_flashdata('error', 'Your payment not success!');
         }
     }
     redirect(site_url('payment/confirm'));
 }
开发者ID:Nnamso,项目名称:tbox,代码行数:58,代码来源:authorize.php


示例11: createVCard

function createVCard($array)
{
    $return = 'BEGIN:VCARD' . PHP_EOL;
    $return .= 'VERSION:2.1' . PHP_EOL;
    $return .= getName($array) . PHP_EOL;
    $return .= getFormatedName($array) . PHP_EOL;
    $return .= getPhoto($array);
    $return .= getTelephonePrivate($array);
    $return .= getMobilePrivate($array);
    //$return .= 'TEL;WORK;VOICE:(0221) 9999123' . PHP_EOL;
    //$return .= 'TEL;HOME;VOICE:(0221) 1234567' . PHP_EOL;
    $return .= getAddress($array);
    $return .= getEmail($array);
    $return .= date('Y-m-d H:i:s') . PHP_EOL;
    $return .= 'END:VCARD' . PHP_EOL;
    return $return;
}
开发者ID:michaelsoftware1997,项目名称:vision-server,代码行数:17,代码来源:vcard.php


示例12: send_notification

 function send_notification($id)
 {
     permissionUser();
     $url = base_url() . $this->file_name . '/detail/' . $id;
     $subject = 'Pengajuan Work Order';
     $isi = getName(sessId()) . " membuat Work Order, Untuk melihat detail silakan <a href={$url}> KLIK DISINI </a>.";
     $no = getValue('no', $this->table_name, array('id' => 'where/' . $id));
     //SEND NOTIFICATION TO PRODUCTION
     $group_id = array('8');
     $user_id = $this->db->select('user_id')->where_in('group_id', $group_id)->get('users_groups')->result();
     foreach ($user_id as $u) {
         $data = array('sender_id' => sessId(), 'receiver_id' => $u->user_id, 'sent_on' => dateNow(), 'judul' => $subject, 'isi' => $isi, 'no' => $no, 'url' => $url);
         $this->db->insert('notifikasi', $data);
         $this->send_email(getEmail($u->user_id), $subject, $isi);
     }
     return TRUE;
 }
开发者ID:abdulghanni,项目名称:gsm,代码行数:17,代码来源:wo.php


示例13: indexAction

 public function indexAction($maquina, $usuario)
 {
     $destinatario = $usuario . getEmail();
     $message = \Swift_Message::newInstance()->setSubject('Soporte Tecnico Agrotecnica N° 4')->setFrom('[email protected]')->setTo($destinatario)->setBody($this->renderView('Emails/maquinaMail.html.twig', array('maquina' => $maquina), array('usuario' => $usuario)), 'text/html');
     $this->get('mailer')->send($message);
     /*
     if ($mailer->send($message))
     {
         echo "Mensaje enviado correctamente";
     }
     else
     {
         echo "Mensaje fallido";
     }
     }
     */
     //return $this->render(...);
 }
开发者ID:sordonez,项目名称:soporteTecnico,代码行数:18,代码来源:MailerController.php


示例14: getAdditionalInfoFromBD

function getAdditionalInfoFromBD($sql)
{
    //Realiza el query en la base de datos
    $mysqli = makeSqlConnection();
    $res = $mysqli->query($sql);
    $rows = array();
    while ($r = mysqli_fetch_assoc($res)) {
        $obj = (object) $r;
        $obj->email_address = getEmail($obj->id);
        $obj->campaign_name = getCampaignName($obj->campaign_id);
        $a = (array) $obj;
        $rows[] = $a;
    }
    if (empty($rows)) {
        return '{"results" :[]}';
    } else {
        //Convierte el arreglo en json y lo retorna
        $temp = json_encode(utf8ize($rows));
        return '{"results" :' . $temp . '}';
    }
}
开发者ID:ekutor,项目名称:hermes,代码行数:21,代码来源:getLeads.php


示例15: store

 public function store(Request $request)
 {
     $request = $request->input('email');
     dd($request->getEmail());
     //$dados = $request->all();
     $dados = ['tb_nome' => $request->input('nome'), 'tb_email' => $request->input('email'), 'tb_data_nascimento' => $request->input('dataNasc'), 'tb_rg' => $request->input('rg'), 'tb_cpf' => $request->input('cpf'), 'tb_pais' => $request->input('pais'), 'tb_estado' => $request->input('estado'), 'tb_cidade' => $request->input('cidade'), 'tb_bairro' => $request->input('bairro'), 'tb_endereco' => $request->input('logradouro')];
     $cadastrar = new \App\Models\ClienteModel();
     $cadastrar->create($dados);
     if ($cadastrar) {
         $mail = ['nome' => $request->input('nome'), 'email' => $request->input('email'), 'data_nascimento' => $request->input('dataNasc'), 'rg' => $request->input('rg'), 'cpf' => $request->input('cpf'), 'pais' => $request->input('pais'), 'estado' => $request->input('estado'), 'cidade' => $request->input('cidade'), 'bairro' => $request->input('bairro'), 'endereco' => $request->input('logradouro')];
         // dd($request->input('email'));
         Mail::send('emails.contact', $mail, function ($msg) {
             $email = $request->input('email');
             $msg->{$email};
             $msg->subject('Email de cadastro');
             $msg->to(getEmail($request->input('email')));
         });
         Session::flash('message', 'Mensagem de criação de cadastro MedCenter');
         return redirect('clientes')->with(['mensagem' => 'Cadastrado com sucesso!']);
     } else {
         return redirect('/');
     }
 }
开发者ID:jardelbelisario,项目名称:oficina-laravel,代码行数:23,代码来源:ClienteController.php


示例16: getCliente

function getCliente($idCliente)
{
    //Realiza el query en la base de datos
    $mysqli = makeSqlConnection();
    $sql = "SELECT * FROM leads a LEFT JOIN leads_cstm ac ON a.id = ac.id_c WHERE id = '{$idCliente}'";
    //$sql = "SELECT id,first_name,last_name FROM leads";
    $res = $mysqli->query($sql);
    $rows = array();
    while ($r = mysqli_fetch_assoc($res)) {
        $obj = (object) $r;
        $obj->email_address = getEmail($idCliente);
        $obj->campaign_name = getCampaignName($obj->campaign_id);
        $obj->assigned_user_name = getUserName($obj->assigned_user_id);
        $a = (array) $obj;
        $rows[] = $a;
    }
    if (empty($rows)) {
        return '{"results" :[]}';
    } else {
        //Convierte el arreglo en json y lo retorna
        $temp = json_encode(utf8ize($rows));
        return '{"results" :' . $temp . '}';
    }
}
开发者ID:ekutor,项目名称:hermes,代码行数:24,代码来源:getCliente.php


示例17: getEmail

<?php

$racine_smarty = "../";
include_once "../init.php";
include_once "config_admin.php";
include_once DOS_INC_ADMIN . "class.form.php";
include_once DOS_INC_ADMIN . "class.field.php";
$webmaster = getEmail("webmaster");
$smarty->assign("email_webmaster", $webmaster[0]);
$smarty->assign("nom_webmaster", $webmaster[1]);
// initialisation de la langue
include_once DOS_INC_ADMIN . "loadLang.php";
if (!isset($_SESSION["tentatives"])) {
    $_SESSION["tentatives"] = 0;
}
if ($thisSite->SERVER == "local") {
    $_SESSION["tentatives"] = 0;
}
$myAdmin->DATAS_LOGIN = "";
$myAdmin->LOGIN = "";
$myAdmin->MOTDEPASSE = "";
// traitement du formulaire
if (isset($__POST['identifiant'])) {
    //if(verifier_token('sky-form', $thisSite->RACINE . $thisSite->DOS_ADMIN . "login.php")==FALSE) { exit; }
    $mySelect = new mySelect(__FILE__);
    $mySelect->tables = $thisSite->PREFIXE_TBL_ADM . "administrateurs";
    $mySelect->fields = "*";
    $mySelect->where = "login=:login AND mdp=:mdp AND actif=1";
    $mySelect->whereValue["login"] = array($__POST['identifiant'], PDO::PARAM_STR);
    $mySelect->whereValue["mdp"] = array(md5($__POST['password']), PDO::PARAM_STR);
    $result = $mySelect->query();
开发者ID:wedesign-pf,项目名称:Tit,代码行数:31,代码来源:login.php


示例18: do_approve

 function do_approve($id, $type)
 {
     if (!$this->ion_auth->logged_in()) {
         redirect('auth/login', 'refresh');
     }
     $user_id = get_nik($this->session->userdata('user_id'));
     $date_now = date('Y-m-d');
     $data = array('is_app_' . $type => 1, 'user_app_' . $type => $user_id, 'date_app_' . $type => $date_now);
     $this->form_absen_model->update($id, $data);
     $user_absen_id = getValue('user_id', 'users_absen', array('id' => 'where/' . $id));
     $approval_status = 1;
     $this->approval->approve('absen', $id, $approval_status, $this->detail_email($id));
     $isi_email = 'Status pengajuan keterangan tidak absen anda disetujui oleh ' . get_name($user_id) . ' untuk detail silakan <a href=' . base_url() . 'form_absen/detail/' . $id . '>Klik Disini</a><br />';
     $isi_email_request = get_name($user_absen_id) . ' mengajukan keterangan tidak absen absen, untuk melihat detail silakan <a href=' . base_url() . 'form_absen/detail/' . $id . '>Klik Disini</a><br />';
     if (!empty(getEmail($user_absen_id))) {
         $this->send_email(getEmail($user_absen_id), 'Status Pengajuan Keterangan Tidak Absen dari Atasan', $isi_email);
     }
     if ($type !== 'hrd') {
         $lv = substr($type, -1) + 1;
         $lv_app = 'lv' . $lv;
         $user_app = $lv < 4 ? getValue('user_app_' . $lv_app, 'users_absen', array('id' => 'where/' . $id)) : 0;
         if (!empty($user_app)) {
             if (!empty(getEmail($user_app))) {
                 $this->send_email(getEmail($user_app), 'Pengajuan Keterangan Tidak Absen', $isi_email_request);
             }
             $this->approval->request($lv_app, 'absen', $id, $user_absen_id, $this->detail_email($id));
         } else {
             if (!empty(getEmail($this->approval->approver('absen')))) {
                 $this->send_email(getEmail($this->approval->approver('absen')), 'Pengajuan Keterangan Tidak Absen', $isi_email_request);
             }
             $this->approval->request('hrd', 'absen', $id, $user_absen_id, $this->detail_email($id));
         }
     }
 }
开发者ID:ocpyosep78,项目名称:hris_client,代码行数:34,代码来源:form_absen.php


示例19: add

 public function add()
 {
     $this->form_validation->set_rules('destination', 'Tujuan', 'trim|required');
     $this->form_validation->set_rules('title', 'Tanggal Terakhir spd_dalam', 'trim|required');
     $this->form_validation->set_rules('date_spd', 'Tanggal Berangkat', 'trim|required');
     $this->form_validation->set_rules('spd_start_time', 'Waktu Berangkat', 'trim|required');
     $this->form_validation->set_rules('spd_end_time', 'Waktu Selesai', 'trim|required');
     if ($this->form_validation->run() == FALSE) {
         //echo json_encode(array('st'=>0, 'errors'=>validation_errors('<div class="alert alert-danger" role="alert">', '</div>')));
         redirect('form_spd_dalam_group/input', 'refresh');
     } else {
         $sess_id = $this->session->userdata('user_id');
         $sess_nik = get_nik($sess_id);
         $task_receiver = implode(',', $this->input->post('peserta'));
         $start_spd_dalam = $this->input->post('start_spd_dalam');
         $end_spd_dalam = $this->input->post('end_spd_dalam');
         $additional_data = array('task_creator' => $this->input->post('emp_tc'), 'title' => $this->input->post('title'), 'destination' => $this->input->post('destination'), 'date_spd' => date('Y-m-d', strtotime($this->input->post('date_spd'))), 'start_time' => $this->input->post('spd_start_time'), 'end_time' => $this->input->post('spd_end_time'), 'user_app_lv1' => $this->input->post('atasan1'), 'user_app_lv2' => $this->input->post('atasan2'), 'user_app_lv3' => $this->input->post('atasan3'), 'created_on' => date('Y-m-d', strtotime('now')), 'created_by' => $sess_id);
         $task_creator = $this->input->post('emp_tc');
         $created_by = $sess_nik;
         if ($this->form_validation->run() == true && $this->form_spd_dalam_group_model->create_($task_receiver, $additional_data)) {
             $spd_id = $this->db->insert_id();
             $user_app_lv1 = getValue('user_app_lv1', 'users_spd_dalam_group', array('id' => 'where/' . $spd_id));
             $isi_email = get_name($task_creator) . ' mengajukan Perjalanan Dinas Dalam Kota (Group), untuk melihat detail silakan <a href=' . base_url() . 'form_spd_dalam_group/submit/' . $spd_id . '>Klik Disini</a><br />';
             if ($task_creator !== $created_by) {
                 $this->approval->by_admin('spd_dalam_group', $spd_id, $created_by, $task_creator, $this->detail_email_submit($spd_id));
             }
             if (!empty($user_app_lv1)) {
                 if (!empty(getEmail($user_app_lv1))) {
                     $this->send_email(getEmail($user_app_lv1), 'Pengajuan Perjalanan Dinas Dalam Kota (Group)', $isi_email);
                 }
                 $this->approval->request('lv1', 'spd_dalam_group', $spd_id, $task_creator, $this->detail_email_submit($spd_id));
             } else {
                 if (!empty(getEmail($this->approval->approver('dinas')))) {
                     $this->send_email(getEmail($this->approval->approver('dinas')), 'Pengajuan Perjalanan Dinas Dalam Kota (Group)', $isi_email);
                 }
                 $this->approval->request('hrd', 'spd_dalam_group', $spd_id, $task_creator, $this->detail_email_submit($spd_id));
             }
             $task_receiver_id = explode(',', $task_receiver);
             $this->send_spd_mail($spd_id, $task_creator, $task_receiver_id);
             redirect('form_spd_dalam_group', 'refresh');
             //echo json_encode(array('st' =>1));
         }
     }
 }
开发者ID:ocpyosep78,项目名称:hris_client,代码行数:44,代码来源:form_spd_dalam_group.php


示例20: showForgotform

<?php

include_once "header.php";
include_once "db.php";
include_once "mindoflib.php";
if (!stripslashes($_POST['checksubmit'])) {
    showForgotform();
} else {
    if (stripslashes($_POST['checksubmit'])) {
        $email = getEmail();
        $user = getUser();
        $postemail = stripslashes($_POST['email']);
        $postuser = stripslashes($_POST['user']);
        if (strcmp($email, $postemail) == 0 && strcmp($user, $postuser) == 0) {
            sendRandomPass($email, "lost");
        } else {
            echo "things didn't match.  <a href=\"forgot.php\">try again</a>!";
        }
    }
}
?>

<?php 
include_once "footer.php";
?>

开发者ID:ultramookie,项目名称:mindof,代码行数:25,代码来源:forgot.php



注:本文中的getEmail函数示例整理自Github/MSDocs等源码及文档管理平台


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getEmailFormat函数代码示例发布时间:2022-05-15
下一篇:
PHP getEditorContents函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap