AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.80
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/public_html/lrsys_apps/imobles/ui/lib/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_apps/imobles/ui/lib/js/documents.js
Dropzone.autoDiscover = false;
$(function() {

    var _url = $("#_url").val();

    $.fn.modal.defaults.width = '700px';

    var $modal = $('#ajax-modal');

    $('[data-toggle="tooltip"]').tooltip();

    var $btn_add_file = $("#btn_add_file");

    var $file_link = $("#file_link");

    var upload_resp;

    var footable_tbl = $("#footable_tbl");

    footable_tbl.footable();


    var ib_file = new Dropzone("#upload_container",
        {
            url: _url + "documents/upload/",
            maxFiles: 1
        }
    );


    ib_file.on("sending", function() {

        $btn_add_file.prop('disabled', true);

    });

    ib_file.on("success", function(file,response) {

        $btn_add_file.prop('disabled', false);
        upload_resp = response;
        if(upload_resp.success == 'Yes'){
            toastr.success(upload_resp.msg);
            $file_link.val(upload_resp.file);
        }
        else{
            toastr.error(upload_resp.msg);
        }


    });




    var $doc_title = $("#doc_title");


    $btn_add_file.on('click', function(e) {
        e.preventDefault();


        $.post( _url + "documents/post/", { title: $doc_title.val(), file_link: $file_link.val() })
            .done(function( data ) {

                if ($.isNumeric(data)) {

                    location.reload();

                }

                else {
                    toastr.error(data);
                }




            });


    });


    $(".cdelete").click(function (e) {
        e.preventDefault();
        var id = this.id;
        bootbox.confirm(_L['are_you_sure'], function(result) {
            if(result){
                window.location.href = _url + "delete/document/" + id + '/';
            }
        });
    });




    $(".cedit").click(function (e) {
        e.preventDefault();
        var id = this.id;

        $('body').modalmanager('loading');

        $modal.load( _url + 'contacts/modal_add_company/'+ id + '/', '', function(){

            $modal.modal();

        });

    });




});

Anon7 - 2022
AnonSec Team