[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: email_manager.js
jQuery(document).ready(function(){ /*******//////////////////Email Manager Scripts////////////////*********/ var showC='true'; var myVar; //Send Mailings jQuery('#hugeit_contact_email_manager').on('click tap','#btn',function(){ alert('This option is disabled for free version. Please upgrade to pro license to be able to use it.'); }); //Choose Form jQuery('#hugeit_contact_email_manager #huge_it_form_choose').on('change',function(){ var formsToShow=jQuery(this).val(); jQuery.ajax({ type: "POST", url: ajaxurl, data: { "data": formsToShow, "action": 'hugeit_email_action', "task": 'showForms', "nonce" : huge_it_obj.nonce }, beforeSend: function(){ jQuery('#hugeit_contact_email_manager #table_overlay').css('display','block'); }, success: function(response){ var response = jQuery.parseJSON(response); if(response.output){ jQuery("#hugeit_contact_email_manager").find("#huge_it-table").html(response.output); jQuery('#hugeit_contact_email_manager #table_overlay').css('display','none'); } }, error: function(){ } }); }); //Delete Subscriber jQuery('#hugeit_contact_email_manager').on('click tap','.del_wrap',function(e){ e.preventDefault(); alert('This option is disabled for free version. Please upgrade to pro license to be able to use it.'); }); //Add Subscriber jQuery('#hugeit_contact_email_manager').on('click tap','.add_wrap',function(e){ e.preventDefault(); alert('This option is disabled for free version. Please upgrade to pro license to be able to use it.'); }); setInterval(function(){ var formId=jQuery('#hugeit_contact_email_manager #huge_it_form_choose').val(); jQuery.ajax({ type: "POST", url: ajaxurl, data: { data:formId, action: 'hugeit_email_action', task: 'refreshTable', nonce : huge_it_obj.nonce }, beforeSend: function(){ }, success: function(response){ var response = JSON.parse(response); if(response.output){ jQuery("#hugeit_contact_email_manager #huge_it-table").find("tbody").html(response.output); } }, }); }, 5000); //Refresh function refreshTable(formID){ var formId=jQuery('#hugeit_contact_email_manager #huge_it_form_choose').val(); jQuery.ajax({ type: "POST", url: ajaxurl, data: { "data":formID, "action": 'hugeit_email_action', "task": 'refreshTable', nonce : huge_it_obj.nonce }, beforeSend: function(){ }, success: function(response){ var response = jQuery.parseJSON(response); if(response.output){ jQuery("#hugeit_contact_email_manager #huge_it-table").find("tbody").html(response.output); } }, error: function(){ } }); } if(huge_it_obj.mail_status=='start'){ setInterval(function(){ jQuery.ajax({ type: "POST", url: ajaxurl, data: { "action": 'hugeit_email_action', "task": 'refreshProgress', "nonce" : huge_it_obj.nonce }, beforeSend: function(){ }, success: function(response){ var response = jQuery.parseJSON(response); jQuery("#hugeit_contact_email_manager").find("#progress_meter").css('width',response.percent+'%'); jQuery("#hugeit_contact_email_manager").find("#progress_time").text(response.need_time); if(response.cond=="finish"){ showCont(showC); } }, error: function(){ } }); },10000); } function loadingProcess(){ jQuery.ajax({ type: "POST", url: ajaxurl, data: { "action": 'hugeit_email_action', "task": 'refreshProgress' }, beforeSend: function(){ }, success: function(response){ var response = jQuery.parseJSON(response); jQuery("#hugeit_contact_email_manager").find("#progress_meter").css('width',response.percent+'%'); jQuery("#hugeit_contact_email_manager").find("#progress_time").text(response.need_time); if(response.cond=="finish"){ showCont(showC); } }, error: function(){ } }); } function showCont(some){ //jQuery('#button').on('click',function(){ jQuery.ajax({ type: "POST", url: ajaxurl, data: { "action": 'hugeit_email_action', "task": 'showCont', "noCancel":some }, beforeSend: function(){ }, success: function(response){ var response = jQuery.parseJSON(response); if(response.output){ jQuery("#hugeit_contact_email_manager").find("#showCont").html(response.output); } }, error: function(){ } }); //}) } //Cancel jQuery('#hugeit_contact_email_manager').on('click tap','#huge_it_cancel',function(){ var sub_choose_form=jQuery('#hugeit_contact_email_manager #huge_it_form_choose').val(); jQuery.ajax({ type: "POST", url: ajaxurl, data: { action: 'hugeit_email_action', task: 'huge_it_cancel', }, beforeSend: function(){ }, success: function(response){ clearInterval(myVar); var cancel='false'; showCont(cancel); jQuery("#hugeit_contact_email_manager").find("#done").hide(); refreshTable(sub_choose_form); }, error: function(){ } }); }) /*******//////////////////Email Manager Scripts////////////////*********/ });
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm010.cluster103.gra.hosting.ovh.net
Server IP: 10.103.20.10
PHP Version: 7.4.33
Server Software: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: cuisinesj
User ID (UID): 17129
Group ID (GID): 100
Script Owner UID: 17129
Current Dir Owner: 17129