????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.217.84 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.astacus.se/wp-content/plugins/Temp-Hold/wordfence/lib/dashboard/ |
Upload File : |
<?php //$d is defined here as a wfDashboard instance ?>
<div class="wf-row">
<div class="wf-col-xs-12">
<div class="wf-dashboard-item active">
<div class="wf-dashboard-item-inner">
<div class="wf-dashboard-item-content">
<div class="wf-dashboard-item-title">
<strong>Login Attempts</strong>
</div>
<div class="wf-dashboard-item-action"><div class="wf-dashboard-item-action-disclosure"></div></div>
</div>
</div>
<div class="wf-dashboard-item-extra">
<ul class="wf-dashboard-item-list">
<li>
<div>
<div class="wf-dashboard-toggle-btns">
<ul class="wf-pagination wf-pagination-sm">
<li class="wf-active"><a href="#" class="wf-dashboard-login-attempts" data-grouping="success">Successful</a></li>
<li><a href="#" class="wf-dashboard-login-attempts" data-grouping="fail">Failed</a></li>
</ul>
</div>
<div class="wf-recent-logins wf-recent-logins-success">
<?php if (count($d->loginsSuccess) == 0): ?>
<div class="wf-dashboard-item-list-text"><p><em>No successful logins have been recorded.</em></p></div>
<?php else: ?>
<?php $data = array_slice($d->loginsSuccess, 0, min(10, count($d->loginsSuccess)), true); include(dirname(__FILE__) . '/widget_content_logins.php'); ?>
<?php if (count($d->loginsSuccess) > 10): ?>
<div class="wf-dashboard-item-list-text"><div class="wf-dashboard-show-more" data-grouping="logins" data-period="success"><a href="#">Show more</a></div></div>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="wf-recent-logins wf-recent-logins-fail wf-hidden">
<?php if (count($d->loginsFail) == 0): ?>
<div class="wf-dashboard-item-list-text"><p><em>No failed logins have been recorded.</em></p></div>
<?php else: ?>
<?php $data = array_slice($d->loginsFail, 0, min(10, count($d->loginsFail)), true); include(dirname(__FILE__) . '/widget_content_logins.php'); ?>
<?php if (count($d->loginsFail) > 10): ?>
<div class="wf-dashboard-item-list-text"><div class="wf-dashboard-show-more" data-grouping="logins" data-period="fail"><a href="#">Show more</a></div></div>
<?php endif; ?>
<?php endif; ?>
</div>
<script type="application/javascript">
(function($) {
$('.wf-dashboard-login-attempts').on('click', function(e) {
e.preventDefault();
e.stopPropagation();
$(this).closest('ul').find('li').removeClass('wf-active');
$(this).closest('li').addClass('wf-active');
$('.wf-recent-logins').addClass('wf-hidden');
$('.wf-recent-logins-' + $(this).data('grouping')).removeClass('wf-hidden');
});
$('.wf-recent-logins .wf-dashboard-show-more a').on('click', function(e) {
e.preventDefault();
e.stopPropagation();
var grouping = $(this).parent().data('grouping');
var period = $(this).parent().data('period');
$(this).closest('.wf-dashboard-item-list-text').fadeOut();
var self = this;
WFAD.ajax('wordfence_dashboardShowMore', {
grouping: grouping,
period: period
}, function(res) {
if (res.ok) {
var table = $('#logins-data-template').tmpl(res);
$(self).closest('.wf-recent-logins').css('overflow-y', 'auto');
$(self).closest('.wf-recent-logins').find('table').replaceWith(table);
}
else {
WFAD.colorbox('300px', 'An error occurred', 'We encountered an error trying load more data.');
$(this).closest('.wf-dashboard-item-list-text').fadeIn();
}
});
});
})(jQuery);
</script>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<script type="text/x-jquery-template" id="logins-data-template">
<table class="wf-table wf-table-hover">
<thead>
<tr>
<th>Username</th>
<th>IP</th>
<th>Date</th>
</tr>
</thead>
<tbody>
{{each(idx, d) data}}
<tr>
<td>${d.name}</td>
<td>${d.ip}</td>
<td>${d.t}</td>
</tr>
{{/each}}
</tbody>
</table>
</script>