| @@ 207-210 (lines=4) @@ | ||
| 204 | $path = '../' . $path; |
|
| 205 | $error = true; |
|
| 206 | if (!is_dir($path)) { |
|
| 207 | if (file_exists($path) && !is_writable($path)) { |
|
| 208 | @chmod($path, 0664); |
|
| 209 | $error = !is_writable($path); |
|
| 210 | } |
|
| 211 | } else { |
|
| 212 | if (!is_writable($path)) { |
|
| 213 | @chmod($path, 0775); |
|
| @@ 211-216 (lines=6) @@ | ||
| 208 | @chmod($path, 0664); |
|
| 209 | $error = !is_writable($path); |
|
| 210 | } |
|
| 211 | } else { |
|
| 212 | if (!is_writable($path)) { |
|
| 213 | @chmod($path, 0775); |
|
| 214 | $error = !is_writable($path); |
|
| 215 | } |
|
| 216 | } |
|
| 217 | ||
| 218 | return xoDiag($error ? -1 : 1, $error ? ' ' : ' '); |
|
| 219 | } |
|