403Webshell
Server IP : 37.9.174.138  /  Your IP : 216.73.216.117
Web Server : Apache
System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64
User : ftpuser ( 1001)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/backend-accounting.sk/app/modules/users/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/backend-accounting.sk/app/modules/users/js/users.js
var recaptchaCallback;
var recaptchaSubmitData;
var loadingTimeoutFunction;


function captchaPrepare(formData, callback, attachment) {
//    showLoadingWindow();
    if (attachment === true) {
        $('body').removeClass('loaded');
        loadingTimeoutFunction = setTimeout(function () {
            $("body").addClass("loaded");
        }, 5000);
    } else {
        $('body').removeClass('loaded');
    }
    grecaptcha.execute();
    recaptchaCallback = callback;
    recaptchaSubmitData = formData;

}

function onRecaptchaResponse(token) {
    clearTimeout(loadingTimeoutFunction);
    recaptchaSubmitData.push({name: "g-recaptcha-response", value: token});
    recaptchaCallback(recaptchaSubmitData);
}

function register(data) {
    $("body").addClass("loaded");
    ShowLoader();
    var formData = {};
    for (var i = 0; i < data.length; i++) {
        formData[data[i].name] = data[i].value;
    }

    var uploadFiles = [];
    for (i = 0; i < loadedFiles.length; i++) {
        var file = {name: loadedFiles[i].name, type: loadedFiles[i].type, size: loadedFiles[i].size, content: loadedFiles[i].content};
        uploadFiles.push(file);
    }

    formData['files'] = uploadFiles;

    ajaxattachment("/api/users/users/register/", "POST", formData, function (response) {
        swal({
            title: response.data.title,
            text: response.data.text,
            type: "success",
            confirmButtonColor: Config.SWEET_ALERT_OK_BUTTON_INFO_COLOR,
            showConfirmButton: true,
        },
                function () {
                    window.location.href = "/" + response.data.redirect + "/";
                });
    }, function () {
        grecaptcha.reset();
    }, function () {
        grecaptcha.reset();
    });
}

function register(data) {
    $("body").addClass("loaded");
    var formData = {};
    for (var i = 0; i < data.length; i++) {
        formData[data[i].name] = data[i].value;
    }

    ajax("/api/users/users/register/", "POST", formData, function (response) {
        swal({
            title: response.data.title,
            text: response.data.text,
            type: "success",
            confirmButtonColor: Config.SWEET_ALERT_OK_BUTTON_INFO_COLOR,
            showConfirmButton: true,
        },
                function () {
                    window.location.href = "/" + response.data.redirect + "/";
                });
    }, function () {
        grecaptcha.reset();
    }, function () {
        grecaptcha.reset();
    });
}

function verifyRegistration(data) {
    $("body").addClass("loaded");
    var formData = {};
    for (var i = 0; i < data.length; i++) {
        formData[data[i].name] = data[i].value;
    }

    ajax("/api/users/users/verifyRegistration/", "POST", formData, function (response) {
        swal({
            title: response.data.title,
            text: response.data.text,
            type: "success",
            confirmButtonColor: Config.SWEET_ALERT_OK_BUTTON_INFO_COLOR,
            showConfirmButton: true,
        },
                function () {
                    window.location.href = "/" + response.data.redirect + "/";
                });
    }, function () {
        grecaptcha.reset();
    }, function () {
        grecaptcha.reset();
    });
}

function login(data) {
    ajax("/api/users/users/login/", "POST", data, function () {
        window.location.reload();
    }, function () {
        grecaptcha.reset();
    }, function () {
        grecaptcha.reset();
    });
}

function forgottenPassword(data) {
    ajax("/api/users/users/forgottenPassword/", "POST", data, function (response) {
        swal({
            title: response.data.title,
            text: response.data.text,
            type: "success",
            confirmButtonColor: Config.SWEET_ALERT_OK_BUTTON_INFO_COLOR,
            showConfirmButton: true
        });
        $("#inputEmail").val("");
        grecaptcha.reset();
    }, function () {
        $("#inputEmail").val("");
        grecaptcha.reset();
    }, function () {
        $("#inputEmail").val("");
        grecaptcha.reset();
    });
}

function forgottenPasswordConfirm(data) {
    ajax("/api/users/users/forgottenPasswordConfirm/", "POST", data, function (response) {
        swal({
            title: response.data.title,
            text: response.data.text,
            type: "success",
            confirmButtonColor: Config.SWEET_ALERT_OK_BUTTON_INFO_COLOR,
            showConfirmButton: true,
        },
                function () {
                    window.location.href = "/" + response.data.redirect + "/";
                });
        grecaptcha.reset();
    }, function () {
        grecaptcha.reset();
    }, function () {
        grecaptcha.reset();
    });
}

function updateProfile(data) {
    ajax("/api/users/loggedUsers/updateProfile/", "POST", data, function () {
//        closeSwal();
        if (typeof showToast !== "undefined") {
            showToast("Zmeny boli uložené.");
        } else {
            notific8("<i class='fa fa-check' style='font-size: 18px;'></i> Uložené", {life: 1000, color: "lime"});

        }
    });
}

function changePassword(data) {
    ajax("/api/users/loggedUsers/changePassword/", "POST", data, function () {
        swal({
            title: "Heslo bolo úspešne zmenené.", //response.data.title,
            text: "Budete presmerovaný na domovskú stránku.", //response.data.text,
            type: "success",
            confirmButtonColor: Config.SWEET_ALERT_OK_BUTTON_INFO_COLOR,
            showConfirmButton: true,
        },
                function () {
                    window.location.href = "/";
                });
    }, function () {
        $("input[type='password']").val("");
    }, function () {
        $("input[type='password']").val("");
    });
}







Youez - 2016 - github.com/yon3zu
LinuXploit