| 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 |
|