diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2012-12-31 20:08:30 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2012-12-31 20:08:30 +0100 |
| commit | 95b85be502f639fb2080ae92d4d33c013b18aa94 (patch) | |
| tree | 7ca15af789198da9021937269eda023946b69221 /src/items.h | |
| parent | 571790ba31a48c108e42c4ae10f8e63ae734c376 (diff) | |
| download | cataract-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/items.h')
| -rw-r--r-- | src/items.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 { |
