Announcement

#1 2009-07-06 23:15:19

bmcgough
Member
2009-07-06
2

Private Piwigo?

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

 

#2 2009-07-06 23:23:25

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: Private Piwigo?

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;


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#3 2009-07-06 23:34:18

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13823

Re: Private Piwigo?

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

 

#4 2009-07-06 23:40:22

bmcgough
Member
2009-07-06
2

Re: Private Piwigo?

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

 

#5 2009-07-06 23:48:47

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: Private Piwigo?

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


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#6 2013-02-28 17:32:36

damufo
Translation Team
2013-02-19
9

Re: Private Piwigo?

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

 

#7 2013-02-28 17:34:34

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Offline

 

#8 2013-02-28 20:32:46

flop25
Piwigo Team
2006-07-06
7037

Re: Private Piwigo?

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


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact