protected function checkPermissions($file, $permissions = '0444')
    {
        if (substr(sprintf('%o', fileperms($file)), -4) === $permissions) {
            return true;
        }

        $vars = array('%name' => $file, '%perm' => $permissions);
        return $this->translation->text('File %name is not secure. The file permissions must be %perm', $vars);
    }
protected function checkPermissions($file, $permissions = '0444')
    {
        if (substr(sprintf('%o', fileperms($file)), -4) === $permissions) {
            return true;
        }

        $vars = array('%name' => $file, '%perm' => $permissions);
        return $this->translation->text('File %name is not secure. The file permissions must be %perm', $vars);
    }
protected function checkPermissions ( $ file , $ permissions = '0444' ) { if ( substr ( sprintf ( '%o' , fileperms ( $ file ) ) , - 4 ) === $ permissions ) { return true ; } $ vars = array ( '%name' => $ file , '%perm' => $ permissions ) ; return $ this -> translation -> text ( 'File %name is not secure. The file permissions must be %perm' , $ vars ) ; }
Checks file permissions
@param string $file
@param string $permissions
@return boolean|array
Checks file permissions