���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/luckymerchan/code/admin/send_mail/ |
<?php global $arr_option,$INFO,$CORE,$DB; if(isset($CORE->input['submitbt'])){ $send_to= $CORE->input['send_to']; $fromname = $arr_option['blogname']; $logo = '<a href="'.$INFO['home_url'].'" target="_blank"><img align="center" border="0" src="'.$INFO['home_url'].$arr_option['logo_website'].'" alt="Logo" title="Logo" style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: inline-block !important;border: none;height: auto;float: none;width: 100%;max-width: 178px;" width="178"/></a>'; $subject = trim($CORE->input['subject']); $sub_subject = trim($CORE->input['sub_subject']); $title = $subject; $html_body = html_entity_decode($CORE->input['body']); $body = file_get_contents('layout/default/mail_tpl/gui_so.html'); $body = str_replace(array('{logo}','{title}','{body}', '{site_name}', '{site_des}'), array($logo,$title, $html_body, $arr_option['blogname'], $arr_option['blogdescription']),$body); $q_user = $DB->query("SELECT a.*,b.* FROM tb_user a LEFT JOIN tb_guest b ON a.user_id=b.user_id "); while($r_user = $DB->fetch_row($q_user)){ if($send_to=='all') { } if($send_to=='vip') { $guestpoint_id = intval($r_user['guest_vip_level']); if ($guestpoint_id == 0) { continue; } } if($send_to=='free5') { if((time()-$r_user['user_jointime'])>(5*24*60*60)){ continue; } } if($send_to=='free10') { if((time()-$r_user['user_jointime'])>(10*24*60*60)){ continue; } } if (filter_var($r_user['user_key'], FILTER_VALIDATE_EMAIL)) { $arr_to[] = array('Email' => $r_user['user_key'], 'Name' => $r_user['guest_fullname']); } } /*print_r($arr_to); exit();*/ if(isset($arr_to)) { send_mail($fromname, $subject, $sub_subject, $body, $arr_to); } close_popup('Updated!'); } include ROOT_PATH . 'include/block/header_popup.php'; ?> <div class="card"> <div class="card-header">Gửi email</div> <div class="card-body" style="font-size: 12px;"> <form method="post" id="form_hoan_tra" action=""> <div class="row"> <div class="col-sm-12"> <div class="form-group"> <label>Send to</label> <select class="form-control" name="send_to"> <option value="all">tất cả user</option> <option value="vip">VIP user</option> <option value="free5">Dùng thử 5 ngày</option> <option value="free10">Dùng thử 10 ngày</option> </select> </div> </div> <div class="col-sm-6"> <div class="form-group"> <label>Subject</label> <input type="text" name="subject" class="form-control" value="" required> </div> </div> <div class="col-sm-6"> <div class="form-group"> <label>Text-part</label> <input type="text" name="sub_subject" class="form-control" value="" required> </div> </div> <div class="col-sm-12"> <div class="form-group"> <label>Nội dung</label> <textarea class="form-control summernote" name="body"></textarea> </div> </div> </div> <input type="submit" class="submit" style="display:none;" name="submitbt"> </form> </div> <div class="card-footer"> <a class="gui_yeu_cau btn btn-danger" href="javascript:void(0);">Submit</a> <a class="dong m-l-5 btn btn-dark" href="javascript:void(0);">Close</a> </div> </div> <script> $('.gui_yeu_cau').click(function (){ $('#form_hoan_tra .submit').click(); return false; }); $('.dong').click(function (){ window.close(); }); </script> <?php include ROOT_PATH . 'include/block/footer_popup.php'; exit(); ?>