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/items.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/items.h') diff --git a/src/items.h b/src/items.h index 2a7179c..5b350b9 100644 --- a/src/items.h +++ b/src/items.h @@ -34,6 +34,11 @@ typedef enum { INDEX_ITEM_TYPE_INTERSPACE = 1 << 2 } TIndexItemType; +typedef enum { + AUTH_TYPE_NONE, + AUTH_TYPE_BASIC +} TAuthType; + typedef struct { TGalleryType type; gchar *ID; @@ -55,6 +60,10 @@ typedef struct { gboolean nofullsize; gboolean fullsize; gchar **extra_files; + gchar *auth_realm; + gchar *auth_username; + gchar *auth_passwd; + TAuthType auth_type; } TAlbum; typedef struct { -- cgit v1.2.3