mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
fix: permissioning not working (2 bugs)
fix: locked gallery cannot be unlocked (impossible to login) improvement: nicer display in redirect.tpl improvement: when a page is not accessible because of permissions (accessed through bookmark or email), redirect to identification.php and after identification to the initially requested page git-svn-id: http://piwigo.org/svn/trunk@1052 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -200,12 +200,15 @@ if (defined('IN_ADMIN') and IN_ADMIN)
|
||||
|
||||
if ($conf['gallery_locked'])
|
||||
{
|
||||
ob_start(); // make sure we can send cookies
|
||||
echo
|
||||
'<div style="text-align:center;">'
|
||||
.$lang['gallery_locked_message']
|
||||
.'</div>';
|
||||
.$lang['gallery_locked_message'];
|
||||
echo '<a href="'.PHPWG_ROOT_PATH.'identification.php">.</a>';
|
||||
echo '</div>';
|
||||
|
||||
if ($user['status'] != 'admin')
|
||||
if ( basename($_SERVER["PHP_SELF"]) != 'identification.php'
|
||||
and $user['status'] != 'admin' )
|
||||
{
|
||||
exit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user