Plugin Directory

Changeset 2757106


Ignore:
Timestamp:
07/15/2022 07:00:00 PM (4 years ago)
Author:
ehops32
Message:
  • Corrected a code warning about accessing an array
  • Added 4 more data points, will check to see if wp-content/debug.log, .htaccess, and .user.ini exist, and
  • then also, what is the value for FS_DIRECT path
Location:
sackson-web-data/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sackson-web-data/trunk/README.txt

    r2756107 r2757106  
    55Requires at least: 3.0.1
    66Tested up to: 6.0
    7 Stable tag: 1.1.3
     7Stable tag: 1.1.4
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    5151== Changelog ==
    5252
     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
    5358= 1.1.1 =
    5459* Changes to the readme file.
  • sackson-web-data/trunk/includes/class-sacksonweb-data-helper.php

    r2756107 r2757106  
    124124        $this->collected_data['current_user_id'] = @get_current_user_id();
    125125
    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;
    129131
    130132        $this->getBlogInfoArray();    // get_bloginfo, i.e. bunch of stuff.
     
    132134        $this->getDatabasePluginData();
    133135        $this->getSiteCoreData();
     136        $this->getFileSystemItems ();
    134137    }
    135138   
     
    218221    }
    219222
     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
    220261
    221262    /**
     
    226267        $fields = array(
    227268            'admin_email', 'template', 'users_can_register', 'blog_public', 'start_of_week',
    228             'permalink_structure', 'active_plugins', 'stylesheet', 'upload_path', 'uninstall_plugins',
     269            'permalink_structure', 'active_plugins', 'stylesheet', 'upload_path', 'upload_url_path', 'uninstall_plugins',
    229270            'auto_plugin_theme_update_emails', 'cron', 'auto_update_plugins', 'worker_migration_version', 'recently_activated', 'timezone_string',
    230271            /*'itsec-storage'*/
  • sackson-web-data/trunk/includes/class-sacksonweb-data-settings.php

    r2756107 r2757106  
    6666                $messages = array();
    6767
    68                 if ( 'yes' == $site_data['WP_DEBUG'] )
     68                if ( isset($site_data['WP_DEBUG']) && 'yes' == $site_data['WP_DEBUG'] )
    6969                {
    7070                    $messages[] = "I noticed that WP DEBUG is active.";
    7171                }
    72                 if ( 'yes' == $site_data['WP_DEBUG_LOG'] )
     72                if ( isset($site_data['WP_DEBUG_LOG']) && 'yes' == $site_data['WP_DEBUG_LOG'] )
    7373                {
    7474                    $messages[] = "I noticed that WP DEBUG LOG is on.";
    7575                }
    76                 if ( '0' == $site_data['blog_public'] )
     76                if ( isset($site_data['blog_public']) && '0' == $site_data['blog_public'] )
    7777                {
    7878                    $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  
    1010 *
    1111 * @link              http://data.sacksonweb.com/author
    12  * @since             1.1.3
     12 * @since             1.1.4
    1313 * @package           Sacksonweb_Data
    1414 *
     
    1717 * Plugin URI:        http://data.sacksonweb.com
    1818 * Description:       A tool to monitor security issues, performance issues, and Wordpress settings that should be changed.
    19  * Version:           1.1.3
     19 * Version:           1.1.4
    2020 * Author:            Eric Thornton
    2121 * Author URI:        http://data.sacksonweb.com/author
     
    3535 *
    3636 */
    37 define( 'SACKSONWEB_DATA_VERSION', '1.1.3' );
     37define( 'SACKSONWEB_DATA_VERSION', '1.1.4' );
    3838
    3939/**
Note: See TracChangeset for help on using the changeset viewer.