| @@ 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 | } |
|
| @@ 195-199 (lines=5) @@ | ||
| 192 | protected function configure() { |
|
| 193 | parent::configure(); |
|
| 194 | ||
| 195 | if (!empty($this->options['tmpPath'])) { |
|
| 196 | if ((is_dir($this->options['tmpPath']) || @mkdir($this->options['tmpPath'], 0755, true)) && is_writable($this->options['tmpPath'])) { |
|
| 197 | $this->tmp = $this->options['tmpPath']; |
|
| 198 | } |
|
| 199 | } |
|
| 200 | ||
| 201 | if (!$this->tmp && $this->tmbPath) { |
|
| 202 | $this->tmp = $this->tmbPath; |
|
| @@ 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 | ||
| @@ 103-107 (lines=5) @@ | ||
| 100 | parent::configure(); |
|
| 101 | ||
| 102 | // set $this->tmp by options['tmpPath'] |
|
| 103 | if (!empty($this->options['tmpPath'])) { |
|
| 104 | if ((is_dir($this->options['tmpPath']) || @mkdir($this->options['tmpPath'], 0755, true)) && is_writable($this->options['tmpPath'])) { |
|
| 105 | $this->tmp = $this->options['tmpPath']; |
|
| 106 | } |
|
| 107 | } |
|
| 108 | ||
| 109 | // if no thumbnails url - try detect it |
|
| 110 | if ($root['read'] && !$this->tmbURL && $this->URL) { |
|