Changeset 1876865
- Timestamp:
- 05/18/2018 03:01:51 AM (8 years ago)
- Location:
- lw-mwp-tools
- Files:
-
- 27 added
- 1 deleted
- 2 edited
-
tags/0.3.1 (deleted)
-
tags/0.3.6.1 (added)
-
tags/0.3.6.1/api.php (added)
-
tags/0.3.6.1/assets (added)
-
tags/0.3.6.1/assets/icon-128x128.png (added)
-
tags/0.3.6.1/assets/icon-256x256.png (added)
-
tags/0.3.6.1/assets/icon-alt.svg (added)
-
tags/0.3.6.1/assets/icon-menu.svg (added)
-
tags/0.3.6.1/assets/icon-test.svg (added)
-
tags/0.3.6.1/assets/icon.svg (added)
-
tags/0.3.6.1/assets/screenshot-1.png (added)
-
tags/0.3.6.1/assets/screenshot-2.png (added)
-
tags/0.3.6.1/assets/screenshot-3.png (added)
-
tags/0.3.6.1/css (added)
-
tags/0.3.6.1/css/chartist.min.css (added)
-
tags/0.3.6.1/css/monitor.css (added)
-
tags/0.3.6.1/images (added)
-
tags/0.3.6.1/images/pct.png (added)
-
tags/0.3.6.1/images/pixel.png (added)
-
tags/0.3.6.1/images/sec.png (added)
-
tags/0.3.6.1/js (added)
-
tags/0.3.6.1/js/chartist.min.js (added)
-
tags/0.3.6.1/js/monitor.js (added)
-
tags/0.3.6.1/js/smoothie.min.js (added)
-
tags/0.3.6.1/lw-mwp-tools.php (added)
-
tags/0.3.6.1/monitor.php (added)
-
tags/0.3.6.1/readme.txt (added)
-
tags/0.3.6.1/uninstall.php (added)
-
trunk/lw-mwp-tools.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lw-mwp-tools/trunk/lw-mwp-tools.php
r1854382 r1876865 5 5 Description: Easy access to system logs and resource usage on the Liquid Web Managed WordPress Hosting Platform. 6 6 Author: Francis Smith 7 Version: 0.3.6 7 Version: 0.3.6.1 8 8 Author URI: https://github.com/fs1995 9 9 License: GPL2 … … 13 13 14 14 //check if we are on MWPv2 platform. this is not a thorough check, just seeing if the user php is running as begins with 's' then a number. 15 $is_lwmwp = 1; 16 if (PHP_OS !== "Linux") 17 $is_lwmwp = 0; 18 if (get_current_user()[0] !== 's') 19 $is_lwmwp = 0; 20 if (!is_numeric(get_current_user()[1])) 21 $is_lwmwp = 0; 22 if(!$is_lwmwp){ //If not on MWP: 23 delete_option('lwmwptools_update_interval'); //then cleanup db entry, 24 exit("This plugin requires the Liquid Web Managed WordPress platform."); //and prevent plugin from activating. 15 if(PHP_OS !== "Linux" || !preg_match('/^s[0-9]+/', get_current_user()) ){ //then not on MWPv2, 16 if(get_current_user() !== 'root'){ //but exclude deactivating if run as root. 17 delete_option('lwmwptools_update_interval'); //cleanup db entry, 18 exit("LW MWP Tools requires the Liquid Web Managed WordPress V2 platform. This plugin does not support the V3 or Managed WooCommerce platforms, as resource usage is irrelevant (load is distributed across multiple servers) and error/access logs are not accessible by the PHP user. You could also be receiving this error if you have migrated your site off the platform, in that case you can use this plugin instead: <a href=\"https://wordpress.org/plugins/servermonitor/\" target=\"_blank\">ServerMonitor</a> "); //and prevent plugin from activating nicely. 19 } 25 20 } 26 21 … … 136 131 137 132 function lwmwptools_monitorajax(){ 138 //global $wpdb; //provides access to db139 //$test = intval( $_POST['test'] );140 133 require 'api.php'; 141 134 wp_die(); //terminate immediately and return response -
lw-mwp-tools/trunk/readme.txt
r1854382 r1876865 4 4 Tags: liquidweb, liquid web, server info, monitor, debug 5 5 Requires at least: 3.4 6 Tested up to: 4.9. 46 Tested up to: 4.9.6 7 7 Stable tag: trunk 8 8 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.