Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
148 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
title: Berlin 1 | ||
description: Berlin photo 1 |
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[config] | ||
fileExtensions="jpg|jpeg|png|gif" | ||
contentFolder="nano_photos_content" | ||
sortOrder="asc" | ||
titleDescSeparator="$$" | ||
albumCoverDetector="@@@@@" | ||
ignoreDetector="_hidden" | ||
|
||
[images] | ||
maxSize=1900 | ||
jpegQuality=85 | ||
|
||
[thumbnails] | ||
jpegQuality=90 | ||
blurredImageQuality=3 | ||
allowedSizeValues="" | ||
;allowedSizeValues="50|100|225|150|200|300|auto" | ||
|
||
[security] | ||
allowOrigins="*" | ||
; allowOrigins="http://nanogallery2.nanostudio.org|https://nanogallery2.nanostudio.org" | ||
|
||
[memory] | ||
unlimited=false | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
echo '<b>nanoPhotosProvide2 - installation check</b><br><br><br>'; | ||
|
||
echo 'Current PHP version: ' . phpversion() .'<br>'; | ||
|
||
if (extension_loaded('gd') && function_exists('gd_info')) { | ||
echo 'PHP GD library is installed on your web server'; | ||
} | ||
else { | ||
echo 'PHP GD library is NOT installed on your web server'; | ||
} | ||
echo '<br>'; | ||
|
||
echo 'Free disk space: ' . disk_free_space('.'); | ||
echo '<br><br>'; | ||
|
||
echo '<b>Content folder:</b><br>' ; | ||
$config = parse_ini_file('./nano_photos_provider2.cfg', true); | ||
$content_folder = $config['config']['contentFolder']; | ||
$fileExtensions = $config['config']['fileExtensions']; | ||
|
||
|
||
$dh = opendir($content_folder); | ||
|
||
// check the content folder | ||
if ($dh != false) { | ||
while (false !== ($filename = readdir($dh))) { | ||
$k = 'album'; | ||
if (is_file($content_folder . '/' . $filename) ) { | ||
$k= 'image'; | ||
} | ||
else { | ||
// $files = glob($content_folder . '/' . $filename."/*.{".str_replace("|",",",$fileExtensions)."}", GLOB_BRACE); // to check if folder contains images | ||
$files = preg_grep('~\.('.$fileExtensions.')$~', scandir($content_folder . '/' . $filename)); | ||
$k = $k . ' - ' . sizeof($files); | ||
} | ||
if ($filename != '.' && $filename != '..' && $filename != '_thumbnails' ) { | ||
echo ' ' . $filename . ' ['.$k.']<br>'; | ||
} | ||
} | ||
closedir($dh); | ||
} | ||
|
||
echo '<br><br><br><br><br>'; | ||
phpinfo(); | ||
|
||
?> |
This file was deleted.
Oops, something went wrong.