| Server IP : 172.64.80.1 / Your IP : 172.71.120.136 Web Server : Apache System : Linux mail.federalpolyede.edu.ng 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64 User : federalpolyede.edu.ng_idh35skikv ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/federalpolyede.edu.ng/phd_code/securitymodel/templates/ |
Upload File : |
{% extends 'master.html' %}
{% block title %} Security Model | Reports {% endblock %}
{% block content %}
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for cat, message in messages %}
{% if cat[0]=='success' %}
<div class="alert alert-{{cat[0]}} fade in" role="alert">
<a href="#" class="close" data-dismiss="alert">×</a><i class='fa fa-fw fa-{{cat[1]}}'></i>
<b class="h4 text-bold">{{message}}</b></div>
{% endif %}
{% endfor %}
{% endif %}
{% endwith %}
<div class="row">
<div class="col-md-12">
<div class="panel panel-info">
<div class="panel-heading">{{title}}</div>
<div class="panel-body">
{% if widget['user'] %}
<table id="allreports" class="display" style="width:100%">
<thead>
<tr>
<th>S/N</th><th>Username</th>
<th>Phone Number</th><th>Email</th><th>Date</th>
</tr>
</thead>
<tbody>
{% if logs %}
{% for log in logs %}
<tr>
<td>{{loop.index}}</td>
<td>{{ log.username }}</td>
<td>{{ log.contact }}</td>
<td>{{ log.email }}</td>
<td>{{ log.date.strftime("%a, %d %b %Y at %I:%M:%S%p") }}</td>
</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
{% else %}
<table id="allreports" class="display" style="width:100%">
<thead>
<tr>
<th>S/N</th><th>username</th><th>password</th>
<th>IPaddress</th><th style="width:200px">time</th>
<th>status</th><th>ModeOfPlay</th>
</tr>
</thead>
<tbody>
{% if logs %}
{% for log in logs %}
<tr>
<td>{{loop.index}}</td>
<td>{{ log.username }}</td>
<td>{{ log.password }}</td>
<td>{{ log.ipaddress }}</td>
<td>{{ log.time.strftime("%a, %d %b %Y at %I:%M:%S%p") }}</td>
<td>{{ log.status }}</td>
<td>{% if log.mode == 0 %}Based on Model
{% else %}Based on Attack {% endif %}
</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
{% endif %}
</div>
</div>
</div>
</div>
<footer>
</footer>
{% endblock %}
{% block script %}{% endblock %}