PluginProbe
wpForo Forum / 1.4.2
wpForo Forum v1.4.2
3.1.5 3.1.4 3.1.2 3.1.1 3.1.0 3.0.9 3.0.8 3.0.7 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.2 All 137 releases
wpforo / wpf-admin / tools.php

tools.php in wpForo Forum 1.4.2, at wpf-admin/tools.php

32 lines 993 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // Exit if accessed directly
3 if( !defined( 'ABSPATH' ) ) exit;
4 if( !current_user_can('administrator') ) exit;
5 ?>
6
7 <?php $plugins = true; ?>
8 <div class="wrap"><h2 style="padding:0px 0px 30px 0px;line-height: 20px;"><?php _e('Forum Tools') ?></h2></div>
9 <?php $wpforo->notice->show(FALSE) ?>
10 <?php do_action('wpforo_tools_page_top') ?>
11 <div id="wpf-admin-wrap" class="wrap"><div id="icon-users" class="icon32"><br /></div>
12 <?php
13 $tabs = array(
14 'antispam' => __('Antispam', 'wpforo'),
15 'cleanup' => __('Cleanup', 'wpforo')
16 );
17 wpforo_admin_tools_tabs( $tabs, ( isset($_GET['tab']) ? $_GET['tab'] : 'antispam' ) );
18 ?>
19 <div class="wpf-info-bar" style="padding:1% 2%;">
20 <?php
21 $includefile = 'tools-tabs/antispam.php';
22 if(!empty($_GET['tab'])){
23 switch($_GET['tab']){
24 case 'cleanup':
25 $includefile = 'tools-tabs/cleanup.php';
26 break;
27 }
28 }
29 include_once($includefile);
30 ?>
31 </div>
32 </div>