From 143f638a4b1bafdc4a2a811a9f4c97a5392a0acc Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 30 Aug 2013 23:21:42 +0200 Subject: Added settings for registrations and uploads. * create_active_users: Controls whether new user accounts are created as 'active'; accounts that are not marked as active will not be able to log in, and will be automatically logged out if they're already logged in. * allow_registration: Allow or disallow creation of new user accounts. Any attempts to access the registration page will result in an error message. * allow_anonymous_uploads: Allow or disallow uploading of files by anonymous (not logged in) users. Combined with either allow_registration or create_active_users, this will effectively create a private filebin where the admin must explicitly create or activate new users. --- templates/base.tmpl | 25 +++++++++++++++---------- templates/changepass.tmpl | 2 +- templates/delete.tmpl | 4 ++-- templates/help.tmpl | 2 +- templates/images.tmpl | 2 +- templates/login.tmpl | 2 +- templates/register.tmpl | 2 +- templates/upload.tmpl | 2 +- 8 files changed, 23 insertions(+), 18 deletions(-) (limited to 'templates') diff --git a/templates/base.tmpl b/templates/base.tmpl index fe9120b..5c1f894 100644 --- a/templates/base.tmpl +++ b/templates/base.tmpl @@ -4,33 +4,38 @@ $title - + #block head #end block + $settings
$error
-
+

current password

new password

diff --git a/templates/delete.tmpl b/templates/delete.tmpl index 62216d5..a3ed7be 100644 --- a/templates/delete.tmpl +++ b/templates/delete.tmpl @@ -2,8 +2,8 @@ #def header: delete #extends templates.base #def content - +

Are you sure you want to delete the file $filename?

-

+

#end def diff --git a/templates/help.tmpl b/templates/help.tmpl index bb59424..6451b25 100644 --- a/templates/help.tmpl +++ b/templates/help.tmpl @@ -2,7 +2,7 @@ #def header: help #extends templates.base #def content -

Usage: POST to $scheme://${host}${root}u with filedata given to "file" and original filename to "filename". +

Usage: POST to $scheme://${host}${settings.virtual_root}u with filedata given to "file" and original filename to "filename". Login is sent by cookies with either: