piwik/plugins/Installation/SystemCheck.php
/**
     * This can be overriden to provide a Customised System Check.
     *
     * @api
     * @param $infos
     * @return mixed
     */
This can be overriden to provide a Customised System Check.
@api
@param $infos
@return mixed
This can be overriden to provide a Customised System Check . @api @param $infos @return mixed
public static function enrichSystemChecks($infos)
    {
        $infos['has_errors'] = false;
        $infos['has_warnings'] = false;
        if (in_array(0, $infos['directories']) 
            || !$infos['phpVersion_ok']
            || !empty($infos['missing_extensions'])
            || empty($infos['adapters'])
            || !empty($infos['missing_functions'])
        ) {
            $infos['has_errors'] = true;
        }
        if (   !empty($infos['missing_desired_extensions'])
            || !empty($infos['missing_desired_functions'])
            || !empty($infos['missing_settings'])
            || !$infos['pagespeed_module_disabled_ok']
            || !$infos['gd_ok']
            || !$infos['memory_ok']
            || !empty($infos['integrityErrorMessages'])
            || !$infos['timezone'] 
            || $infos['tracker_status'] != 0
            || $infos['is_nfs']
        ) {
            $infos['has_warnings'] = true;
        }
        return $infos;
    }
public static function enrichSystemChecks ( $ infos ) { $ infos [ 'has_errors' ] = false ; $ infos [ 'has_warnings' ] = false ; if ( in_array ( 0 , $ infos [ 'directories' ] ) || ! $ infos [ 'phpVersion_ok' ] || ! empty ( $ infos [ 'missing_extensions' ] ) || empty ( $ infos [ 'adapters' ] ) || ! empty ( $ infos [ 'missing_functions' ] ) ) { $ infos [ 'has_errors' ] = true ; } if ( ! empty ( $ infos [ 'missing_desired_extensions' ] ) || ! empty ( $ infos [ 'missing_desired_functions' ] ) || ! empty ( $ infos [ 'missing_settings' ] ) || ! $ infos [ 'pagespeed_module_disabled_ok' ] || ! $ infos [ 'gd_ok' ] || ! $ infos [ 'memory_ok' ] || ! empty ( $ infos [ 'integrityErrorMessages' ] ) || ! $ infos [ 'timezone' ] || $ infos [ 'tracker_status' ] != 0 || $ infos [ 'is_nfs' ] ) { $ infos [ 'has_warnings' ] = true ; } return $ infos ; }
This can be overriden to provide a Customised System Check.
This can be overriden to provide a Customised System Check .
// determine whether there are any errors/warnings from the checks done above // if a directory is not writable // if timezone support isn't available