ÿØÿà 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/adimi/application/modules/addon/assets/ajaxs/addons/ |
jQuery(document).ready(function () { "use strict"; $("#loading, .waitmsg").hide(); // Download New Module $('#download_now').on('click', function (e) { e.preventDefault(); var purchase_key = $('#purchase_key').val(); var itemtype = $('#itemtype').val(); var CSRF_TOKEN = $('#CSRF_TOKEN').val(); var base_url = $('#base_url').val(); if(purchase_key == ''){ $("#purchase_key_box").removeClass('has-success').addClass('has-danger'); $(".form-feedback").html("<b>Please enter purchase key!</b>"); return false; } if(itemtype == ''){ $("#purchase_key_box").removeClass('has-success').addClass('has-danger'); $(".form-feedback").html("<b>Please enter item type!</b>"); return false; } $("#loading, .waitmsg").show(); $(this).attr('disabled','disabled'); $.ajax({ type:'POST', url:base_url + 'addon/module/verify_download_request', data: "csrf_test_name="+CSRF_TOKEN+"&purchase_key="+purchase_key+"&itemtype="+itemtype, success:function(res){ if (res) { $("#purchase_key_box").removeClass('has-danger').addClass('has-success'); $(".form-feedback").html("<b>Success! Almost done it.Wait...</b>"); // Timer set var time = 20; var wait = time * 1000; setInterval(function(){ $("#wait").html(time); time--; }, 1000); // End of Timer Set setTimeout(function(){ window.location.href=base_url+'addon/module'; }, wait); } else { $("#purchase_key_box").removeClass('has-success').addClass('has-danger'); $(".form-feedback").html("<b>Failed! Invalid Purchase Key.</b>"); $("#loading, .waitmsg").hide(); } }, error:function(){ $("#purchase_key_box").removeClass('has-success').addClass('has-danger'); $(".form-feedback").html("<b>ERROR!Please Try Again</b>"); $("#loading, .waitmsg").hide(); } }); }); });