summaryrefslogtreecommitdiff
path: root/src/generators.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2012-12-31 20:08:30 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2012-12-31 20:08:30 +0100
commit95b85be502f639fb2080ae92d4d33c013b18aa94 (patch)
tree7ca15af789198da9021937269eda023946b69221 /src/generators.h
parent571790ba31a48c108e42c4ae10f8e63ae734c376 (diff)
downloadcataract-95b85be502f639fb2080ae92d4d33c013b18aa94.tar.xz
Add support for password protected albums
This adds support for simple password protected areas (albums and all subalbums) through webserver HTTP authentication. CGG simply generates .htaccess and password files and it's up to the user to set up the rest on server side. No UI changes at this point. Limited to one user per album for the moment.
Diffstat (limited to 'src/generators.h')
-rw-r--r--src/generators.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/generators.h b/src/generators.h
index c284f37..bff6cde 100644
--- a/src/generators.h
+++ b/src/generators.h
@@ -70,6 +70,18 @@ gboolean write_html_image (TGallerySetup *setup,
TIndexItem *item,
TAlbum *parent_items);
+/*
+ * write_auth_passwd_file, write_auth_htaccess_file: setup authentication files for the current album
+ *
+ */
+gboolean write_auth_passwd_file (TGallerySetup *setup,
+ const gchar *dst,
+ TAlbum *items);
+gboolean write_auth_htaccess_file (TGallerySetup *setup,
+ const gchar *dst,
+ const gchar *passwd_file_name,
+ TAlbum *items);
+
G_END_DECLS