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 copyText(text){ navigator.clipboard.writeText(text); } function cancelNumber(id) { var loading = Swal.fire({ heightAuto: false, allowEscapeKey: false, allowOutsideClick: false, onOpen: () => { swal.showLoading(); } }); $.get("/api/" + $("#numbersTable").data("key") + "/cancelNumber/" + id, function (d) { var result = $.parseJSON(d); if (result.success) { Swal.fire({ title: result["title"], text: result["message"], icon: "success", heightAuto: false }); } }); } $(function () { var time = 0; $.get("/api/getServerTimestamp", function (d) { time = parseInt(d); }); var services = []; $.get("/api/getAllServices", function (d) { services = $.parseJSON(d); var table = $("#numbersTable").DataTable({ searching: false, info: false, "scrollX": true, "bAutoWidth": false, "ordering": false, "lengthChange": false, "pageLength": 5, "order": [[0, "desc"]], "ajax": "/api/" + $("#numbersTable").data("key") + "/getActivations/", "columns": [ { "data": "id" }, { "data":function(row){ return row.number + ' <a href="javascript:copyText(' +row.number+ ')" class="text-info"><i class="fa-solid fa-copy"></i></a>' }}, { "data": function (row) { try { return "<i class='fab fa-" + services.find(x => x.id === row.service_id).icon + "'></i>"; } catch (e) { return "<i class='fab fa-question'></i>"; } } }, { "data": function (row) { if (row.status == 0) { $.get("/api/" + $("#numbersTable").data("key") + "/getMessage/" + row.id); return $("#numbersTable").data("waiting"); } else if (row.status == -1) { return $("#numbersTable").data("canceled"); } else { return row.message; } } }, { "data": function (row) { if (row.status == -1 || row.message != "") { return "00:00"; } else { var x = 600 - (time - row.time); if (x > 0) { return "0" + (Math.floor(x / 60).toString()).slice(-2) + ":" + ("0" + (x - Math.floor(x / 60) * 60).toString()).slice(-2); } else { return "00:00"; } } } }, { "data": function (row) { if (row.status == 0) { return "<a href='javascript:cancelNumber(" + row.id + ")' class='text-danger'>" + $('#numbersTable').data("cancel") + "</a>"; } else { return ""; } } } ], "language": { "emptyTable": $('#numbersTable').data("empty"), "paginate": { "previous": $('#numbersTable').data("previous"), "next": $('#numbersTable').data("next") } } }); setInterval(function () { $.get("/api/getServerTimestamp", function (d) { time = parseInt(d); table.ajax.reload(null, false); }); }, 3000); }); }); |
:: 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.0052 ]-- |