https://t.me/RX1948
Server : LiteSpeed
System : Linux srv104790275 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : dewac4139 ( 1077)
PHP Version : 8.0.30
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,pcntl_unshare,
Directory :  /usr/local/CyberCP/websiteFunctions/templates/websiteFunctions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/CyberCP/websiteFunctions/templates/websiteFunctions/RemoteBackupConfig.html
{% extends "baseTemplate/index.html" %}
{% load i18n %}
{% block title %}{% trans "Remote Backup Configurations - CyberPanel" %}{% endblock %}
{% block content %}

    {% load static %}
    {% get_current_language as LANGUAGE_CODE %}
    <!-- Current language: {{ LANGUAGE_CODE }} -->

    <div class="container">
        <div id="page-title">
            <h2>{% trans "Remote Backup Configurations" %}</h2>
        </div>


        <div ng-controller="RemoteBackupConfig" class="panel">
            <div class="panel-body">
                <h3 class="content-box-header">
                    {% trans "Configure Remote Backups" %} <img ng-hide="RemoteBackupLoading"
                                                                src="{% static 'images/loading.gif' %}">
                </h3>
                <div class="example-box-wrapper">

                    <form name="websiteCreationForm" action="/" id="createPackages"
                          class="form-horizontal bordered-row panel-body">

                        <div ng-hide="installationDetailsForm" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Select Remote Backup Type" %}</label>
                            <div class="col-sm-6">
                                <select ng-model="RemoteBackuptype" ng-change="SelectRemoteBackuptype()"
                                        class="form-control">
                                    <option>SFTP</option>
                                    <option>S3</option>
                                </select>
                            </div>
                        </div>


                        <div ng-hide="SFTPBackUpdiv" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Hostname" %}</label>
                            <div class="col-sm-6">
                                <input name="Hostname" type="text" class="form-control" ng-model="Hostname"
                                       required>
                            </div>

                        </div>
                        <div ng-hide="SFTPBackUpdiv" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Username" %}</label>
                            <div class="col-sm-6">
                                <input name="Username" type="text" class="form-control" ng-model="Username"
                                       required>
                            </div>

                        </div>
                        <div ng-hide="SFTPBackUpdiv" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Password" %}</label>
                            <div class="col-sm-6">
                                <input name="Password" type="password" class="form-control" ng-model="Password"
                                       required>
                            </div>

                        </div>
                        <div ng-hide="SFTPBackUpdiv" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "path" %}</label>
                            <div class="col-sm-6">
                                <input name="path" type="path" class="form-control" ng-model="path"
                                       required>
                            </div>

                        </div>


                        <div ng-hide="Selectprovider" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Choose Provider" %}</label>
                            <div class="col-sm-6">
                                <select ng-model="Providervalue" ng-change="SelectProvidertype()"
                                        class="form-control">
                                    <option selected="selected">Amazon</option>
                                    <option>Wasabi</option>
                                    <option>Backblaze</option>
                                </select>
                            </div>
                        </div>
                        <div ng-hide="S3keyNamediv" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Name" %}</label>
                            <div class="col-sm-6">
                                <input name="S3keyName" type="text" class="form-control" ng-model="S3keyName"
                                       required>
                            </div>
                        </div>
                        <div ng-hide="EndpointURLdiv" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Endpoint URL" %}</label>
                            <div class="col-sm-6">
                                <input name="EndpointURL" type="text" class="form-control" ng-model="EndpointURL"
                                       required>
                            </div>
                        </div>
                        <div ng-hide="Accesskeydiv" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Access Key" %}</label>
                            <div class="col-sm-6">
                                <input name="Accesskey" type="text" class="form-control" ng-model="Accesskey"
                                       required>
                            </div>
                        </div>
                        <div ng-hide="SecretKeydiv" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Secret Key" %}</label>
                            <div class="col-sm-6">
                                <input name="SecretKey" type="password" class="form-control" ng-model="SecretKey"
                                       required>
                            </div>
                        </div>


                        <div ng-hide="installationDetailsForm" class="form-group">
                            <label class="col-sm-3 control-label"></label>
                            <div class="col-sm-4">
                                <button type="button" ng-click="SaveBackupConfig()"
                                        class="btn btn-primary btn-lg">{% trans "Save Configurations" %}</button>

                            </div>
                        </div>


                    </form>

                </div>
                <h3 class="content-box-header">
                    {% trans "Saved Remote Configuration" %} </h3>
                <table class="table-spacing" style="width: 100%">
                    <thead style="color: white; background-color: #0a6ebd">
                    <tr>
                        <th style="padding: 18px; color: white; width: 161px; font-size: 12px;">Backup Type</th>
                        <th style="padding: 18px; color: white; width: 161px; font-size: 12px;">HostName</th>
                        <th style="padding: 18px; color: white; width: 161px; font-size: 12px;">Path / Key Name</th>
                        <th style="padding: 18px; color: white; width: 161px; font-size: 12px;">Action</th>
                    </tr>
                    </thead>

                    <tbody>
                    {% for sub in backupconfigs %}
                        <tr>
                            <td style="padding: 13px;">{{ sub.Type }}</td>
                            <td style="padding: 13px;">{{ sub.HostName }}</td>
                            <td style="padding: 13px;">{{ sub.Path }}</td>
                            <td style="padding: 13px;">
                                <button
                                        aria-label=""
                                        onclick="DeleteBackupConfigNow('{% url 'RemoteBackupConfig' %}?DeleteID={{ sub.id }}')"
                                        type="button" class="btn btn-border btn-alt border-red btn-link font-red">
                                    Delete
                                </button>
                                <a href="{% url 'BackupfileConfig' %}?ID={{ sub.id }}"
                                   aria-label=""

                                   type="button" class="btn btn-border btn-alt border-green btn-link font-green">
                                    Schedule Backups
                                </a></td>
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
            </div>
        </div>


    </div>


{% endblock %}

https://t.me/RX1948 - 2025