⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
wix.com.ng
/
public
/
assets
/
admin
/
js
/
Edit File: addition-page.js
"use strict"; $('#pageForm').on('submit', function (e) { $('.request-loader').addClass('show'); e.preventDefault(); let action = $(this).attr('action'); let fd = new FormData($(this)[0]); if ($("#pageForm .summernote").length > 0) { $("#pageForm .summernote").each(function (i) { let index = i; let $toInput = $('.summernote').eq(index); let tmcId = $toInput.attr('id'); let content = tinyMCE.get(tmcId).getContent(); fd.delete($(this).attr('name')); fd.append($(this).attr('name'), content); }); } $.ajax({ url: action, method: 'POST', data: fd, contentType: false, processData: false, success: function (data) { $('.request-loader').removeClass('show'); if (data.status == 'success') { location.reload(); } if (data == "downgrade") { $('.modal').modal('hide'); "use strict"; var content = {}; content.message = downgradText; content.title = WarningText; content.icon = 'fa fa-bell'; $.notify(content, { type: 'warning', placement: { from: 'top', align: 'right' }, showProgressbar: true, time: 1000, delay: 4000, }); $("#limitModal").modal('show'); } }, error: function (error) { let errors = ``; for (let x in error.responseJSON.errors) { errors += `
${error.responseJSON.errors[x][0]}
`; } $('#pageErrors ul').html(errors); $('#pageErrors').show(); $('.request-loader').removeClass('show'); $('html, body').animate({ scrollTop: $('#pageErrors').offset().top - 100 }, 1000); } }); });
Simpan