PluginProbe ʕ •ᴥ•ʔ
Advanced Google reCAPTCHA / 1.27
Advanced Google reCAPTCHA v1.27
5.39 trunk 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 1.22 1.23 1.24 1.25 1.26 1.27 1.28 1.29 1.30 1.31 1.32 1.33 1.34 1.35
advanced-google-recaptcha / interface / tab_activity.php
advanced-google-recaptcha / interface Last commit date
tab_activity.php 1 year ago tab_captcha.php 1 year ago tab_design.php 1 year ago tab_firewall.php 1 year ago tab_geoip.php 1 year ago tab_login_form.php 1 year ago tab_temp_access.php 1 year ago
tab_activity.php
105 lines
1 <?php
2 /**
3 * WP Captcha
4 * https://getwpcaptcha.com/
5 * (c) WebFactory Ltd, 2022 - 2025, www.webfactoryltd.com
6 */
7
8 class WPCaptcha_Tab_Activity extends WPCaptcha
9 {
10 static function display()
11 {
12 $tabs[] = array('id' => 'tab_log_locks', 'class' => 'tab-content', 'label' => __('Access Locks', 'advanced-google-recaptcha'), 'callback' => array(__CLASS__, 'tab_locks'));
13 $tabs[] = array('id' => 'tab_log_full', 'class' => 'tab-content', 'label' => __('Failed Logins', 'advanced-google-recaptcha'), 'callback' => array(__CLASS__, 'tab_full'));
14
15 echo '<div id="tabs_log" class="ui-tabs wpcaptcha-tabs-2nd-level">';
16 echo '<ul>';
17 foreach ($tabs as $tab) {
18 echo '<li><a href="#' . esc_attr($tab['id']) . '">' . esc_html($tab['label']) . '</a></li>';
19 }
20 echo '</ul>';
21
22 foreach ($tabs as $tab) {
23 if (is_callable($tab['callback'])) {
24 echo '<div style="display: none;" id="' . esc_attr($tab['id']) . '" class="' . esc_attr($tab['class']) . '">';
25 call_user_func($tab['callback']);
26 echo '</div>';
27 }
28 } // foreach
29
30 echo '</div>'; // second level of tabs
31 } // display
32
33 static function tab_locks()
34 {
35 echo '<div class="wpcaptcha-stats-main wpcaptcha-chart-locks" style="display:none"><canvas id="wpcaptcha-locks-chart" style="height: 160px; width: 100%;"></canvas></div>';
36 echo '<div class="wpcaptcha-stats-main wpcaptcha-stats-locks" style="display:none;">';
37 echo '<img src="' . esc_url(WPCAPTCHA_PLUGIN_URL) . '/images/advanced_stats.png" alt="WP Captcha" title="WP Captcha Stats" />';
38 echo'</div>';
39 echo '<div class="tab-content">';
40 echo '<div id="wpcaptcha-locks-log-table-wrapper">
41 <table cellpadding="0" cellspacing="0" border="0" class="display" id="wpcaptcha-locks-log-table">
42 <thead>
43 <tr>
44 <th></th>
45 <th style="width:160px;">Date &amp; time</th>
46 <th>Reason</th>
47 <th>Location/IP</th>
48 <th style="width:280px;">User Agent</th>
49 <th style="width:80px;"></th>
50 </tr>
51 </thead>
52 <tbody></tbody>
53 <tfoot>
54 <tr>
55 <th></th>
56 <th>Date &amp; time</th>
57 <th>Reason</th>
58 <th>Location/IP</th>
59 <th>User Agent</th>
60 <th></th>
61 </tr>
62 </tfoot>
63 </table>
64 </div>
65 <div data-log="locks" class="tooltip empty_log tooltipstered" data-msg-success="Access Locks Log Emptied" data-btn-confirm="Yes, empty the log" data-title="Are you sure you want to empty the Access Locks Log?" data-wait-msg="Emptying. Please wait." data-name=""><i class="wpcaptcha-icon wpcaptcha-trash"></i> Empty Access Locks Log</div>';
66 echo '</div>';
67 }
68
69 static function tab_full()
70 {
71 echo '<div class="wpcaptcha-stats-main wpcaptcha-chart-fails" style="display:none"><canvas id="wpcaptcha-fails-chart" style="height: 160px; width: 100%;"></canvas></div>';
72 echo '<div class="wpcaptcha-stats-main wpcaptcha-stats-fails" style="display:none;">';
73 echo '<img src="' . esc_url(WPCAPTCHA_PLUGIN_URL) . '/images/advanced_stats.png" alt="WP Captcha" title="WP Captcha Stats" />';
74 echo'</div>';
75 echo '<div class="tab-content">';
76 echo '<div id="wpcaptcha-fails-log-table-wrapper">
77 <table cellpadding="0" cellspacing="0" border="0" class="display" id="wpcaptcha-fails-log-table">
78 <thead>
79 <tr>
80 <th style="width:160px;">Date &amp; time</th>
81 <th style="width:280px;">User/Pass</th>
82 <th>Location/IP</th>
83 <th style="width:280px;">User Agent</th>
84 <th style="width:280px;">Reason</th>
85 <th style="width:80px;"></th>
86 </tr>
87 </thead>
88 <tbody></tbody>
89 <tfoot>
90 <tr>
91 <th>Date &amp; time</th>
92 <th>User/Pass</th>
93 <th>Location/IP</th>
94 <th>User Agent</th>
95 <th>Reason</th>
96 <th></th>
97 </tr>
98 </tfoot>
99 </table>
100 </div>
101 <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="wpcaptcha-icon wpcaptcha-trash"></i> Empty Failed Logins Log</div>';
102 echo '</div>';
103 }
104 } // class WPCaptcha_Tab_Activity
105