Changeset 2757106
- Timestamp:
- 07/15/2022 07:00:00 PM (4 years ago)
- Location:
- sackson-web-data/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (2 diffs)
-
includes/class-sacksonweb-data-helper.php (modified) (4 diffs)
-
includes/class-sacksonweb-data-settings.php (modified) (1 diff)
-
sacksonweb-data.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sackson-web-data/trunk/README.txt
r2756107 r2757106 5 5 Requires at least: 3.0.1 6 6 Tested up to: 6.0 7 Stable tag: 1.1. 37 Stable tag: 1.1.4 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 51 51 == Changelog == 52 52 53 = 1.1.4 = 54 * Corrected a code warning about accessing an array 55 * Added 4 more data points, will check to see if wp-content/debug.log, .htaccess, and .user.ini exist, and 56 * then also, what is the value for FS_DIRECT path 57 53 58 = 1.1.1 = 54 59 * Changes to the readme file. -
sackson-web-data/trunk/includes/class-sacksonweb-data-helper.php
r2756107 r2757106 124 124 $this->collected_data['current_user_id'] = @get_current_user_id(); 125 125 126 $this->collected_data['WP_DEBUG'] = WP_DEBUG ? 'yes' : 'no'; 127 $this->collected_data['WP_DEBUG_LOG'] = WP_DEBUG_LOG ? 'yes' : 'no'; 128 $this->collected_data['WP_DEBUG_DISPLAY'] = WP_DEBUG_DISPLAY ? 'yes' : 'no'; 126 // Environment variables 127 $this->collected_data['WP_DEBUG'] = WP_DEBUG ? 'y' : 'n'; 128 $this->collected_data['WP_DEBUG_LOG'] = WP_DEBUG_LOG ? 'y' : 'n'; 129 $this->collected_data['WP_DEBUG_DISPLAY'] = WP_DEBUG_DISPLAY ? 'y' : 'n'; 130 $this->collected_data['FS_METHOD'] = FS_METHOD; 129 131 130 132 $this->getBlogInfoArray(); // get_bloginfo, i.e. bunch of stuff. … … 132 134 $this->getDatabasePluginData(); 133 135 $this->getSiteCoreData(); 136 $this->getFileSystemItems (); 134 137 } 135 138 … … 218 221 } 219 222 223 /** 224 * 225 */ 226 function getFileSystemItems () 227 { 228 $this->collected_data['debug_log_exists'] = $this->doesDebugLogExist (); 229 $this->collected_data['htaccess_file_exists'] = $this->doesHtaccessFileExist (); 230 $this->collected_data['user_ini_file_exists'] = $this->doesUserIniFileExist (); 231 } 232 233 /** 234 * 235 */ 236 function doesDebugLogExist () 237 { 238 $debug_file_location = WP_CONTENT_DIR . '/debug.log'; 239 return file_exists($debug_file_location) ? 'y' : 'n'; 240 } 241 242 /** 243 * 244 */ 245 function doesHtaccessFileExist () 246 { 247 $debug_file_location = ABSPATH . '/.htaccess'; 248 return file_exists($debug_file_location) ? 'y' : 'n'; 249 } 250 251 /** 252 * 253 */ 254 function doesUserIniFileExist () 255 { 256 $debug_file_location = ABSPATH . '/.user.ini'; 257 return file_exists($debug_file_location) ? 'y' : 'n'; 258 } 259 260 220 261 221 262 /** … … 226 267 $fields = array( 227 268 'admin_email', 'template', 'users_can_register', 'blog_public', 'start_of_week', 228 'permalink_structure', 'active_plugins', 'stylesheet', 'upload_path', 'u ninstall_plugins',269 'permalink_structure', 'active_plugins', 'stylesheet', 'upload_path', 'upload_url_path', 'uninstall_plugins', 229 270 'auto_plugin_theme_update_emails', 'cron', 'auto_update_plugins', 'worker_migration_version', 'recently_activated', 'timezone_string', 230 271 /*'itsec-storage'*/ -
sackson-web-data/trunk/includes/class-sacksonweb-data-settings.php
r2756107 r2757106 66 66 $messages = array(); 67 67 68 if ( 'yes' == $site_data['WP_DEBUG'] )68 if ( isset($site_data['WP_DEBUG']) && 'yes' == $site_data['WP_DEBUG'] ) 69 69 { 70 70 $messages[] = "I noticed that WP DEBUG is active."; 71 71 } 72 if ( 'yes' == $site_data['WP_DEBUG_LOG'] )72 if ( isset($site_data['WP_DEBUG_LOG']) && 'yes' == $site_data['WP_DEBUG_LOG'] ) 73 73 { 74 74 $messages[] = "I noticed that WP DEBUG LOG is on."; 75 75 } 76 if ( '0' == $site_data['blog_public'] )76 if ( isset($site_data['blog_public']) && '0' == $site_data['blog_public'] ) 77 77 { 78 78 $messages[] = "I noticed the setting in WordPress to make the site (blog) publically available was not set."; -
sackson-web-data/trunk/sacksonweb-data.php
r2756107 r2757106 10 10 * 11 11 * @link http://data.sacksonweb.com/author 12 * @since 1.1. 312 * @since 1.1.4 13 13 * @package Sacksonweb_Data 14 14 * … … 17 17 * Plugin URI: http://data.sacksonweb.com 18 18 * Description: A tool to monitor security issues, performance issues, and Wordpress settings that should be changed. 19 * Version: 1.1. 319 * Version: 1.1.4 20 20 * Author: Eric Thornton 21 21 * Author URI: http://data.sacksonweb.com/author … … 35 35 * 36 36 */ 37 define( 'SACKSONWEB_DATA_VERSION', '1.1. 3' );37 define( 'SACKSONWEB_DATA_VERSION', '1.1.4' ); 38 38 39 39 /**
Note: See TracChangeset
for help on using the changeset viewer.