| @@ 360-364 (lines=5) @@ | ||
| 357 | $this->dropboxUid = $this->options['dropboxUid']; |
|
| 358 | $this->tmbPrefix = 'dropbox'.base_convert($this->dropboxUid, 10, 32); |
|
| 359 | ||
| 360 | if (!empty($this->options['tmpPath'])) { |
|
| 361 | if ((is_dir($this->options['tmpPath']) || @mkdir($this->options['tmpPath'])) && is_writable($this->options['tmpPath'])) { |
|
| 362 | $this->tmp = $this->options['tmpPath']; |
|
| 363 | } |
|
| 364 | } |
|
| 365 | if (!$this->tmp && is_writable($this->options['tmbPath'])) { |
|
| 366 | $this->tmp = $this->options['tmbPath']; |
|
| 367 | } |
|
| @@ 369-373 (lines=5) @@ | ||
| 366 | $this->tmp = $this->options['tmbPath']; |
|
| 367 | } |
|
| 368 | ||
| 369 | if (!empty($this->options['metaCachePath'])) { |
|
| 370 | if ((is_dir($this->options['metaCachePath']) || @mkdir($this->options['metaCachePath'])) && is_writable($this->options['metaCachePath'])) { |
|
| 371 | $this->metaCache = $this->options['metaCachePath']; |
|
| 372 | } |
|
| 373 | } |
|
| 374 | if (!$this->metaCache && $this->tmp) { |
|
| 375 | $this->metaCache = $this->tmp; |
|
| 376 | } |
|
| @@ 47-51 (lines=5) @@ | ||
| 44 | ||
| 45 | protected function configure() {
|
|
| 46 | parent::configure(); |
|
| 47 | if (!empty($this->options['tmpPath'])) {
|
|
| 48 | if ((is_dir($this->options['tmpPath']) || @mkdir($this->options['tmpPath'])) && is_writable($this->options['tmpPath'])) {
|
|
| 49 | $this->tmpPath = $this->options['tmpPath']; |
|
| 50 | } |
|
| 51 | } |
|
| 52 | $this->mimeDetect = 'internal'; |
|
| 53 | } |
|
| 54 | ||
| @@ 199-203 (lines=5) @@ | ||
| 196 | protected function configure() { |
|
| 197 | parent::configure(); |
|
| 198 | ||
| 199 | if (!empty($this->options['tmpPath'])) { |
|
| 200 | if ((is_dir($this->options['tmpPath']) || @mkdir($this->options['tmpPath'], 0755, true)) && is_writable($this->options['tmpPath'])) { |
|
| 201 | $this->tmp = $this->options['tmpPath']; |
|
| 202 | } |
|
| 203 | } |
|
| 204 | ||
| 205 | if (!$this->tmp && $this->tmbPath) { |
|
| 206 | $this->tmp = $this->tmbPath; |
|
| @@ 139-143 (lines=5) @@ | ||
| 136 | parent::configure(); |
|
| 137 | ||
| 138 | // set $this->tmp by options['tmpPath'] |
|
| 139 | if (!empty($this->options['tmpPath'])) { |
|
| 140 | if ((is_dir($this->options['tmpPath']) || @mkdir($this->options['tmpPath'], 0755, true)) && is_writable($this->options['tmpPath'])) { |
|
| 141 | $this->tmp = $this->options['tmpPath']; |
|
| 142 | } |
|
| 143 | } |
|
| 144 | ||
| 145 | // if no thumbnails url - try detect it |
|
| 146 | if ($root['read'] && !$this->tmbURL && $this->URL) { |
|