403Webshell
Server IP : 62.60.133.156  /  Your IP : 216.73.217.51
Web Server : LiteSpeed
System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User : mimradmin ( 1166)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /proc/thread-self/cwd/wp-content/plugins/RTL-CareUnit/assets/js/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /proc/thread-self/cwd/wp-content/plugins/RTL-CareUnit/assets/js/backup.js
(jQuery)(document).ready(function ($){

    $('#submit-backup').on('click',function (){
        let autoBackupAllProduct = $('#auto-backup-all-product').is(':checked') ? 'on' : 'off';
        let backupNumber = $('#select-file-number').val()
        rtlShowLoading();
        $.ajax({
            method: 'POST',
            url: rsm.url,
            data: {
                'action': 'rsmAjaxBackupSettings',
                'nonce': rsm.nonce,
                'tab': 'backup',
                'backupNumber' : backupNumber,
                'autoBackupAllProduct':autoBackupAllProduct
            }
        }).done(function (response) {
            let resp = $.parseJSON(response);
            if (resp.success === true){
                rtlSuccess(resp.data).then(function (){
                    window.location.reload()
                })
            }else{
                rtlError(resp.data).then(function (){
                    window.location.reload()
                })
            }
        }).fail(function (){
            rtlError()
        })

    })

    $('.delete-backup').on('click',function (){
        let btn = $(this)
        let fileName = btn.data('name')
        let id = btn.data('id')
        let type = btn.data('type')
        Swal.fire({
            title: rsm.Translate.ays,
            text: rsm.Translate.deletedAlert,
            icon: "warning",
            showCancelButton: true,
            confirmButtonColor: "#ef5350",
            cancelButtonColor: "#3085d6",
            confirmButtonText: rsm.Translate.yesDeleted,
            cancelButtonText: rsm.Translate.cancel
        }).then((result) => {
            if (result.isConfirmed) {
                rtlShowLoading()
                $.ajax({
                    method: 'POST',
                    url: rsm.url,
                    data: {
                        'action': 'rsmAjaxDeleteBackup',
                        'nonce': rsm.nonce,
                        'tab': 'backup',
                        'type': type,
                        'fileName' : fileName
                    }
                }).done(function (response) {
                    let resp = $.parseJSON(response);
                    if (resp.success === true){
                        rtlSuccess(resp.data).then(function (){
                            $('#'+id).remove();
                        })

                    }else{
                        rtlError(resp.data)
                    }

                }).fail(function (){
                    rtlError()
                })

            }
        });

    })

    /**
     *  get restore question for confirm by user after accepted by user,
     *  the plugin will be restored to selected version backup
     */
    $('.restore-plugin,.restore-theme').on('click',function (e){
        e.preventDefault();
        let btn = $(this)
        let restoreLink = btn.data('restore-url');

        Swal.fire({
            title: rsm.Translate.ays,
            text: rsm.Translate.restoreAlert,
            icon: "warning",
            showCancelButton: true,
            confirmButtonColor: "#ef5350",
            cancelButtonColor: "#3085d6",
            confirmButtonText: rsm.Translate.yesRestore,
            cancelButtonText: rsm.Translate.cancel
        }).then((result) => {
            if (result.isConfirmed) {
                let win = window.open(restoreLink, '_blank');
                if (win) {
                    //Browser has allowed it to be opened
                    win.focus();
                } else {
                    //Browser has blocked it
                    alert(rsm.Translate.allowPopup);
                }
            }
        });
    })


    //ready
})

Youez - 2016 - github.com/yon3zu