From 95b85be502f639fb2080ae92d4d33c013b18aa94 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mon, 31 Dec 2012 20:08:30 +0100 Subject: 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. --- src/generators.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/generators.h') 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 -- cgit v1.2.3