diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2014-01-19 15:10:27 +0100 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2014-01-19 15:10:27 +0100 |
commit | d63b3116596f5f408c86028992f202e99a8b8a5e (patch) | |
tree | 326517bcae5eea573b6fdd04ddf4f7af88e60a1d /index.php | |
download | photos-master.tar.gz photos-master.tar.bz2 photos-master.zip |
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
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"); +?> |