PluginProbe
wpForo Forum / beta-4
wpForo Forum vbeta-4
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 / options.php

options.php in wpForo Forum beta-4, at wpf-admin/options.php

61 lines 1.9 KB
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 id="icon-tools" class="icon32"><br></div><div class="wrap"><h2 style="padding:20px 0px 30px 0px;line-height: 20px;"><?php _e('Forum Settings') ?></h2></div>
9 <?php $wpforo->notice->show(FALSE) ?>
10 <div id="wpf-admin-wrap" class="wrap"><div id="icon-users" class="icon32"><br /></div>
11 <?php
12 $tabs = array(
13 'general' => __('General', 'wpforo'),
14 'forums' => __('Forums', 'wpforo'),
15 'accesses' => __('Forum Accesses', 'wpforo'),
16 'posts' => __('Topics &amp; Posts', 'wpforo'),
17 'members' => __('Members', 'wpforo'),
18 'subscriptions' => __('Emails', 'wpforo'),
19 'features' => __('Features', 'wpforo')
20 );
21 if( !empty( $wpforo->theme_options['styles'] ) ) $tabs['styles'] = __('Styles', 'wpforo');
22 if( $plugins ) $tabs['plugins'] = __('Addons', 'wpforo');
23 wpforo_admin_options_tabs( $tabs, ( isset($_GET['tab']) ? $_GET['tab'] : 'general' ) );
24 ?>
25 <div class="wpf-info-bar"><br />
26 <?php
27 if(isset($_GET['tab'])){
28 switch($_GET['tab']){
29 case 'accesses':
30 include( 'options-tabs/accesses.php' );
31 break;
32 case 'posts':
33 include( 'options-tabs/posts.php' );
34 break;
35 case 'forums':
36 include( 'options-tabs/forums.php' );
37 break;
38 case 'members':
39 include( 'options-tabs/members.php' );
40 break;
41 case 'features':
42 include( 'options-tabs/features.php' );
43 break;
44 case 'styles':
45 include( 'options-tabs/styles.php' );
46 break;
47 case 'subscriptions':
48 include( 'options-tabs/subscriptions.php' );
49 break;
50 case 'plugins':
51 include( 'options-tabs/plugins.php' );
52 break;
53 default:
54 include_once( 'options-tabs/general.php' );
55 }
56 }else{
57 include_once( 'options-tabs/general.php' );
58 }
59 ?>
60 </div>
61 </div>