Function CMSPermissionsScanner->set_path_patterns

Definitions

sources/file_permissions_check.php

  • Set paths patterns.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$sensitive_paths array No No [] N/A N/A A list of sensitive path regexps that really should have minimal read permission
$chmod_paths array No No [] N/A N/A A list of path regexps that should be chmodded as writable for non-suEXEC-style servers
$script_paths ?array No No Null N/A N/A A list of path regexps for scripts that need Unix execute permission (null: .sh files)
$skip_paths array No No [] N/A N/A A list of paths to skip

Preview

Code (PHP)

/**
 * Set paths patterns.
 *
 * @param  array $sensitive_paths A list of sensitive path regexps that really should have minimal read permission
 * @param  array $chmod_paths A list of path regexps that should be chmodded as writable for non-suEXEC-style servers
 * @param  ?array $script_paths A list of path regexps for scripts that need Unix execute permission (null: .sh files)
 * @param  array $skip_paths A list of paths to skip
 */

public function set_path_patterns(array $sensitive_paths = [], array $chmod_paths = [], ?array $script_paths = null, array $skip_paths = [])