From 347d2e34b3972ec1d0022b831dd5a1fe13adbaa5 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 23 Feb 2006 05:12:32 +0000 Subject: 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 --- include/common.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include/common.inc.php') diff --git a/include/common.inc.php b/include/common.inc.php index b89258df1..e0c564033 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -200,12 +200,15 @@ if (defined('IN_ADMIN') and IN_ADMIN) if ($conf['gallery_locked']) { + ob_start(); // make sure we can send cookies echo '
' - .$lang['gallery_locked_message'] - .'
'; + .$lang['gallery_locked_message']; + echo '.'; + echo ''; - if ($user['status'] != 'admin') + if ( basename($_SERVER["PHP_SELF"]) != 'identification.php' + and $user['status'] != 'admin' ) { exit(); } -- cgit v1.2.3