aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorchrisaga <chrisaga@piwigo.org>2006-07-15 08:20:47 +0000
committerchrisaga <chrisaga@piwigo.org>2006-07-15 08:20:47 +0000
commit12f7f1e8374e042deebdebc1d90ca1a963d23b39 (patch)
tree902a665b2733c51482ebcffbb42fa040eb9ec854 /index.php
parent81126f9fb65e8fdfe4927d1ebf6fa2674ec3dd0a (diff)
improve : allow to redirect guest from index.php to identification.php (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
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.php b/index.php
index b1941a717..345929e67 100644
--- a/index.php
+++ b/index.php
@@ -48,6 +48,10 @@ if ( isset( $_GET['act'] )
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']))