Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.105
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
softaculous /
apps /
exim /
themes /
enduser /
Delete
Unzip
Name
Size
Permission
Date
Action
add_email_account_theme.php
12.54
KB
-rw-r--r--
2025-11-17 07:49
add_email_autoresponder_theme.php
11.93
KB
-rw-r--r--
2025-01-13 08:52
address_importer_theme.php
6.47
KB
-rw-r--r--
2024-05-02 06:56
boxtrapper_theme.php
25.58
KB
-rw-r--r--
2024-04-30 09:23
configure_greylisting_theme.php
6.45
KB
-rw-r--r--
2024-04-17 09:30
create_email_filter_theme.php
20.91
KB
-rw-r--r--
2025-01-13 08:52
default_address_theme.php
4.9
KB
-rw-r--r--
2024-05-02 06:10
edit_email_autoresponder_theme.php
6.17
KB
-rw-r--r--
2025-01-13 08:52
email_account_theme.php
11.13
KB
-rw-r--r--
2026-01-22 06:40
email_deliverability_theme.php
23.14
KB
-rw-r--r--
2025-08-13 08:32
email_filter_theme.php
6.64
KB
-rw-r--r--
2024-05-02 06:56
email_forward_theme.php
10.1
KB
-rw-r--r--
2025-03-28 03:34
email_queue_theme.php
4.32
KB
-rw-r--r--
2024-05-02 06:10
email_relayers_theme.php
4.11
KB
-rw-r--r--
2024-05-02 06:10
email_router_theme.php
5.93
KB
-rw-r--r--
2024-05-02 06:10
email_sent_summary_theme.php
5.02
KB
-rw-r--r--
2024-05-02 06:10
email_settings_theme.php
2.32
KB
-rw-r--r--
2023-10-27 04:12
email_split_delivery_theme.php
4.09
KB
-rw-r--r--
2024-04-30 08:12
encryption_theme.php
11.61
KB
-rw-r--r--
2024-05-02 06:10
track_email_delivery_theme.php
17.39
KB
-rw-r--r--
2025-08-29 09:11
Save
Rename
<?php ////////////////////////////////////////////////////////////// //=========================================================== // WEBUZO CONTROL PANEL // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Pulkit // Date: 10th Jan 2009 // Time: 21:00 hrs // Site: https://webuzo.com/ (WEBUZO) // ---------------------------------------------------------- // Please Read the Terms of Use at https://webuzo.com/terms // ---------------------------------------------------------- //=========================================================== // (c) Softaculous Ltd. //=========================================================== ////////////////////////////////////////////////////////////// if(!defined('SOFTACULOUS')){ die('Hacking Attempt'); } function exim_email_deliverability_theme(){ global $user, $globals, $theme, $softpanel, $WE, $error, $done, $domains_list, $sugg_records, $ex_records, $primary_domain, $key_file, $linecount, $ptr_data; $customize_spf = []; $customize_spf['hosts'] = [ 'title' => __('Additional Hosts (+a):'), 'input_type' => 'text', 'values' => [], 'prefix' => '+a', 'default' => '+a', ]; $customize_spf['mx'] = [ 'title' => __('Additional MX Servers (+mx):'), 'input_type' => 'text', 'values' => [], 'prefix' => '+mx', 'default' => '+mx', ]; $customize_spf['ipv4'] = [ 'title' => __('Additional IP Address (+ip4) :'), 'input_type' => 'text', 'values' => [], 'prefix' => '+ip4', 'default' => '+ip4:'.$globals['WU_PRIMARY_IP'], ]; $customize_spf['ipv6'] = [ 'title' => __('Additional IP Address (IPv6) :'), 'input_type' => 'text', 'values' => [], 'prefix' => '+ip6', ]; $customize_spf['include'] = [ 'title' => __('Include List (+include):'), 'input_type' => 'text', 'values' => [], 'prefix' => 'include', ]; echo ' <div class="card soft-card p-3 col-12 mx-auto"> <div class="sai_main_head"> <img src="'.EXIM_ASSETS.'email_account.png" alt="" class="webu_head_img me-2"/> <h5 class="d-inline-block">'.__('Email Deliverability').'</h5> <a href="'.$globals['ind'].'act=advancedns"><button type="button" class="flat-butt float-end">'.__('Advance DNS Settings').'</button></a> </div> </div> <div class="card soft-card p-4 col-12 mx-auto mt-4"> <div class="modal fade" id="add-dkim" tabindex="-1" aria-labelledby="add-dkimLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable modal-md">'; show_modal('dkim'); echo' </div> </div> <div class="modal fade" id="add-dmarc" tabindex="-1" aria-labelledby="add-dmarcLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable modal-md">'; show_modal('dmarc'); echo' </div> </div> <div class="modal fade" id="add-ptr" tabindex="-1" aria-labelledby="add-ptrLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable modal-md"> <div class="modal-content"> <div class="modal-header"> <h6 class="modal-title" id="add-ptrLabel">'.__('Reverse DNS (PTR)').'</h6> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body p-4"> <label for="" id="lbl_record_ptr_1" class="sai_head mt-3 mb-0"></label><hr> <label for="" id="lbl_record_ptr_2" class="sai_head"></label> <div class="input-group input-group-sm mb-3" id="ptr_name_grp"> <div class="input-group-prepend"> <span class="input-group-text" id="basic-addon1">'.__('Name').'</span> </div> <input type="text" name="name" id="ptr_name_input" class="form-control" value="" readonly/> </div> <div class="input-group input-group-sm mb-3" id="ptr_rec_grp"> <div class="input-group-prepend"> <span class="input-group-text" id="basic-addon2">'.__('Record').'</span> </div> <input type="text" name="record" id="ptr_record_input" class="form-control copyptrtxt" readonly /> <a class="btn btn-outline-secondary float-end copyptrbtn" onclick="copyToClipboard(\'copyptrtxt\' , \'copyptrbtn\')">'.__('copy').'</a> </div> </div> </div> </div> </div>'; echo' <div class="modal fade" id="show_key" tabindex="-1" aria-labelledby="add-dkimkey" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content"> <div class="modal-header"> <h6 class="modal-title" id="add-dkimkey"></h6> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body p-4"> <div class="alert alert-warning col-sm"> <i class="fas fa-info-circle"></i> <span>'.__('If others obtain your private DKIM key, they could sign emails and impersonate you as a sender.').'</span> </div> <div class="mb-3"> <textarea class="form-control copytxt" WRAP=OFF name="dkim_key" id="dkim_key" rows="" readonly></textarea> </div> <div class="mt-2"> <button class="btn flat-butt float-end copybtn" style="padding-left:10px; padding-right:10px; padding-top:3px; padding-bottom:3px;" onclick="copyToClipboard(\'copytxt\' , \'copybtn\')">'.__('copy').'</button> </div> </div> </div> </div> </div> <div class="modal fade" id="repair" tabindex="-1" aria-labelledby="add-repairLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable madal-lg-3"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="add-repairLabel">'.__('Repair records').'</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body p-4"> <form accept-charset="'.$globals['charset'].'" action="" method="post" name="repair_records" id="record_add" class="form-horizontal" onsubmit="return submitit(this)" data-doneredirect="'.$globals['index'].'act=email_deliverability"> <div class="input-group input-group-sm mb-3"> <span class="input-group-text" id="">'.__('Domain').'</span> <input class="form-control form-control-sm" name="domain" id="domain_name" value="domain_name" readonly> </div>'; show_records('dkim'); show_records('dmarc'); show_records('spf'); echo ' <center> <input type="submit" class="flat-butt me-2" value="'.__('Repair records').'" name="repair_records" id="submit_repair" /> </center> </br> </form> </div> </div> </div> </div> <div class="modal fade" id="add-spf" tabindex="-1" aria-labelledby="add-spfLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable modal-xl"> <div class="modal-content"> <div class="modal-header text-center"> <h5 class="modal-title w-100" id="add-spfLabel">'.__('SPF record').'</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body p-4"> <form accept-charset="'.$globals['charset'].'" action="" method="post" name="spf_records" id="customize_spf" class="form-horizontal" onsubmit="return submitit(this)" data-doneredirect="'.$globals['index'].'act=email_deliverability"> <div class="row"> <div class="col-12 col-md-4"> <div class="input-group input-group-sm mb-3"> <div class="input-group-prepend"> <span class="input-group-text" id="basic-addon1">'.__('Domain').'</span> </div> <input class="form-control" name="cu_domain" id="domain_spf" value="" readonly></br> </div> <label for="" id="lbl_record_spf_2" class="sai_head"></label> <div class="input-group input-group-sm mb-3"> <div class="input-group-prepend"> <span class="input-group-text" id="">'.__('Name').'</span> </div> <input type="text" name="cu_name" id="spf_name_input" class="form-control" value="'.__('SPF name').'" readonly/> </div> </div> <div class="col-12 col-md-8 mt-5"> <h4><center><label for="" id="lbl_record_spf_1" class="align-middle mt-0 mb-3"></label></h4> </div> </div> <label for="" id="lbl_record_spf_3" class="sai_head"></label> <div class="input-group input-group-sm mb-3"> <span class="input-group-text" id="domainname">'.__('SPF record').'</span> <input type="text" name="cu_record" id="spf_record_input" class="form-control copyspftxt" readonly/> <a class="btn btn-outline-secondary float-end copyspfbtn" onclick="copyToClipboard(\'copyspftxt\' , \'copyspfbtn\')">copy</a> </div> <div class="alert alert-warning col-sm mt-4"> <i class="fas fa-info-circle"></i> <span>'.__('You can add "CUSTOMIZED SPF" for this domain. Before submitting, <b>please make sure that all entries are valid.</b>').'</span> </div> <div class="row my-3" id="domains">'; foreach($customize_spf as $key => $val){ echo ' <div class="col-12 col-md-4 col-lg-3 p-2"> <div data-input_type="'.$val['input_type'].'" class="row"> <label class="pt-2 form-label me-1">'.$val['title'].'</label> </div> <div class="row_div" id="'.$key.'" data-input_type="'.$val['input_type'].'"> </div> <div class="mt-2"> <a class="btn flat-butt add_row" style="padding-left: 10px; padding-right: 10px; padding-top: 3px; padding-bottom: 3px;">+</a> </div> </div>'; } echo ' </br> <div class="col-12 col-md-4 col-lg-4 mt-4"> <div id="exclude_all" class="form-check mt-4"> <label class="pt-0 form-check-label">'.__('Exclude All Other Hosts (Use "-all" Entry)').'</label> <input type="checkbox" class="form-check-input spf_input" id="exclude" name="exclude_all" value="1"/> </div> </div> </div><hr> <div class="text-center"> <input type="submit" class="flat-butt me-2" value="'.__('Add SPF record').'" name="add_spf" id="submit_custom_spf" /> </div> </form> </div> </div> </div> </div> <div id="showrectab" class="table-responsive">'; echo ' <table class="table align-middle table-nowrap mb-0 webuzo-table" > <thead class="sai_head2" style="background-color: #EFEFEF;"> <tr> <th class="align-middle">'.__('Domain').'</th> <th class="align-middle">'.__('DKIM Status').'</th> <th class="align-middle">'.__('SPF Status').'</th> <th class="align-middle">'.__('DMARC Status').'</th> <th class="text-center" colspan="5">'.__('Options').'</th> </tr> </thead> <tbody>'; if(empty($domains_list)){ echo ' <tr><td class="text-center" colspan=6><span>'.__('No Domain found with SPF or DKIM records').'</span></td></tr>'; }else{ foreach ($domains_list as $key => $value){ echo ' <tr id="tr'.$key.'"> <td> <span id="name'.$key.'">'.$key.'</span>'; if($key == $primary_domain){ echo'<span class="badge bg-primary" style="padding:5px; 10px; border-radius:5px; margin-left:4px">'.__('Primary').'</span>'; } echo ' </td> <td>'; $dkim_status = !empty($ex_records[$key]['dkim']) ? '<i class="fas fa-check-circle text-success"></i> '.__('Valid') : '<i class="fas fa-exclamation-triangle text-danger"></i> '.__('Problem exist'); echo' <span class="align-middle" id="ttl'.$key.'"> '.$dkim_status.' </span> </td>'; $spf_status = !empty($ex_records[$key]['spf']) ? '<i class="fas fa-check-circle text-success"></i> '.__('Valid') : '<i class="fas fa-exclamation-triangle text-danger"></i> '.__('Problem exist'); echo' <td> <span class="align-middle" id="ttl'.$key.'"> '.$spf_status.' </span> </td>'; $dmarc_status = !empty($ex_records[$key]['dmarc']) ? '<i class="fas fa-check-circle text-success"></i> '.__('Valid') : '<i class="fas fa-exclamation-triangle text-danger"></i> '.__('Problem exist'); echo' <td> <span class="align-middle" id="ttl'.$key.'"> '.$dmarc_status.' </span> </td>'; // SPF Record $spf_name = (empty($ex_records[$key]['spf'])) ? $sugg_records[$key]['spf']['name'] : $ex_records[$key]['spf']['name']; $spf_record = (empty($ex_records[$key]['spf'])) ? str_replace('"', "", $sugg_records[$key]['spf']['record']) : str_replace('"', " ", $ex_records[$key]['spf']['record']); // DKIM record $dkim_name = $sugg_records[$key]['dkim']['name']; $dkim_record = str_replace('"', "", $sugg_records[$key]['dkim']['record']); // DMARC record $dmarc_name =(empty($ex_records[$key]['dmarc'])) ? $sugg_records[$key]['dmarc']['name'] : $ex_records[$key]['dmarc']['name']; $dmarc_record = (empty($ex_records[$key]['dmarc'])) ? str_replace('"', "", $sugg_records[$key]['dmarc']['record']) : str_replace('"', " ",$ex_records[$key]['dmarc']['record']); // Repair button $button_status= (empty($ex_records[$key]['dkim']) || empty($ex_records[$key]['spf']) || empty($ex_records[$key]['dmarc'])) ? '':'disabled'; echo' <td width="2%"> <input type="submit" class="flat-butt repair_both" value="'.__('Repair').'" data-bs-toggle="modal" data-bs-target="#repair" data-domain="'.$key.'" data-spf_name="'.$sugg_records[$key]['spf']['name'].'" data-spf_record="'.str_replace('"', "", $sugg_records[$key]['spf']['record']).'" data-dkim_name="'.$sugg_records[$key]['dkim']['name'].'" data-dkim_record="'.str_replace('"', "", $sugg_records[$key]['dkim']['record']).'" data-dmarc_name="'.$sugg_records[$key]['dmarc']['name'].'" data-dmarc_record="'.str_replace('"', "", $sugg_records[$key]['dmarc']['record']).'" '.$button_status.' "/> </td> <td width="2%"> <input type="submit" class="flat-butt dkim_data" data-domain="'.$key.'" value="'.__('DKIM').'" data-rec_name="'.$dkim_name.'" data-rec_value="'.$dkim_record.'" data-rc_name="dkim" onclick="show_records(this);"> </td> <td width="2%"> <input type="submit" class="flat-butt spf_data" value="'.__('SPF').'" data-domain="'.$key.'" data-rec_name="'.$spf_name.'" data-rec_value="'.$spf_record.'" data-rc_name="spf" onclick="show_records(this);"> </td> <td width="2%"> <input type="submit" class="flat-butt p-2 dmarc_data" value="'.__('DMARC').'" data-domain="'.$key.'" data-rec_name="'.$dmarc_name.'" data-rec_value="'.$dmarc_record.'" data-rc_name="dmarc" onclick="show_records(this);"> </td> <td width="2%"> <input type="submit" class="flat-butt ptr_data" value="'.__('PTR').'" data-domain="'.$key.'"> </td> </tr>'; } } echo ' <tbody> </table>'; echo ' </div> <script type="text/javascript"> var ll = { "ed_ptr_success" : "'.__js('PTR record is properly configured for').'" , "ed_ptr_failed" : "'.__js('Currently PTR is not configured for').'" , "ed_current_ptr" : "'.__js('Current PTR (PTR) record').'", "ed_dkim_success" : "'.__js('DKIM record is properly configured').'", "ed_exist_dkim_name" : "'.__js('Current DKIM (TXT) Name').'", "ed_exist_dkim_rec" : "'.__js('Current DKIM (TXT) Record').'", "ed_dkim_failed" : "'.__js('Currently No DKIM is configured').'", "ed_suggest_dkim_name" : "'.__js('Suggested DKIM (TXT) Name').'", "ed_suggest_dkim_rec" : "'.__js('Suggested DKIM (TXT) Record').'", "ed_dmarc_success" : "'.__js('DMARC record is properly configured').'", "ed_exist_dmarc_name" : "'.__js('Current DMARC (TXT) Name').'", "ed_exist_dmarc_rec" : "'.__js('Current DMARC (TXT) Record').'", "ed_dmarc_failed" : "'.__js('Currently No DMARC is configured').'", "ed_suggest_dmarc_name" : "'.__js('Suggested DMARC (TXT) Name').'", "ed_suggest_dmarc_rec" : "'.__('Suggested DMARC (TXT) Record').'", "ed_spf_success" : "'.__('SPF record is properly configured').'", "ed_exist_spf_name" : "'.__js('Current SPF (TXT) Name').'", "ed_exist_spf_rec" : "'.__js('Current SPF (TXT) Record').'", "ed_spf_failed" : "'.__js('Currently No SPF is configured').'", "ed_suggest_spf_name" : "'.__js('Suggested SPF (TXT) Name').'", "ed_suggest_spf_rec" : "'.__js('Suggested SPF (TXT) Record').'" }; var existing_array = '.json_encode($ex_records).'; var f = function(v, domain){ if(domain in existing_array){ if(v in existing_array[domain]){ $("#lbl_record_"+v+"_1").text(ll["ed_"+v+"_success"]).css("color","#4F8A10"); $("#lbl_record_"+v+"_2").text(ll["ed_exist_"+v+"_name"]); $("#lbl_record_"+v+"_3").text(ll["ed_exist_"+v+"_rec"]); $("#submit_"+v+"").hide(); }else{ $("#lbl_record_"+v+"_1").text(ll["ed_"+v+"_failed"]).css("color","#D8000C"); $("#lbl_record_"+v+"_2").text(ll["ed_suggest_"+v+"_name"]); $("#lbl_record_"+v+"_3").text(ll["ed_suggest_"+v+"_rec"]); $("#submit_"+v+"").show(); } }else{ $("#lbl_record_"+v+"_1").text(ll["ed_"+v+"_failed"]).css("color","#D8000C"); $("#lbl_record_"+v+"_2").text(ll["ed_suggest_"+v+"_name"]); $("#lbl_record_"+v+"_3").text(ll["ed_suggest_"+v+"_rec"]); $("#submit_"+v+"").show(); } } $(".ptr_data").click(function(){ var domain = $(this).data("domain"); var d = {"domain" : domain, "ptr_record" : 1 }; submitit(d, { handle:function(data, p){ if(!empty(data.ptr_data) && !empty(data.ptr_data.record)){ var ptr = data.ptr_data; $("#lbl_record_ptr_1").html("'.__js('PTR record is properly configured for ').'" + domain).css("color","#4F8A10"); $("#lbl_record_ptr_2").html("'.__js('Current PTR (PTR) record').'"); $("#ptr_name_input").val(ptr.name); $("#ptr_record_input").val(ptr.record); }else{ $("#lbl_record_ptr_1").html("'.__js('Currently PTR is not configured for ').'" + domain).css("color","#D8000C"); $("#ptr_name_grp").attr("class", "d-none"); $("#ptr_rec_grp").attr("class", "d-none"); } $("#add-ptr").modal("show"); } }); }); function show_records(ele){ var d = $(ele).data(); var domain = d.domain; $("#domain_"+d.rc_name).val(domain); f(d.rc_name, domain); $("#"+d.rc_name+"_name_input").val(d.rec_name); $("#"+d.rc_name+"_record_input").val(d.rec_value); if(d.rc_name == "dkim"){ $("#"+d.rc_name+"_domain").val(domain); } $("#add-"+d.rc_name).modal("show"); } // Repair records $(".repair_both").click(function(){ $("#domain_name").val($(this).data("domain")); $("#dkim_nm").val($(this).data("dkim_name")); $("#dmarc_nm").val($(this).data("dmarc_name")); $("#spf_nm").val($(this).data("spf_name")); $("#dkim_rec").val($(this).data("dkim_record")); $("#dmarc_rec").val($(this).data("dmarc_record")); $("#spf_rec").val($(this).data("spf_record")); }); var custome_spf = '.json_encode($customize_spf).'; // add newRow for as per id $(".add_row").click(function(){ var jEle = $(this); var divEle = jEle.parent().parent(); var divEle = divEle.find(".row_div"); var div_attr = divEle.data(); var tmpHtml = \'<div class="row p-1"><div class="col-9"><input type="\'+div_attr.input_type+\'" class="spf_input" name="\'+divEle.attr("id")+\'[]" value="" size="13" /></div><div class="col-3"><i class="fas fa-times text-danger cursor-pointer fa-lg p-2 mx-2 del_row"></i></div></div>\'; divEle.append(tmpHtml); }); $(document).on("click", ".del_row", function(){ var jEle = $(this); jEle.closest(".row").remove(); rebuild_spf(); }); $(document).on("keyup click", ".spf_input", function(){ rebuild_spf(); }); function rebuild_spf(){ var og_spf = $("#spf_record_input").val(); var fEle =$("#customize_spf"); var da = fEle.serializeArray(); var tmpData = [], tmpSpf = "v=spf1"; $.each(custome_spf, function(key, val){ if("default" in val){ tmpSpf +=" "+val["default"]; } $(\'input[name="\'+key+\'[]"]\').each(function () { if($(this).val()){ tmpSpf +=" "+val["prefix"]+":"+$(this).val(); } }); }); if($("#exclude").is(":checked")){ tmpSpf += " -all"; }else{ tmpSpf += " ~all"; } $("#spf_record_input").val(tmpSpf); } function copyToClipboard(textareaclass, btnclass){ var copyTextareaBtn = document.querySelector("."+btnclass); var copyTextarea = document.querySelector("."+textareaclass); copyTextarea.select(); try { var successful = document.execCommand("copy"); } catch (err){ console.log("'.__js('Oops, unable to copy').'"); } } function fetch_key(){ var d = {"domain" : $("#dkim_domain").val(), "fetch_key" : 1 }; submitit(d, { handle:function(data, p){ $("#add-dkimkey").html("DKIM key - " + $("#dkim_domain").val()); if(data.key_file){ $("#dkim_key").val(data.key_file); }else{ $("#dkim_key").val("'.__js('No DKIM found for this domain').'"); } $("#dkim_key").attr("rows", data.linecount); $("#show_key").modal("show"); } }); } </script>'; } function show_records($d){ global $globals, $theme; echo ' <label class="sai_head">'.__('Suggested $0 (TXT) Name', [strtoupper($d)]).'</label> <div class="input-group input-group-sm mb-3"> <span class="input-group-text" id="">'.__('Name').'</span> <input type="text" name="su_'.$d.'_name" id="'.$d.'_nm" class="form-control" value="" readonly/> </div> <div class="input-group input-group-sm mb-3"> <span class="input-group-text" id="">'.__('Record').'</span> <input type="text" name="su_'.$d.'_record" id="'.$d.'_rec" class="form-control copy'.$d.'" value="" readonly/> <a class="btn btn-outline-secondary float-end copy'.$d.'b" onclick="copyToClipboard(\'copy'.$d.'\' , \'copy'.$d.'b\')">'.__('copy').'</a> </div><hr>'; } function show_modal($d){ global $globals, $theme; echo' <div class="modal-content"> <div class="modal-header"> <h6 class="modal-title" id="add-'.$d.'Label">'.__('$0 Record',[strtoupper($d)]).'</h6> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body p-4"> <form accept-charset="'.$globals['charset'].'" action="" method="post" name="add_'.$d.'" class="form-horizontal" onsubmit="return submitit(this)" data-doneredirect="'.$globals['index'].'act=email_deliverability"> <label for="" id="lbl_record_'.$d.'_1" class="sai_head mt-3 mb-0"></label><hr> <div class="input-group input-group-sm mb-3"> <div class="input-group-prepend"> <span class="input-group-text" id="basic-addon1">'.__('Domain').'</span> </div> <input class="form-control" name="domain" id="domain_'.$d.'" value="" readonly> </div> <label for="" id="lbl_record_'.$d.'_2" class="sai_head"></label> <div class="input-group input-group-sm mb-3"> <div class="input-group-prepend"> <span class="input-group-text" id="basic-addon1">'.__('Name').'</span> </div> <input type="text" name="name" id="'.$d.'_name_input" class="form-control" value="" readonly/> </div> <label for="" id="lbl_record_'.$d.'_3" class="sai_head"></label> <div class="input-group input-group-sm mb-3"> <div class="input-group-prepend"> <span class="input-group-text" id="basic-addon2">'.__('Record').'</span> </div> <input type="text" name="record" id="'.$d.'_record_input" class="form-control copy'.$d.'txt" readonly /> <a class="btn btn-outline-secondary float-end copy'.$d.'btn" onclick="copyToClipboard(\'copy'.$d.'txt\' , \'copy'.$d.'btn\')">'.__('copy').'</a> </div> <hr> <input type="hidden" id="record" record_name="add_'.$d.'" value="1"> <input type="submit" class="flat-butt float-left me-2" value="'.__('Add $0 record',[strtoupper($d)]).'" name="add_'.$d.'" id="submit_'.$d.'"/>'; if($d == "dkim"){ echo ' <input type="hidden" id="dkim_domain"> <a class="btn flat-butt float-end me-2" id="dkim_key_button" data-domain="" onclick="fetch_key();">'.__('View DKIM Key').'</a>'; } echo' </form> </div> </div>'; }