%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/pyxsoft/templates/
Upload File :
Create Path :
Current File : //opt/pyxsoft/templates/home.tmpl

{% extends "template-base/index.tmpl" %}
{% block HTMLTitle %}{{ HTMLTitle }}{% endblock %}
{% block PageTitle %}{{ PageTitle }}{% endblock %}

{% block contenido %}
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-6">
                <h2>Pyxsoft anti-hackers</h2>
            </div>
            {% if globalData.isTrial %}
                <div class="col-md-6">
                    <div class="alerta">
                        <strong>{{ Tr(Lang,"home.trialVersion") }}</strong><br>
                        {{ Tr(Lang,"home.days_remaining") }}: {{ globalData.trialDaysRemaining }}. {{ Tr(Lang,"home.upgradeHere") | safe }}
                    </div>
                </div>
            {% endif %}

        </div>

        <!-- Stats -->
        <div class="row">
            <div class="col-md-3">
                <div class="box bg-success darken">
                    <div class="box-cell p-x-3 p-y-1">
                        <div class="font-weight-semibold font-size-12"><a href="/settings/inst">{{ Tr(Lang,"home.scanned_dirs") }}</a></div>

                            <div class="font-weight-bold font-size-20">{{ Data.2 }} / {{ visibleMaxWatches }}</div>
                        <i class="box-bg-icon middle right font-size-52 fas fa-folder-open"></i>
                    </div>
                </div>
            </div>

            <div class="col-md-3">
                <div class="box bg-info darken">
                    <div class="box-cell p-x-3 p-y-1">
                        <div class="font-weight-semibold font-size-12"><a href="/quarantine">{{ Tr(Lang,"home.files_quarantine") }}</a></div>
                        <div class="font-weight-bold font-size-20">{{ Data.0 }}</div>
                        <i class="box-bg-icon middle right font-size-52 fa fa-ban"></i>
                    </div>
                </div>
            </div>

            <div class="col-md-3">
                <div class="box bg-danger darken">
                    <div class="box-cell p-x-3 p-y-1">
                        <div class="font-weight-semibold font-size-12"><a href="/whitelist">{{ Tr(Lang,"home.files_whitelist") }}</a></div>
                        <div class="font-weight-bold font-size-20">{{ Data.1 }}</div>
                        <i class="box-bg-icon middle right font-size-52 fas fa-exclamation-triangle"></i>
                    </div>
                </div>
            </div>

            <div class="col-md-3">
                <div class="box bg-warning darken">
                    <div class="box-cell p-x-3 p-y-1">
                        <div class="font-weight-semibold font-size-12"><a href="/instant_scanner">{{ Tr(Lang,"home.files_blocked") }}</a></div>
                        <div class="font-weight-bold font-size-20">{{ Data.3 }}<small class="font-weight-light"> {{ Tr(Lang,"home.this_month") }}</small></div>
                        <i class="box-bg-icon middle right font-size-52 fas fa-spider"></i>
                    </div>
                </div>
            </div>
        </div>

        <!-- / Stats -->
        <div class="row">
            {% if Data.4 != 0 %}
                <div class="col-md-12 col-lg-12 col-xl-12">
                    <h2>{{Tr(Lang,"home.http_upload_title")}}</h2>
                    <p>{{Tr(Lang,"home.http_upload_subtit")}}</p>
                    <div class="table-info" style="overflow: hidden;">
                        <table class="table table-bordered table-hover">
                            <thead>
                            <tr>
                                <th>{{Tr(Lang,"home.date")}}</th>
                                <th>{{Tr(Lang,"home.IP")}}</th>
                                <th>{{Tr(Lang,"home.File")}}</th>
                                <th>{{Tr(Lang,"home.Uploader")}}</th>
                                <th>{{Tr(Lang,"home.Result")}}</th>
                            </tr>
                            </thead>
                            {% for log in TableData %}
                                <tr {% if log.result !=' PASS' %}class="danger" {% else %} class="info"{%endif%}>
                                    <td>{{log.date}}</td>
                                    <td>{{log.ip}}</td>
                                    <td>{{log.file}}</td>
                                    <td>{{log.uploader}}</td>
                                    <td>{{log.result}}</td>
                                </tr>
                            {% endfor %}
                        </table>
                    </div>
                </div>
            {% endif %}
            {% if Data.5 != 0 %}
                <div class="col-md-12 col-lg-12 col-xl-12">
                <h2>{{Tr(Lang,"home.WAFLogs")}}</h2>
                <p>{{Tr(Lang,"home.WAFLogs")}}</p>
                <div class="table-success" style="overflow: hidden;">

                    <table class="table table-bordered table-hover">
                        <thead>
                        <tr>
                            <th>{{Tr(Lang,"home.date")}}</th>
                            <th>{{Tr(Lang,"home.IP")}}</th>
                            <th>{{Tr(Lang,"home.Target")}}</th>
                            <th>{{Tr(Lang,"home.BlockedAttack")}}</th>
                            <th>{{Tr(Lang,"home.Info")}}</th>
                        </tr>
                        </thead>
                        {% for waf in TableWAF %}
                            <tr {% if waf.color =='red' %}class="danger"{%endif%}>
                                <td>{{waf.date}}</td>
                                <td>{{waf.ip}}</td>
                                <td>{{waf.target}}</td>
                                <td>{{waf.blocked}}</td>
                                <td>{{waf.result}}</td>
                            </tr>
                        {% endfor %}
                    </table>
                </div>
            </div>
            {% endif %}
            {% if Data.5 == 0 and Data.4 == 0 %}
                <div class="row">
                    <div class="col-md-offset-3 col-md-6" style="margin-top: 3%;">
                        <div class="embed-responsive embed-responsive-16by9 col-xs-12 text-center">
                            <iframe src="https://www.youtube-nocookie.com/embed/CRbAblK3EI8?rel=0" allow="autoplay; encrypted-media" allowfullscreen="" width="560" height="315" frameborder="0"></iframe>
                        </div>
                    </div>
                </div>
            {% endif %}
        </div>
        <!-- Data stats -->
        <!--<div class="row">
            <div class="col-md-2">
                <div class="panel box">
                    <div class="box-row">
                        <div class="box-cell p-x-2 p-y-1 bg-black text-xs-center font-size-11 font-weight-semibold">
                            <i class="fa fa-cloud"></i>{{ Tr(Lang,"home.server_security") }}
                        </div>
                    </div>
                    <div>
                <span class="chart" data-percent="{{Data.1}}">
                        <span class="percent">{{ Data.1 }}</span>
                </span>
                    </div>
                </div>
            </div>
        </div>-->
    </div>
{% endblock %}
{% block finalScripts %}
    <script>

        /*$(window).on('load', function () {
            $('#myModal').modal('show');
        });*/
        /*$(window).load(function()
        {
            $('#myModal').modal('show');
        });*/
        $(window).ready(function () {
            var ca = document.cookie.split('showAgain=');
            if (ca[1] == null){
                document.cookie = "showAgain=Yes";
                $('#notificationsModal').modal('show');
            }else if (ca[1] == "Yes"){
                $('#notificationsModal').modal('show');
                $('#showAgainModal').change(function() {
                    if(this.checked) {
                        document.cookie = "showAgain=No";
                    }
                });
            }else{
                $('#notificationsModal').modal('hide');
            }
        });

        $(function() {
            $('.chart').easyPieChart({
                size:200,
                onStep: function(from, to, percent) {
                    $(this.el).find('.percent').text(Math.round(percent));
                }
            });
        });

        new Morris.Line({
            // ID of the element in which to draw the chart.
            element: 'myfirstchart',
            // Chart data records -- each entry in this array corresponds to a point on
            // the chart.
            data: [
                { Day: '11', BlockedFiles: 20 },
                { Day: '12', BlockedFiles: 10 },
                { Day: '13', BlockedFiles: 5 },
                { Day: '14', BlockedFiles: 5 },
                { Day: '15', BlockedFiles: 20 }
            ],
            // The name of the data record attribute that contains x-values.
            xkey: 'Day',
            // A list of names of data record attributes that contain y-values.
            ykeys: ['BlockedFiles'],
            // Labels for the ykeys -- will be displayed when you hover over the
            // chart.
            labels: ['Blocked Files']
        });
    </script>
{% endblock %}

Zerion Mini Shell 1.0