Ignore:
Timestamp:
Jan 12, 2012, 9:50:46 PM (12 years ago)
Author:
rvelices
Message:

bug 2553 hide menubar/register on indentification page if gallery is locked or guest_access is false

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/identification.php

    r12764 r12878  
    33// | Piwigo - a PHP based photo gallery                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2011 Piwigo Team                  http://piwigo.org |
     5// | Copyright(C) 2008-2012 Piwigo Team                  http://piwigo.org |
    66// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    77// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
     
    8383$template->assign(
    8484  array(
    85     'U_LOST_PASSWORD' => get_root_url().'password.php',
    8685    'U_REDIRECT' => $redirect_to,
    8786
     
    9089    ));
    9190
    92 if ($conf['allow_user_registration'])
     91if (!$conf['gallery_locked'] && $conf['allow_user_registration'])
    9392{
    9493  $template->assign('U_REGISTER', get_root_url().'register.php' );
    9594}
    9695
     96if (!$conf['gallery_locked'])
     97{
     98  $template->assign('U_LOST_PASSWORD', get_root_url().'password.php' );
     99}
     100
    97101// include menubar
    98102$themeconf = $template->get_template_vars('themeconf');
    99 if (!isset($themeconf['hide_menu_on']) OR !in_array('theIdentificationPage', $themeconf['hide_menu_on']))
     103if (!$conf['gallery_locked'] && (!isset($themeconf['hide_menu_on']) OR !in_array('theIdentificationPage', $themeconf['hide_menu_on'])))
    100104{
    101105  include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
Note: See TracChangeset for help on using the changeset viewer.