Changeset 1470


Ignore:
Timestamp:
Jul 15, 2006, 10:20:47 AM (18 years ago)
Author:
chrisaga
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/config_default.inc.php

    r1412 r1470  
    389389$conf['allow_adviser'] = false;
    390390
     391// does the guest have access ?
     392// (not a security feature, set your categories "private" too)
     393// If false it'll be redirected from index.php to identification.php
     394$conf['guest_access'] = true;
     395
    391396// +-----------------------------------------------------------------------+
    392397// |                                upload                                 |
  • trunk/index.php

    r1436 r1470  
    4949  redirect( make_index_url() );
    5050}
     51if ($user['is_the_guest'] and !$conf['guest_access'])
     52{
     53  redirect (get_root_url().'identification.php');
     54}
    5155
    5256//---------------------------------------------- change of image display order
Note: See TracChangeset for help on using the changeset viewer.