I would like to use piwigo to host pictures for friends and family.
I want only logged in users to see thecategories with everyone else redirected to a 'splash' page with a login and register link only (and perhaps some basic information).
How can I do this with piwigo? Are there existing extensions that will let me?
Offline
Install and activate LocalFiles Editor plugin (You will reuse it for many thing later). It avoids a lot of common errors.
In the first tab, just code:
$conf['guest_access'] = false;
Offline
VDigital wrote:
$conf['guest_access'] = false;
I had forgotten this one, thank you VDigital. I see in the code that it only redirects disconnected visitors when they browse index.php, shouldn't we move the check to include/common.inc.php (with a check that we are not on identification.php). This way we would also avoid direct browsing to picture.php
Offline
Thank you - that's just what I was looking to do!
If deep linking is still possible, that is something I'd like to disallow as well, but for now, this is a good start.
It seems like two approaches would work for solid locking down of a site to registered users only. The first would be an authentication plugin/module for the web server (not attractive as you would need one per server code base), or a rewrite rule through a quick 'logged in' checker page in the piwigo code base.
I'll test deep linking next.
Thanks again,
-Ben
Offline
plg wrote:
VDigital wrote:
$conf['guest_access'] = false;
I had forgotten this one, thank you VDigital. I see in the code that it only redirects disconnected visitors when they browse index.php, shouldn't we move the check to include/common.inc.php (with a check that we are not on identification.php). This way we would also avoid direct browsing to picture.php
Absolutely true. I will open a feature(/bug) for it.
[Bugtracker] ticket 1044
Offline
Hi:
This is not enough.
On piwigo 2.4.7.
A disconnected user (and $conf['guest_access'] = false;), this url:
http://localhost/piwigo/i.php?/../image/test.JPG
show the image from album protected!
This is a bug?
Thanks.
Offline
and in Piwigo 2.5 the original images will be protected with a simple config var
Also have a whole protection (like Gallery3) is not without performance and compatibility issues
Offline