Skip to content

Commit

Permalink
improve : allow to redirect guest from index.php to identification.ph…
Browse files Browse the repository at this point in the history
…p (feature 470)

	usefull if the whole gallery is private
	we lost it when category.php became index.php

git-svn-id: http://piwigo.org/svn/trunk@1470 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
chrisaga committed Jul 15, 2006
1 parent 81126f9 commit 12f7f1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/config_default.inc.php
Expand Up @@ -388,6 +388,11 @@
// allow to use adviser mode
$conf['allow_adviser'] = false;

// does the guest have access ?
// (not a security feature, set your categories "private" too)
// If false it'll be redirected from index.php to identification.php
$conf['guest_access'] = true;

// +-----------------------------------------------------------------------+
// | upload |
// +-----------------------------------------------------------------------+
Expand Down
4 changes: 4 additions & 0 deletions index.php
Expand Up @@ -48,6 +48,10 @@
ini_get('session.cookie_path'), ini_get('session.cookie_domain') );
redirect( make_index_url() );
}
if ($user['is_the_guest'] and !$conf['guest_access'])
{
redirect (get_root_url().'identification.php');
}

//---------------------------------------------- change of image display order
if (isset($_GET['image_order']))
Expand Down

0 comments on commit 12f7f1e

Please sign in to comment.