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: $(function () { $("#orderModal").on("show.bs.modal", function (event) { var button = $(event.relatedTarget); var modal = $(this); $("#selectService").val(button.text().trim()); $("#stockStatus").val(modal.data("loading")); $("#selectCountry").append($('<option>', { text: modal.data("loading") })); $("#selectCountry").attr("disabled", true); $.get("/api/getServices/" + button.data("id"), function (res) { $("#selectCountry").html(""); var services = $.parseJSON(res); services = services.sort(function (a, b) { return a.name.localeCompare(b.name); }) for (var i = 0; i < services.length; i++) { $("#selectCountry").append($('<option>', { value: services[i].id, text: services[i].name })); } $("#selectCountry").attr("disabled", false); $("#selectCountry").unbind("change"); $("#selectCountry").change(function () { var index = $("#selectCountry").find(":selected").index(); $("#servicePriceForMultiple").val(modal.data("loading")); $("#servicePrice").val(modal.data("loading")); $("#stockStatus").val(modal.data("loading")); $.get("/api/getServiceDetails/" + services[index].id, function (rsp) { var service = $.parseJSON(rsp); $("#servicePriceForMultiple").val((service.price * 3) + " " + modal.data("money-sign")); $("#servicePrice").val(service.price + " " + modal.data("money-sign")); $("#stockStatus").val(service.stock); }); }); $("#selectCountry").change(); }); }); $('#buyMultipleNumbers').on('click', function(){ var loading = Swal.fire({ heightAuto: false, allowEscapeKey: false, allowOutsideClick: false, onOpen: () => { swal.showLoading(); } }); $.get("/api/" + $("#orderModal").data("key") + "/getMultipleNumbers/" + $("#selectCountry").val(), function (data) { loading.close(); var result = $.parseJSON(data); if (!result['success']){ Swal.fire({ title: 'Uyarı!', text: result["errorMessage"], icon: "error", heightAuto: false }); return; } else { //( 'Başarılı yapılan istek sayısı: ' + result['succeedRequestCount'] + '. Başarısız olan istek sayısı: ' + result['failedRequestCount'] + '. ' + (result['response'].map((r) => r.success ? 'Alınan numara:' + r.number : r.message)), Swal.fire({ title: "İşlem Gerçekleştirildi", text: result.response.filter((e) => e.success).length < result.response.length ? ('Numaralar başarıyla alındı. ' +result.response.filter((e) => e.success).length + ' tanesini alırken sorun oluştu') : 'Tüm numaralar başarıyla alındı!', icon: "success", heightAuto: false }).then(function () { window.location = "/panel/numbers"; }); } }); }); $("#buyNumber").on("click", function () { var loading = Swal.fire({ heightAuto: false, allowEscapeKey: false, allowOutsideClick: false, onOpen: () => { swal.showLoading(); } }); $.get("/api/" + $("#orderModal").data("key") + "/getNumber/" + $("#selectCountry").val(), function (data) { loading.close(); var result = $.parseJSON(data); if (result["success"]) { Swal.fire({ title: result["title"], text: result["message"], icon: "success", heightAuto: false }).then(function () { window.location = "/panel/numbers"; }); } else { Swal.fire({ title: result["title"], text: result["message"], icon: "error", heightAuto: false }); } }); }); }); |
:: 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.0044 ]-- |