Software: LiteSpeed. PHP/7.4.33 uname -a: Linux server704.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 uid=1309(necipbey) gid=1314(necipbey) groups=1314(necipbey) Safe-mode: OFF (not secure) /home/necipbey/public_html/test/assets/js/ drwxr-xr-x |
Viewing file: Select action/file-type: $('.services').html(''); $.get('/api/getRentCountries', function(data) { $('#selectCountry').html(''); $(data).each(function(i, e) { var opt = $('<option>'); opt.val(e.id); opt.text(e.name); $('#selectCountry').append(opt); }); $('#selectCountry').attr('disabled', false); $('#selectCountry').change(); }); function buyNumber(service) { var loading = Swal.fire({ heightAuto: false, allowEscapeKey: false, allowOutsideClick: false, onOpen: () => { swal.showLoading(); } }); var hours = parseInt($('#rentPeriod').val()); hours *= parseInt($('#timeType').val()); var country = parseInt($('#selectCountry').val()); $.get('/api/getRentNumber/'+api_key+'/'+country+'/'+service+'/'+hours, function(data) { loading.close(); var result = data; if (result["success"]) { Swal.fire({ title: result["title"], text: result["message"], icon: "success", heightAuto: false }).then(function () { window.location = "/panel/rent/numbers"; }); } else { Swal.fire({ title: result["title"], text: result["message"], icon: "error", heightAuto: false }); } }); } function handleChange() { var hours = parseInt($('#rentPeriod').val()); hours *= parseInt($('#timeType').val()); $('.services').html('<div class="col-12"><i class="fas fa-spin fa-spinner"></i></div>'); $.get('/api/getRentServices/' + parseInt($('#selectCountry').val()) + '/' + hours, function(data) { $('.services').html(''); if (typeof data.error !== 'undefined') { $('.services').html('<div class="col-12"><div class="alert alert-danger">' + data.message + '</div></div>'); } else { $(data).each(function(i, e) { var el = $(format); el.find('h5').html(e.name); el.find('h6').eq(0).html(stock_text + ': ' + e.stock.total); el.find('h6').eq(1).html(price_text + ': ' + e.price + ' ' + money_sign); el.find('a').attr('href', 'javascript:buyNumber("'+e.id+'")') $('.services').append(el); }); } }); } $('#selectCountry, #timeType').change(function() { handleChange(); }); $('#rentPeriod').on('input', function() { handleChange(); }); |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0041 ]-- |