version;endforeach; $db_config_mode=$wpdb->get_results("SELECT @@sql_safe_updates as mode;",OBJECT); if($db_config_mode) foreach($db_config_mode as $row):$config_mode=$row->mode;endforeach; function atb_pro_path($slug,$type) { global $atb_pro_version; global $atb_version_type; $pro_path=str_replace($slug,"$slug-$type",plugin_dir_path( __FILE__ )).'pro_functions.php'; if(is_plugin_active("$slug-$type/pro_functions.php")) if(file_exists($pro_path)) {include_once $pro_path; $atb_pro_version=get_option('atb_pro_version'); if($atb_pro_version>0) $atb_version_type='PRO';} } // 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')) { //print_r($option_name); print_r($option_value); 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) { if(isset($option_value[$index])) $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=='hide_survey') $hide_survey=$row->option_value; if($row->option_name=='page_hit_keep') $settings_keep=$row->option_value; if($row->option_name=='settings_keep') $settings_keep=$row->option_value; if($row->option_name=='match_redirect') $match_redirect=$row->option_value; if($row->option_name=='https_redirect') $https_redirect=$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_page_exclude') $page_hit_page_exclude=$row->option_value; if($row->option_name=='page_hit_page_frag') $page_hit_page_frag=$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_locs') $disable_locs=$row->option_value; if($row->option_name=='disable_locs_ctry') $disable_locs_ctry=$row->option_value; if($row->option_name=='disable_locs_exclude') $disable_locs_exclude=$row->option_value; if($row->option_name=='disable_locs_ip_exclude') $disable_locs_ip_exclude=$row->option_value; if($row->option_name=='sec_actions') $sec_actions=$row->option_value; if($row->option_name=='sec_actions_mute') $sec_actions_mute=$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=='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=='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=='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=='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=='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=='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=='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; endforeach; if($page_hit>0) atb_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_mode=0; else: $atb_setup_mode=1; $not_set="
⚠ Choose an option to proceed
"; endif; if(!isset($hide_survey)) $hide_survey='0'; if(!isset($settings_keep)) $settings_keep=''; if(!isset($match_redirect)) $match_redirect=''; if(!isset($https_redirect)) $https_redirect=''; if(!isset($page_hit)) $page_hit=0; if(!isset($page_hit_role)) $page_hit_role='*All'; if(!isset($page_hit_role_exclude)) $page_hit_role_exclude=0; if(!isset($page_hit_page_exclude)) $page_hit_page_exclude=1; if(!isset($page_hit_page_frag)) $page_hit_page_frag='admin-ajax wp-cron.php wc-ajax robots.txt'; if(!isset($dual_auth)) $dual_auth=0; if(!isset($dual_auth_role)) $dual_auth_role='administrator'; if(!isset($dual_auth_role_exclude)) $dual_auth_role_exclude=1; if(!isset($dual_auth_ip_exclude)) $dual_auth_ip_exclude=$_SERVER['REMOTE_ADDR']; if(!isset($disable_locs)) $disable_locs=0; if(!isset($disable_locs_ctry)) $disable_locs_ctry='US'; if(!isset($disable_locs_exclude)) $disable_locs_exclude=1; if(!isset($disable_locs_ip_exclude)) $disable_locs_ip_exclude=$_SERVER['REMOTE_ADDR']; if(!isset($sec_actions)) $sec_actions=0; if(!isset($sec_actions_mute)) $sec_actions_mute=0; if(!isset($password_reset_link)) $password_reset_link=''; if(!isset($password_reset_link_role)) $password_reset_link_role='*All'; if(!isset($password_reset_link_role_exclude)) $password_reset_link_role_exclude=0; //new if(!isset($editor_warning)) $editor_warning=0; if(!isset($editor_warning_role)) $editor_warning_role='*All'; if(!isset($editor_warning_role_exclude)) $editor_warning_role_exclude=0; if(!isset($disable_notices)) $disable_notices=''; if(!isset($disable_notices_role)) $disable_notices_role='administrator'; if(!isset($disable_notices_role_exclude)) $disable_notices_role_exclude=1; if(!isset($hide_bulk_action)) $hide_bulk_action=''; if(!isset($hide_bulk_action_role)) $hide_bulk_action_role='administrator'; if(!isset($hide_bulk_action_role_exclude)) $hide_bulk_action_role_exclude=1; //new if(!isset($hide_bulk_action_post)) $hide_bulk_action_post='*All'; if(!isset($hide_bulk_action_post_exclude)) $hide_bulk_action_post_exclude=0; //new if(!isset($hide_new_btn)) $hide_new_btn=''; if(!isset($hide_new_btn_role)) $hide_new_btn_role='administrator'; if(!isset($hide_new_btn_role_exclude)) $hide_new_btn_role_exclude=1; //new if(!isset($hide_new_btn_post)) $hide_new_btn_post='*All'; if(!isset($hide_new_btn_post_exclude)) $hide_new_btn_post_exclude=0; //new if(!isset($disable_visual_editor)) $disable_visual_editor=''; if(!isset($disable_visual_editor_role)) $disable_visual_editor_role='*All'; if(!isset($disable_visual_editor_role_exclude)) $disable_visual_editor_role_exclude=0; //new if(!isset($disable_visual_editor_post)) $disable_visual_editor_post='*All'; if(!isset($disable_visual_editor_post_exclude)) $disable_visual_editor_post_exclude=0; //new 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_usereditor_role)) $limit_usereditor_role=''; if(!isset($limit_usereditor_hiderole_role)) $limit_usereditor_hiderole_role='administrator'; 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_img_size)) $limit_img_size=0; if(!isset($limit_img_size_role)) $limit_img_size_role='*All'; if(!isset($limit_img_size_role_exclude)) $limit_img_size_role_exclude=0; if(!isset($limit_img_size_kb)) $limit_img_size_kb='512'; 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; $phv=0; if(atb_is_path('phv=')) if($_GET['phv']>0) $phv=1; ?>
'>


0) { ?>
Return to Admin
Support & Diagnostics

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

Settings
Match redirect:
HTTPS redirect:
Page hit: , role , role_exclude , settings_keep
Dual auth: , role , role_exclude , ip_exclude
Hide bulk action: , role , role_exclude , post , post_exclude
Hide new button: , role , role_exclude , post , post_exclude
Disabled visual editor: , role , role_exclude , 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
Editor warning: , role , role_exclude
Password reset: , role , role_exclude
Disable notices: , role , role_exclude
Disable wpautop: , post , post_exclude
Geo location: , ctry , 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($atb_version_type); if($phv>0 && function_exists('atb_view_hits')) atb_view_hits();?>
'> >
Settings

Feature Status Condition One Condition Two
Data
On uninstall...
URL Redirect
Always redirect to if the typed URL does not match. Update your domain in '>WP Settings.
Force HTTPS
Always Redirect to HTTPS (Use when a valid SSL certificate is installed on ).
Capture Site Visits
Capture site visit statistics, chart traffic performance.

Pro active
Now capturing visitors.
&phv=1'>View recent hits.
Unlock Pro to view itemized records by date, user & URL.
style='pointer-events:none;opacity:.3'>
style='pointer-events:none;opacity:.3'>
URL fragments e.g. -ajax.php
Two-Factor Authentication (2FA)
2FA requires a physical token upon login.

Pro active
Upon next 2FA login, users will be asked to provide a mobile number.
Unlock Pro for 2FA via text.
style='pointer-events:none;opacity:.3'>
Allow these IPs to Bypass 2FA
e.g.
Geo-Location Targeting
Limit features in target countries.

Pro active
Log-ins and post-requests from target countries are now blocked.
Unlock Pro for geo-location targeting.
style='pointer-events:none;opacity:.3'> style='pointer-events:none;opacity:.3'>
style='pointer-events:none;opacity:.3'> Allow these IPs to Bypass Geo-Location
e.g.
Security Actions
Auto-blacklist brute force hits and malicious login/injection attempts.

Pro active
For full feature blocking, install WP Security.
Monitor IPs on the ' target='_blank'>Permanent Block List Unlock Pro to enable automatic security actions.
style='pointer-events:none;opacity:.3'> style='pointer-events:none;opacity:.3'>
Email Password Reset
Force resets by emailed link only. Do not allow users to edit other users passwords.
PHP Editor Warning
Add an onsubmit warning to the Appearance > Theme Editor that emphasizes the risk of editing live PHP files
style='pointer-events:none;opacity:.3'>
Disable Notices
Disable all update-related notifications in WordPress.
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'>
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'>
Disable Visual Preview
Edit posts without in-page previews, TinyMCE visual editor tools, or Gutenberg blocks.
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'>
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'>
Disable Auto-formatting in the Classic Editor (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'>
Saved