Changeset 2542245
- Timestamp:
- 06/03/2021 08:53:39 PM (5 years ago)
- Location:
- wp-killswitch
- Files:
-
- 21 added
- 2 edited
-
tags/0.1.0 (added)
-
tags/0.1.0/api (added)
-
tags/0.1.0/api/callbacks (added)
-
tags/0.1.0/api/callbacks/remote.php (added)
-
tags/0.1.0/api/remote.php (added)
-
tags/0.1.0/inc (added)
-
tags/0.1.0/inc/admin-notice.php (added)
-
tags/0.1.0/inc/frontend.php (added)
-
tags/0.1.0/inc/hide-plugin.php (added)
-
tags/0.1.0/readme.txt (added)
-
tags/0.1.0/screenshot-1.png (added)
-
tags/0.1.0/screenshot-2.png (added)
-
tags/0.1.0/wp-killswitch.php (added)
-
trunk/api (added)
-
trunk/api/callbacks (added)
-
trunk/api/callbacks/remote.php (added)
-
trunk/api/remote.php (added)
-
trunk/inc (added)
-
trunk/inc/admin-notice.php (added)
-
trunk/inc/frontend.php (added)
-
trunk/inc/hide-plugin.php (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wp-killswitch.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-killswitch/trunk/readme.txt
r2361961 r2542245 1 1 === WP Killswitch === 2 2 Contributors: graphicscove 3 Donate link: http ://graphicscove.com/3 Donate link: https://graphicscove.com 4 4 Tags: css, killswitch 5 5 Requires at least: 4.0 6 Tested up to: 5. 5.07 Stable tag: 0. 0.36 Tested up to: 5.7.2 7 Stable tag: 0.1.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 WP Killswitch lets you non-destructively white out a difficult client's website while this plugin is active.11 WP Killswitch lets you non-destructively white out a Wordpress website while this plugin is active (recommended as an mu-plugin). 12 12 13 13 == Description == 14 14 15 WP Killswitch lets you non-destructively white out a difficult client's website while this plugin is active. It is suggested that this plugin should only be used as a last resort when negotiations with a particularly difficult client fail.15 WP Killswitch lets you non-destructively white out a Wordpress website while this plugin is active (recommended as an mu-plugin). 16 16 17 To stop the client disabling/deleting this plugin it is recommended you add this to the mu-plugins directory via FTP.17 To prevent anyone disabling or deleting this plugin it is recommended you add this to the mu-plugins directory via FTP. 18 18 19 19 When activated this plugin will white out the front end of the website and make it inaccessible for visitors. The admin panel is still visible at your admin URL. This plugin will also display a warning notification in the admin telling the client/administrator to contact their webmaster. 20 20 21 Please remember to delete this plugin after you have successfully negotiated with the client. 22 23 If you are using this plugin for other purposes - to hide a website while you work on fixing something for example - please note that by initiating a white out on the front end of a website, you are not deleting or turning off the website. The contents of the site will still be visible to search engines and text only browsers. Any user can still see the content by viewing the source code of the page. 21 If you are using this plugin to hide a website while you work on fixing something for example - please note that by initiating a white out on the front end of a website, you are not deleting or turning off the website. The contents of the site will still be visible to search engines and text only browsers. Any user can still see the content by viewing the source code of the page. 24 22 25 23 == Installation == … … 28 26 2. As mu-plugins are automatically activated you're done! Contact your client and resolve the situation asap! 29 27 30 == Frequently Asked Questions ==31 32 = Why use WP Killswitch =33 34 Sometimes people are difficult and there's no way around that. By temporarily making the site inaccessible a difficult client should listen to you and open a path for negotiation.35 36 28 == Screenshots == 37 29 38 1. What the clientsees on the front end30 1. What the user sees on the front end 39 31 2. The warning message displayed in the admin 40 32 41 33 == Changelog == 34 35 = 0.1.0 = 36 * Initial launch of the remote version 37 * Updated compatible version number 42 38 43 39 = 0.0.3 = … … 52 48 = 0.0.1 = 53 49 * First build 50 51 == Remote == 52 53 If you need to activate WP Killswitch remotely for whatever reason, you can register your site at https://wpkillswitch.io -
wp-killswitch/trunk/wp-killswitch.php
r2361961 r2542245 1 1 <?php /* 2 2 Plugin Name: WP Killswitch 3 Plugin URI: http://graphicscove.com 4 Description: WP Killswitch lets you non-destructively white out a difficult client's website while this plugin is active. 5 Version: 0.0.3 3 Plugin URI: https://wpkillswitch.io 4 GitHub Plugin URI: https://github.com/graphicscove/wp-killswitch 5 GitHub Plugin URI: https://github.com/graphicscove/wp-killswitch 6 Description: WP Killswitch lets you non-destructively white out a Wordpress website. 7 Version: 0.1.0 6 8 Author: Steven Noble 7 Author URI: http://graphicscove.com 8 License: GPLv2 or later 9 Author URI: https://graphicscove.com 9 10 */ 10 11 11 / * Hides all content on the frontend when activated */12 add_action('wp_head','hook_killswitch');12 // Load API 13 include( plugin_dir_path( __FILE__ ) . 'api/remote.php'); 13 14 14 function hook_killswitch() 15 { 16 $output="<style>body * { display: none !important; }</style>"; 17 echo $output; 18 } 19 20 /* Adds an administration notice for the client to contact the webmaster */ 21 function client_notice() { 22 ?> 23 <div class="error"> 24 <p>Warning: Your website is currently inaccessible, please contact your webmaster as soon as possible.</p> 25 </div> 26 <?php 27 } 28 add_action( 'admin_notices', 'client_notice' ); 15 // Load includes 16 include( plugin_dir_path( __FILE__ ) . 'inc/frontend.php'); 17 include( plugin_dir_path( __FILE__ ) . 'inc/admin-notice.php'); 18 include( plugin_dir_path( __FILE__ ) . 'inc/hide-plugin.php');
Note: See TracChangeset
for help on using the changeset viewer.