@@ 53-55 (lines=3) @@ | ||
50 | throw new \RuntimeException(sprintf('Directory "%s" was not created', $dir)); |
|
51 | } |
|
52 | } else { |
|
53 | if (!mkdir($concurrentDirectory = $dir . '/' . $userId, 0777) && !is_dir($concurrentDirectory)) { |
|
54 | throw new \RuntimeException(sprintf('Directory "%s" was not created', $concurrentDirectory)); |
|
55 | } |
|
56 | if (!mkdir($concurrentDirectory = $dir . '/' . $userId . '/thumbnails', 0777) && !is_dir($concurrentDirectory)) { |
|
57 | throw new \RuntimeException(sprintf('Directory "%s" was not created', $concurrentDirectory)); |
|
58 | } |
|
@@ 56-58 (lines=3) @@ | ||
53 | if (!mkdir($concurrentDirectory = $dir . '/' . $userId, 0777) && !is_dir($concurrentDirectory)) { |
|
54 | throw new \RuntimeException(sprintf('Directory "%s" was not created', $concurrentDirectory)); |
|
55 | } |
|
56 | if (!mkdir($concurrentDirectory = $dir . '/' . $userId . '/thumbnails', 0777) && !is_dir($concurrentDirectory)) { |
|
57 | throw new \RuntimeException(sprintf('Directory "%s" was not created', $concurrentDirectory)); |
|
58 | } |
|
59 | file_put_contents("{$dir}/index.html", '<script>history.go(-1);</script>'); |
|
60 | file_put_contents("{$dir}/{$userId}/index.html", '<script>history.go(-1);</script>'); |
|
61 | file_put_contents("{$dir}/{$userId}/thumbnails/index.html", '<script>history.go(-1);</script>'); |