Adminimize - Version 1.7.22

Version Description

Download this release

Release Info

Developer Bueltge
Plugin Icon wp plugin Adminimize
Version 1.7.22
Comparing to
See all releases

Code changes from version 1.7.21 to 1.7.22

adminimize.php CHANGED
@@ -12,7 +12,7 @@ Domain Path: /languages
12
  Description: Visually compresses the administratrive meta-boxes so that more admin page content can be initially seen. The plugin that lets you hide 'unnecessary' items from the WordPress administration menu, for alle roles of your install. You can also hide post meta controls on the edit-area to simplify the interface. It is possible to simplify the admin in different for all roles.
13
  Author: Frank Bültge
14
  Author URI: http://bueltge.de/
15
- Version: 1.7.21
16
  License: GPLv2
17
  */
18
 
@@ -229,9 +229,9 @@ function _mw_adminimize_admin_init() {
229
  global $pagenow, $post_type, $menu, $submenu, $wp_version;
230
 
231
  if ( isset( $_GET['post'] ) )
232
- $post_id = (int) $_GET['post'];
233
  elseif ( isset( $_POST['post_ID'] ) )
234
- $post_id = (int) $_POST['post_ID'];
235
  else
236
  $post_id = 0;
237
 
12
  Description: Visually compresses the administratrive meta-boxes so that more admin page content can be initially seen. The plugin that lets you hide 'unnecessary' items from the WordPress administration menu, for alle roles of your install. You can also hide post meta controls on the edit-area to simplify the interface. It is possible to simplify the admin in different for all roles.
13
  Author: Frank Bültge
14
  Author URI: http://bueltge.de/
15
+ Version: 1.7.22
16
  License: GPLv2
17
  */
18
 
229
  global $pagenow, $post_type, $menu, $submenu, $wp_version;
230
 
231
  if ( isset( $_GET['post'] ) )
232
+ $post_id = (int) esc_attr( $_GET['post'] );
233
  elseif ( isset( $_POST['post_ID'] ) )
234
+ $post_id = (int) esc_attr( $_POST['post_ID'] );
235
  else
236
  $post_id = 0;
237
 
adminimize_admin_bar.php.new DELETED
@@ -1,104 +0,0 @@
1
- <?php
2
- /**
3
- * setup admin bar
4
- */
5
-
6
- // test
7
- function _fb_filter_admin_bar() {
8
- global $wp_admin_bar;
9
-
10
- //get array with userroles
11
- $user_roles = get_all_user_roles();
12
- $user_roles_names = get_all_user_roles_names();
13
- $disabled_item_adm = '';
14
- $disabled_item_adm_hint = '';
15
-
16
- foreach ($user_roles as $role) {
17
- $disabled_menu_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_menu_'. $role .'_items');
18
- $disabled_submenu_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_submenu_'. $role .'_items');
19
- }
20
- ?>
21
- <div id="poststuff" class="ui-sortable meta-box-sortables">
22
- <div class="postbox">
23
- <div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
24
- <h3 class="hndle" id="config_menu"><?php _e('WP Admin Bar Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h3>
25
- <div class="inside">
26
- <br class="clear" />
27
-
28
- <table summary="config_menu" class="widefat">
29
- <thead>
30
- <tr>
31
- <th><?php _e('Admin Bar options - Menu, <span style=\"font-weight: 400;\">Submenu</span>', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
32
- <?php foreach ($user_roles_names as $role_name) { ?>
33
- <th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br/>' . $role_name; ?></th>
34
- <?php } ?>
35
- </tr>
36
- </thead>
37
- <tbody>
38
- <?php
39
- foreach ($wp_admin_bar->menu as $menu_item_id => $item) {
40
- if ( isset($item) && $item != '' ) {
41
-
42
- $x = 0;
43
- $class = '';
44
-
45
- foreach($user_roles as $role) {
46
- // checkbox checked
47
- if ( isset( $disabled_menu_[$role]) && in_array($menu_item_id, $disabled_menu_[$role]) ) {
48
- $checked_user_role_[$role] = ' checked="checked"';
49
- } else {
50
- $checked_user_role_[$role] = '';
51
- }
52
- }
53
-
54
- echo '<tr class="form-invalid">' . "\n";
55
- echo "\t" . '<th>' . $item['title'] . ' <span style="color:#ccc; font-weight:400;">(' . $menu_item_id . ')</span> </th>';
56
- foreach ($user_roles as $role) {
57
- echo "\t" . '<td class="num">' .
58
- '<input id="check_menu'. $role . $x .'" type="checkbox"' . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_menu_'. $role .'_items[]" value="' . $item['title'] . '" />'
59
- . '</td>' . "\n";
60
- }
61
- echo '</tr>';
62
-
63
- if ( !isset($item['children']) )
64
- continue;
65
-
66
- // submenu items
67
- foreach ( $item['children'] as $subitem ) {
68
- $class = ( ' class="alternate"' == $class ) ? '' : ' class="alternate"';
69
- echo '<tr' . $class . '>' . "\n";
70
- foreach ($user_roles as $role) {
71
- if ( isset($disabled_submenu_[$role]) )
72
- $checked_user_role_[$role] = ( in_array($subitem['id'], $disabled_submenu_[$role] ) ) ? ' checked="checked"' : '';
73
- }
74
- echo '<td> &mdash; ' . $subitem['title'] . ' <span style="color:#ccc; font-weight: 400;">(' . $subitem['id'] . ')</span> </td>' . "\n";
75
- foreach ($user_roles as $role) {
76
- echo '<td class="num">
77
- <input id="check_menu'. $role.$x .'" type="checkbox"' . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_submenu_'. $role .'_items[]" value="' . $subitem['id'] . '" />' .
78
- '</td>' . "\n";
79
- }
80
- echo '</tr>' . "\n";
81
- $x++;
82
- }
83
- $x++;
84
- }
85
- }
86
- ?>
87
- </tbody>
88
- </table>
89
-
90
- <p id="submitbutton">
91
- <input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> &raquo;" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
92
- </p>
93
- <p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
94
-
95
- </div>
96
- </div>
97
- </div>
98
-
99
- <?php
100
- //$wp_admin_bar->remove_menu('edit-my-profile');
101
- }
102
- add_action('wp_before_admin_bar_render', '_fb_filter_admin_bar');
103
-
104
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
adminimize_page.php CHANGED
@@ -118,7 +118,7 @@ function _mw_adminimize_options() {
118
  require_once('inc-options/minimenu.php');
119
  ?>
120
 
121
- <form name="backend_option" method="post" id="_mw_adminimize_options" action="?page=<?php echo $_GET['page'];?>" >
122
  <?php
123
  // Backend Options for all roles
124
  require_once('inc-options/backend_options.php');
118
  require_once('inc-options/minimenu.php');
119
  ?>
120
 
121
+ <form name="backend_option" method="post" id="_mw_adminimize_options" action="?page=<?php echo esc_attr( $_GET['page'] );?>" >
122
  <?php
123
  // Backend Options for all roles
124
  require_once('inc-options/backend_options.php');
inc-options/deinstall_options.php CHANGED
@@ -16,7 +16,7 @@ if ( ! function_exists( 'add_action' ) ) {
16
  <div class="inside">
17
 
18
  <p><?php _e('Use this option for clean your database from all entries of this plugin. When you deactivate the plugin, the deinstall of the plugin <strong>clean not</strong> all entries in the database.', FB_ADMINIMIZE_TEXTDOMAIN ); ?></p>
19
- <form name="deinstall_options" method="post" id="_mw_adminimize_options_deinstall" action="?page=<?php echo $_GET['page'];?>">
20
  <?php wp_nonce_field('mw_adminimize_nonce'); ?>
21
  <p id="submitbutton">
22
  <input type="submit" name="_mw_adminimize_deinstall" value="<?php _e('Delete Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> &raquo;" class="button-secondary" />
16
  <div class="inside">
17
 
18
  <p><?php _e('Use this option for clean your database from all entries of this plugin. When you deactivate the plugin, the deinstall of the plugin <strong>clean not</strong> all entries in the database.', FB_ADMINIMIZE_TEXTDOMAIN ); ?></p>
19
+ <form name="deinstall_options" method="post" id="_mw_adminimize_options_deinstall" action="?page=<?php echo esc_attr( $_GET['page'] );?>">
20
  <?php wp_nonce_field('mw_adminimize_nonce'); ?>
21
  <p id="submitbutton">
22
  <input type="submit" name="_mw_adminimize_deinstall" value="<?php _e('Delete Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> &raquo;" class="button-secondary" />
inc-options/im_export_options.php CHANGED
@@ -26,7 +26,7 @@ if ( ! function_exists( 'add_action' ) ) {
26
  </form>
27
 
28
  <h4><?php _e('Import', FB_ADMINIMIZE_TEXTDOMAIN ) ?></h4>
29
- <form name="import_options" enctype="multipart/form-data" method="post" action="?page=<?php echo $_GET['page'];?>">
30
  <?php wp_nonce_field('mw_adminimize_nonce'); ?>
31
  <p><?php _e('Choose a Adminimize (<em>.seq</em>) file to upload, then click <em>Upload file and import</em>.', FB_ADMINIMIZE_TEXTDOMAIN ) ?></p>
32
  <p>
26
  </form>
27
 
28
  <h4><?php _e('Import', FB_ADMINIMIZE_TEXTDOMAIN ) ?></h4>
29
+ <form name="import_options" enctype="multipart/form-data" method="post" action="?page=<?php echo esc_attr( $_GET['page'] ); ?>">
30
  <?php wp_nonce_field('mw_adminimize_nonce'); ?>
31
  <p><?php _e('Choose a Adminimize (<em>.seq</em>) file to upload, then click <em>Upload file and import</em>.', FB_ADMINIMIZE_TEXTDOMAIN ) ?></p>
32
  <p>
inc-options/theme_options.php CHANGED
@@ -17,7 +17,7 @@ if ( ! function_exists( 'add_action' ) ) {
17
  <br class="clear" />
18
 
19
  <?php if ( ! isset($_POST['_mw_adminimize_action']) || !($_POST['_mw_adminimize_action'] == '_mw_adminimize_load_theme') ) { ?>
20
- <form name="set_theme" method="post" id="_mw_adminimize_set_theme" action="?page=<?php echo $_GET['page'];?>" >
21
  <?php wp_nonce_field('mw_adminimize_nonce'); ?>
22
  <p><?php _e('For better peformance with many users on your blog; load only userlist, when you will change the theme options for users.', FB_ADMINIMIZE_TEXTDOMAIN ); ?></p>
23
  <p id="submitbutton">
@@ -27,7 +27,7 @@ if ( ! function_exists( 'add_action' ) ) {
27
  </form>
28
  <?php }
29
  if ( isset($_POST['_mw_adminimize_action']) && ($_POST['_mw_adminimize_action'] == '_mw_adminimize_load_theme') ) { ?>
30
- <form name="set_theme" method="post" id="_mw_adminimize_set_theme" action="?page=<?php echo $_GET['page'];?>" >
31
  <?php wp_nonce_field('mw_adminimize_nonce'); ?>
32
  <table class="widefat">
33
  <thead>
17
  <br class="clear" />
18
 
19
  <?php if ( ! isset($_POST['_mw_adminimize_action']) || !($_POST['_mw_adminimize_action'] == '_mw_adminimize_load_theme') ) { ?>
20
+ <form name="set_theme" method="post" id="_mw_adminimize_set_theme" action="?page=<?php echo esc_attr( $_GET['page'] ); ?>" >
21
  <?php wp_nonce_field('mw_adminimize_nonce'); ?>
22
  <p><?php _e('For better peformance with many users on your blog; load only userlist, when you will change the theme options for users.', FB_ADMINIMIZE_TEXTDOMAIN ); ?></p>
23
  <p id="submitbutton">
27
  </form>
28
  <?php }
29
  if ( isset($_POST['_mw_adminimize_action']) && ($_POST['_mw_adminimize_action'] == '_mw_adminimize_load_theme') ) { ?>
30
+ <form name="set_theme" method="post" id="_mw_adminimize_set_theme" action="?page=<?php echo esc_attr( $_GET['page'] ); ?>" >
31
  <?php wp_nonce_field('mw_adminimize_nonce'); ?>
32
  <table class="widefat">
33
  <thead>
inc-setup/dashboard.php CHANGED
File without changes
languages/adminimize-bg_BG.mo CHANGED
File without changes
languages/adminimize-bg_BG.po CHANGED
File without changes
languages/adminimize-ga_IR.mo CHANGED
File without changes
languages/adminimize-ga_IR.po CHANGED
File without changes
languages/adminimize-hi_IN.mo CHANGED
File without changes
languages/adminimize-hi_IN.po CHANGED
File without changes
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Bueltge
3
  Donate link: http://bueltge.de/wunschliste/
4
  Tags: color, scheme, theme, admin, dashboard, color scheme, plugin, interface, ui, metabox, hide, editor, minimal, menu, customization, interface, administration, lite, light, usability, lightweight, layout, zen
5
  Requires at least: 2.5
6
- Tested up to: 3.3-beta2
7
- Stable tag: 1.7.21
8
 
9
  Adminimize is a WordPress plugin that lets you hide 'unnecessary' items from the WordPress backend and many many more ...
10
 
@@ -113,6 +113,9 @@ See on [the official website](http://bueltge.de/wordpress-admin-theme-adminimize
113
  1. Adminimize Theme how in WordPress 2.3
114
 
115
  == Changelog ==
 
 
 
116
  = v1.7.21 =
117
  * SORRY: i had an svn bug; here the cimplete version
118
  * no changes; only a new commit to svn
3
  Donate link: http://bueltge.de/wunschliste/
4
  Tags: color, scheme, theme, admin, dashboard, color scheme, plugin, interface, ui, metabox, hide, editor, minimal, menu, customization, interface, administration, lite, light, usability, lightweight, layout, zen
5
  Requires at least: 2.5
6
+ Tested up to: 3.3-beta4
7
+ Stable tag: 1.7.22
8
 
9
  Adminimize is a WordPress plugin that lets you hide 'unnecessary' items from the WordPress backend and many many more ...
10
 
113
  1. Adminimize Theme how in WordPress 2.3
114
 
115
  == Changelog ==
116
+ = v1.7.22 =
117
+ * Security fix for $_GET on the admin-settings-page
118
+
119
  = v1.7.21 =
120
  * SORRY: i had an svn bug; here the cimplete version
121
  * no changes; only a new commit to svn
screenshot-1.png CHANGED
File without changes
screenshot-2.png CHANGED
File without changes
screenshot-3.png CHANGED
File without changes
screenshot-4.png CHANGED
File without changes
screenshot-5.png CHANGED
File without changes
screenshot-6.png CHANGED
File without changes
screenshot-7.png CHANGED
File without changes