id = 'Permissions Setup'; $this->class = get_class($this); $this->order = -1; $this->level = Problem::LEVEL_WARNING; $this->status = false; $this->help = 'https://learn.getgrav.org/troubleshooting/permissions'; } public function process() { umask($umask = umask(022)); $msg = "Your default file umask is %s which %s"; if (($umask & 2) !== 2) { $this->msg = sprintf($msg, decoct($umask), 'is potentially dangerous'); $this->status = false; } else { $this->msg = sprintf($msg, decoct($umask), 'looks good!'); $this->status = true; } return $this; } }