Linux webm012.cluster126.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
/
home
/
ferronnery
/
www
/
wp-content
/
plugins
/
login-lockdown
/
interface
/
/home/ferronnery/www/wp-content/plugins/login-lockdown/interface/tab_activity.php
<?php /** * Login Lockdown * https://wploginlockdown.com/ * (c) WebFactory Ltd, 2022 - 2026, www.webfactoryltd.com */ class LoginLockdown_Tab_Activity extends LoginLockdown { static function display() { $tabs[] = array('id' => 'tab_log_locks', 'class' => 'tab-content', 'label' => __('Lockdowns', 'login-lockdown'), 'callback' => array(__CLASS__, 'tab_locks')); $tabs[] = array('id' => 'tab_log_full', 'class' => 'tab-content', 'label' => __('Failed Logins', 'login-lockdown'), 'callback' => array(__CLASS__, 'tab_full')); echo '<div id="tabs_log" class="ui-tabs loginlockdown-tabs-2nd-level">'; echo '<ul>'; foreach ($tabs as $tab) { echo '<li><a href="#' . esc_attr($tab['id']) . '">' . esc_html($tab['label']) . '</a></li>'; } echo '</ul>'; foreach ($tabs as $tab) { if (is_callable($tab['callback'])) { echo '<div style="display: none;" id="' . esc_html($tab['id']) . '" class="' . esc_html($tab['class']) . '">'; call_user_func($tab['callback']); echo'</div>'; } } // foreach echo '</div>'; // second level of tabs } // display static function tab_locks() { echo '<div class="loginlockdown-stats-main loginlockdown-chart-locks" style="display:none;"><canvas id="loginlockdown-locks-chart" style="height: 160px; width: 100%;"></canvas></div>'; echo '<div class="loginlockdown-stats-main loginlockdown-stats-locks" style="display:none;">'; echo '<img src="' . esc_url(LOGINLOCKDOWN_PLUGIN_URL) . '/images/advanced_stats.png" alt="Login Lockdown" title="Login Lockdown Advanced Stats" />'; echo'</div>'; echo '<div class="tab-content">'; echo '<div id="loginlockdown-locks-log-table-wrapper"> <table cellpadding="0" cellspacing="0" border="0" class="display" id="loginlockdown-locks-log-table"> <thead> <tr> <th></th> <th align="left" style="width:160px;">Date & Time</th> <th align="left">Reason</th> <th style="width:180px;">Location</th> <th style="width:180px;">IP</th> <th style="width:180px;">User Agent</th> <th style="width:80px;"></th> </tr> </thead> <tbody></tbody> <tfoot> <tr> <th></th> <th>Date & Time</th> <th>Reason</th> <th>Location</th> <th>IP</th> <th>User Agent</th> <th></th> </tr> </tfoot> </table> </div> <div data-log="locks" class="tooltip empty_log tooltipstered" data-msg-success="Lockdowns Log Emptied" data-btn-confirm="Yes, empty the log" data-title="Are you sure you want to empty the Lockdowns Log?" data-wait-msg="Emptying. Please wait." data-name=""><i class="loginlockdown-icon loginlockdown-trash"></i> Empty Lockdowns Log</div>'; echo '</div>'; } static function tab_full() { echo '<div class="loginlockdown-stats-main loginlockdown-chart-fails" style="display:none"><canvas id="loginlockdown-fails-chart" style="height: 160px; width: 100%;"></canvas></div>'; echo '<div class="loginlockdown-stats-main loginlockdown-stats-fails" style="display:none">'; echo '<img src="' . esc_url(LOGINLOCKDOWN_PLUGIN_URL) . '/images/advanced_stats.png" alt="Login Lockdown" title="Login Lockdown Advanced Stats" />'; echo '</div>'; echo '<div class="tab-content">'; echo '<div id="loginlockdown-fails-log-table-wrapper"> <table cellpadding="0" cellspacing="0" border="0" class="display" id="loginlockdown-fails-log-table"> <thead> <tr> <th style="width:160px;" align="left">Date & Time</th> <th style="width:280px;" align="left">User</th> <th style="width:180px;">Location</th> <th style="width:180px;">IP</th> <th style="width:180px;">User Agent</th> <th style="width:280px;">Reason</th> <th style="width:80px;"></th> </tr> </thead> <tbody></tbody> <tfoot> <tr> <th>Date & Time</th> <th>Username</th> <th>Location</th> <th>IP</th> <th>User Agent</th> <th>Reason</th> <th></th> </tr> </tfoot> </table> </div> <div data-log="fails" class="tooltip empty_log tooltipstered" data-msg-success="Fails Log Emptied" data-btn-confirm="Yes, empty the log" data-title="Are you sure you want to empty the Failed Logins Log?" data-wait-msg="Emptying. Please wait." data-name=""><i class="loginlockdown-icon loginlockdown-trash"></i> Empty Failed Logins Log</div>'; echo '</div>'; } } // class LoginLockdown_Tab_Activity