diff options
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/index.php b/index.php new file mode 100755 index 0000000..579dc71 --- /dev/null +++ b/index.php @@ -0,0 +1,25 @@ +<?php +// Copyright (C) 2014 Paul Kocialkowski <contact@paulk.fr>, GNU GPLv3+ + +require_once("include/photos.php"); + +include("include/header.php"); + +photos_albums_discover(); + +if ($_GET["album_path"] != null && $_GET["album_file"] != NULL) { + $rc = photos_album_file_show($_GET["album_path"], $_GET["album_file"]); + if ($rc < 0) + photos_error("Unable to show album file"); +} else if ($_GET["album_path"] != null) { + $rc = photos_album_files_show($_GET["album_path"]); + if ($rc < 0) + photos_error("Unable to show album files"); +} else { + $rc = photos_albums_show(); + if ($rc < 0) + photos_error("Unable to show albums"); +} + +include("include/footer.php"); +?> |