version;endforeach; // Sync Configuration if($atb_version!=$atb_db_version) atb_activate(1); // Run dbDelta upgrade // Update Configuration if(!empty($_POST['atb_config']) && check_admin_referer('atb_config','atb_config')) { foreach($option_name as $index=>$option) $delete_config=atb_r("DELETE FROM wp_atb_options WHERE option_name='".$option_name[$index]."'; "); reset($option_name); foreach($option_name as $index=>$option) $insert_config=atb_r("INSERT INTO wp_atb_options (option_name,option_value) VALUES('".$option."','".$option_value[$index]."'); "); $input_saved++; } // Get Configuration $get_config=atb_r("SELECT option_name,option_value FROM wp_atb_options;"); $not_set=''; if($get_config): foreach ($get_config as $row): if($row->option_name=='disable_visual_editor') $disable_visual_editor=$row->option_value; if($row->option_name=='disable_visual_editor_role') $disable_visual_editor_role=$row->option_value; if($row->option_name=='disable_visual_editor_role_exclude') $disable_visual_editor_role_exclude=$row->option_value; if($row->option_name=='disable_visual_editor_post') $disable_visual_editor_post=$row->option_value; if($row->option_name=='disable_visual_editor_post_exclude') $disable_visual_editor_post_exclude=$row->option_value; if($row->option_name=='hide_new_btn') $hide_new_btn=$row->option_value; if($row->option_name=='hide_new_btn_role') $hide_new_btn_role=$row->option_value; if($row->option_name=='hide_new_btn_role_exclude') $hide_new_btn_role_exclude=$row->option_value; if($row->option_name=='hide_new_btn_post') $hide_new_btn_post=$row->option_value; if($row->option_name=='hide_new_btn_post_exclude') $hide_new_btn_post_exclude=$row->option_value; if($row->option_name=='hide_bulk_action') $hide_bulk_action=$row->option_value; if($row->option_name=='hide_bulk_action_role') $hide_bulk_action_role=$row->option_value; if($row->option_name=='hide_bulk_action_role_exclude') $hide_bulk_action_role_exclude=$row->option_value; if($row->option_name=='hide_bulk_action_post') $hide_bulk_action_post=$row->option_value; if($row->option_name=='hide_bulk_action_post_exclude') $hide_bulk_action_post_exclude=$row->option_value; if($row->option_name=='limit_revisions') $limit_revisions=$row->option_value; if($row->option_name=='limit_revisions_count') $limit_revisions_count=$row->option_value; if($row->option_name=='limit_revisions_post') $limit_revisions_post=$row->option_value; if($row->option_name=='limit_revisions_post_exclude') $limit_revisions_post_exclude=$row->option_value; if($row->option_name=='disable_heartbeat') $disable_heartbeat=$row->option_value; if($row->option_name=='disable_heartbeat_pagetype') $disable_heartbeat_pagetype=$row->option_value; if($row->option_name=='disable_heartbeat_pagetype_exclude') $disable_heartbeat_pagetype_exclude=$row->option_value; if($row->option_name=='disable_heartbeat_post') $disable_heartbeat_post=$row->option_value; if($row->option_name=='disable_heartbeat_post_exclude') $disable_heartbeat_post_exclude=$row->option_value; if($row->option_name=='limit_usereditor_role') $limit_usereditor_role=$row->option_value; if($row->option_name=='limit_usereditor_role_role') $limit_usereditor_role_role=$row->option_value; if($row->option_name=='limit_usereditor_role_role_exclude') $limit_usereditor_role_role_exclude=$row->option_value; if($row->option_name=='limit_usereditor_hiderole_role') $limit_usereditor_hiderole_role=$row->option_value; if($row->option_name=='limit_img_size') $limit_img_size=$row->option_value; if($row->option_name=='limit_img_size_role') $limit_img_size_role=$row->option_value; if($row->option_name=='limit_img_size_role_exclude') $limit_img_size_role_exclude=$row->option_value; if($row->option_name=='limit_img_size_kb') $limit_img_size_kb=$row->option_value; if($row->option_name=='password_reset_link') $password_reset_link=$row->option_value; if($row->option_name=='password_reset_link_role') $password_reset_link_role=$row->option_value; if($row->option_name=='password_reset_link_role_exclude') $password_reset_link_role_exclude=$row->option_value; if($row->option_name=='disable_notices') $disable_notices=$row->option_value; if($row->option_name=='disable_notices_role') $disable_notices_role=$row->option_value; if($row->option_name=='disable_notices_role_exclude') $disable_notices_role_exclude=$row->option_value; if($row->option_name=='page_hit') $page_hit=$row->option_value; if($row->option_name=='page_hit_role') $page_hit_role=$row->option_value; if($row->option_name=='page_hit_role_exclude') $page_hit_role_exclude=$row->option_value; if($row->option_name=='page_hit_keep') $page_hit_keep=$row->option_value; if($row->option_name=='editor_warning') $editor_warning=$row->option_value; if($row->option_name=='editor_warning_role') $editor_warning_role=$row->option_value; if($row->option_name=='editor_warning_role_exclude') $editor_warning_role_exclude=$row->option_value; if($row->option_name=='dual_auth') $dual_auth=$row->option_value; if($row->option_name=='dual_auth_role') $dual_auth_role=$row->option_value; if($row->option_name=='dual_auth_role_exclude') $dual_auth_role_exclude=$row->option_value; if($row->option_name=='dual_auth_ip_exclude') $dual_auth_ip_exclude=$row->option_value; if($row->option_name=='disable_wpautop') $disable_wpautop=$row->option_value; if($row->option_name=='disable_wpautop_post') $disable_wpautop_post=$row->option_value; if($row->option_name=='disable_wpautop_post_exclude') $disable_wpautop_post_exclude=$row->option_value; if($row->option_name=='hide_survey') $hide_survey=$row->option_value; endforeach; if($page_hit>0) r("CREATE TABLE IF NOT EXISTS wp_atb_pagehits (hit_id INT NOT NULL AUTO_INCREMENT ,date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ,ip VARCHAR(191) NULL ,userid INT ,url VARCHAR(500) ,referrer VARCHAR(500) ,PRIMARY KEY (hit_id)); "); $atb_setup=0; else: $atb_setup=1; $not_set="
⚠ Choose an option to proceed
"; endif; if(!isset($disable_visual_editor)) $disable_visual_editor=''; if(!isset($disable_visual_editor_role_exclude)) $disable_visual_editor_role_exclude=0; //new if(!isset($disable_visual_editor_role)) $disable_visual_editor_role='*All'; if(!isset($disable_visual_editor_post_exclude)) $disable_visual_editor_post_exclude=0; //new if(!isset($disable_visual_editor_post)) $disable_visual_editor_post='*All'; if(!isset($hide_new_btn)) $hide_new_btn=''; if(!isset($hide_new_btn_role_exclude)) $hide_new_btn_role_exclude=1; //new if(!isset($hide_new_btn_role)) $hide_new_btn_role='administrator'; if(!isset($hide_new_btn_post_exclude)) $hide_new_btn_post_exclude=0; //new if(!isset($hide_new_btn_post)) $hide_new_btn_post='*All'; if(!isset($hide_bulk_action)) $hide_bulk_action=''; if(!isset($hide_bulk_action_role_exclude)) $hide_bulk_action_role_exclude=1; //new if(!isset($hide_bulk_action_role)) $hide_bulk_action_role='administrator'; if(!isset($hide_bulk_action_post_exclude)) $hide_bulk_action_post_exclude=0; //new if(!isset($hide_bulk_action_post)) $hide_bulk_action_post='*All'; if(!isset($disable_heartbeat)) $disable_heartbeat=''; if(!isset($disable_heartbeat_pagetype)) $disable_heartbeat_pagetype='Public'; if(!isset($disable_heartbeat_pagetype_exclude)) $disable_heartbeat_pagetype_exclude=0; if(!isset($disable_heartbeat_post)) $disable_heartbeat_post='*All'; if(!isset($disable_heartbeat_post_exclude)) $disable_heartbeat_post_exclude=1; if(!isset($limit_revisions)) $limit_revisions=''; if(!isset($limit_revisions_count)) $limit_revisions_count=20; if(!isset($limit_revisions_post_exclude)) $limit_revisions_post_exclude=0; //new if(!isset($limit_revisions_post)) $limit_revisions_post='*All'; if(!isset($limit_usereditor_role)) $limit_usereditor_role=''; if(!isset($limit_usereditor_role_role_exclude)) $limit_usereditor_role_role_exclude=1; if(!isset($limit_usereditor_role_role)) $limit_usereditor_role_role='administrator'; if(!isset($limit_usereditor_hiderole_role)) $limit_usereditor_hiderole_role='administrator'; if(!isset($password_reset_link)) $password_reset_link=''; if(!isset($password_reset_link_role_exclude)) $password_reset_link_role_exclude=0; //new if(!isset($password_reset_link_role)) $password_reset_link_role='*All'; if(!isset($disable_notices)) $disable_notices=''; if(!isset($disable_notices_role_exclude)) $disable_notices_role_exclude=1; if(!isset($disable_notices_role)) $disable_notices_role='administrator'; if(!isset($limit_img_size)) $limit_img_size=0; if(!isset($limit_img_size_role_exclude)) $limit_img_size_role_exclude=0; if(!isset($limit_img_size_role)) $limit_img_size_role='*All'; if(!isset($limit_img_size_kb)) $limit_img_size_kb='512'; if(!isset($page_hit)) $page_hit=0; if(!isset($page_hit_role_exclude)) $page_hit_role_exclude=0; if(!isset($page_hit_role)) $page_hit_role='*All'; if(!isset($page_hit_keep)) $page_hit_keep=1; if(!isset($editor_warning)) $editor_warning=0; if(!isset($editor_warning_role_exclude)) $editor_warning_role_exclude=0; if(!isset($editor_warning_role)) $editor_warning_role='*All'; if(!isset($dual_auth)) $dual_auth=0; if(!isset($dual_auth_role_exclude)) $dual_auth_role_exclude=1; if(!isset($dual_auth_role)) $dual_auth_role='administrator'; if(!isset($dual_auth_ip_exclude)) $dual_auth_ip_exclude=''; if(!isset($disable_wpautop)) $disable_wpautop=0; if(!isset($disable_wpautop_post)) $disable_wpautop_post='*All'; if(!isset($disable_wpautop_post_exclude)) $disable_wpautop_post_exclude=0; if(!isset($hide_survey)) $hide_survey='0'; $phv=0; if(atb_is_path('phv=')) if($_GET['phv']>0) $phv=1; ?>
'>


0) { ?>
Return to Admin
Support & Diagnostics

Configuration
Path
WP Version
PHP Version
MYSQL Version
Admin Toolbox Version
Admin Toolbox db

Settings
Disabled visual editor: , role , role_exclude , post , post_exclude
Hide new button: , role , role_exclude , post , post_exclude
Hide bulk action: , role , role_exclude , post , post_exclude
Limit revisions: , count , post , post_exclude
Disable heartbeat: , pagetype , pagetype_exclude , post , post_exclude
Limit user editor: , role , role_exclude , hiderole
Limit image size: , role , role_exclude , size_kb
Password reset: , role , role_exclude
Disable notices: , role , role_exclude
Page hit: , role , role_exclude , keep_data
Editor warning: , role , role_exclude
Dual auth: , role , role_exclude , ip_exclude
Disable wpautop: , post , post_exclude
survey

Please provide diagnostics when submitting issues.
contact support
Get Admin Toolbox Pro

Features
To upgrade, please agree to the following:
I've ' target='_blank'>checked for updates. My existing version of Admin Toolbox is current.
>I understand the PRO terms & conditions.
Thanks for using Pro!
Purchase Pro
0) atb_view_summary(); if($phv>0) atb_view_hits();?>
'>
⚙ Settings

Feature Status Condition One Condition Two
Disable Visual Editor
Edit posts without a visual preview. Stop the TinyMCE visual editor from reformatting the code.
style='pointer-events:none;opacity:.3'>
style='pointer-events:none;opacity:.3'>
Hide New Post Button
Hide new post buttons. This visually hides the button, it does not remove functionality.
style='pointer-events:none;opacity:.3'>
style='pointer-events:none;opacity:.3'>
Hide Bulk Actions
Hide list bulk actions, quick edit, and delete options. This features hides these actions only in lists, it does not remove functionality.
style='pointer-events:none;opacity:.3'>
style='pointer-events:none;opacity:.3'>
Limit Heartbeat
Limit background resources used for revision tracking and session management.
style='pointer-events:none;opacity:.3'>
style='pointer-events:none;opacity:.3'>
Limit Revisions
Limit excessive accumulation of revisions by post type. By default, WordPress keeps infinite revisions. Enabling this option deletes revisions older than the number selected.
style='pointer-events:none;opacity:.3'> style='pointer-events:none;opacity:.3'>
Hide Roles
Select roles to hide in the user editor. Limit roles that have access to other roles.
style='pointer-events:none;opacity:.3'>
style='pointer-events:none;opacity:.3'>
Limit Media Size
Set the maximum size for new images uploaded via the media library.
style='pointer-events:none;opacity:.3'>
style='pointer-events:none;opacity:.3'>
Two-Factor Authentication (2FA)
2FA is an extra layer of security that requires a physical token upon login. Token is delivered via email with future plans to provide optional delivery by text.
style='pointer-events:none;opacity:.3'>
Exclude IPs from 2FA e.g.
Page Visit Tracking
Capture Page Visits by role in last 12 months. Filter records by date, user & URL.
style='pointer-events:none;opacity:.3'>
style='pointer-events:none;opacity:.3'>
PHP Editor Warning
Add an onsubmit warning to the Appearance > Editor that emphasizes the risk of editing live PHP files
style='pointer-events:none;opacity:.3'>
Email Password Reset
Force resets by emailed link only. Do not allow users to edit other users passwords.
Disable Notices
Disable all update-related notifications in WordPress.
style='pointer-events:none;opacity:.3'>
Disable Auto-formatting (WPautop)
WordPress by default replaces double line breaks with <p> tags, and single line breaks with <br> tags. Disable wpautop by post type.
style='pointer-events:none;opacity:.3'>
> ' onclick="atb_change('atb_config',2,2); return false;">
Saved