@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | $zip->addEmptyDir(end($dir)); |
| 123 | 123 | } else {
|
| 124 | 124 | $zip->addFromString( |
| 125 | - end($dir).'/'.$i.'.jpg', |
|
| 125 | + end($dir) . '/' . $i . '.jpg', |
|
| 126 | 126 | file_get_contents($entry['file']) |
| 127 | 127 | ); |
| 128 | 128 | $i++; |
@@ -166,9 +166,9 @@ discard block |
||
| 166 | 166 | $zipfilename = ""; |
| 167 | 167 | if (isset($album_download_directory)) {
|
| 168 | 168 | //$zipfilename = 'libs/resources'.DIRECTORY_SEPARATOR.'albums'.DIRECTORY_SEPARATOR.'fb-album_'.date("Y-m-d").'_'.date("H-i-s");
|
| 169 | - $zipfilename = 'public/fb-album_'.date("Y-m-d").'_'.date("H-i-s");
|
|
| 169 | + $zipfilename = 'public/fb-album_' . date("Y-m-d") . '_' . date("H-i-s");
|
|
| 170 | 170 | |
| 171 | - $folder = dirname($_SERVER['PHP_SELF']).'/'.$album_download_directory; |
|
| 171 | + $folder = dirname($_SERVER['PHP_SELF']) . '/' . $album_download_directory; |
|
| 172 | 172 | // Server Root |
| 173 | 173 | $root = $_SERVER["DOCUMENT_ROOT"]; |
| 174 | 174 | // source of the folder to unpack |
@@ -45,8 +45,9 @@ |
||
| 45 | 45 | foreach ($files as $file) {
|
| 46 | 46 | $file = str_replace('\\', '/', $file);
|
| 47 | 47 | // Ignore "." and ".." folders |
| 48 | - if (in_array(substr($file, strrpos($file, '/') + 1), array('.', '..')))
|
|
| 49 | - continue; |
|
| 48 | + if (in_array(substr($file, strrpos($file, '/') + 1), array('.', '..'))) {
|
|
| 49 | + continue; |
|
| 50 | + } |
|
| 50 | 51 | if (is_dir($file) === true) {
|
| 51 | 52 | $a[] = array( |
| 52 | 53 | 'type' => 'dir', |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | foreach ($albums as $album) { |
| 28 | 28 | $albumUrl = $album['images'][0]['source']; |
| 29 | 29 | $slides .= '<div class="mySlides fade">'; |
| 30 | - $slides .= '<img src="'. $albumUrl .'" style="width:100%; height: 450px"></div>'; |
|
| 30 | + $slides .= '<img src="' . $albumUrl . '" style="width:100%; height: 450px"></div>'; |
|
| 31 | 31 | } |
| 32 | 32 | $slides .= '<a class="prev" onclick="plusSlides(-1)">❮</a>'; |
| 33 | 33 | $slides .= '<a class="next" onclick="plusSlides(1)">❯</a>'; |