PluginProbe
wpForo Forum / 2.3.5
wpForo Forum v2.3.5
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 / admin / pages / tools.php

tools.php in wpForo Forum 2.3.5, at admin/pages/tools.php

33 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if( ! defined( 'ABSPATH' ) || ! WPF()->usergroup->can( 'mt' ) ) die ?>
2
3 <div class="wrap"><h2 style="padding:0 0 30px 0; line-height: 20px;"><?php _e( 'Forum Tools', 'wpforo' ) ?></h2></div>
4 <?php WPF()->notice->show() ?>
5 <?php do_action( 'wpforo_tools_page_top' ) ?>
6 <div id="wpf-admin-wrap" class="wrap">
7 <div id="icon-users" class="icon32"><br></div>
8 <?php
9 $tabs = [
10 'debug' => __( 'Debug', 'wpforo' ),
11 'tables' => __( 'Database Tables', 'wpforo' ),
12 'misc' => __( 'Admin Note', 'wpforo' )
13 ];
14 wpforo_admin_tools_tabs( $tabs, ( isset( $_GET['tab'] ) ? $_GET['tab'] : 'debug' ) );
15 ?>
16 <div class="wpf-info-bar" style="padding:1%">
17 <?php
18 $includefile = WPFORO_DIR . '/admin/tools-tabs/debug.php';
19 if( ! empty( $_GET['tab'] ) ) {
20 switch( $_GET['tab'] ) {
21 case 'misc':
22 $includefile = WPFORO_DIR . '/admin/tools-tabs/misc.php';
23 break;
24 case 'tables':
25 $includefile = WPFORO_DIR . '/admin/tools-tabs/tables.php';
26 break;
27 }
28 }
29 include_once( $includefile );
30 ?>
31 </div>
32 </div>
33