diff options
author | rub <rub@piwigo.org> | 2006-12-13 00:05:16 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2006-12-13 00:05:16 +0000 |
commit | 5046b3c2105bdfae23d6835c110606ea9e7ff055 (patch) | |
tree | a6b497463d1b83edfe7f53d90d356765a5d4d0fd /include/user.inc.php | |
parent | 5e9a4b02be26994e7d49a7d1ece7595a50b28c4b (diff) |
Feature Issue ID 0000601: Filter all public pages with only recent elements
Last draft before final development.
There a icon for global mode and one other for local mode.
Counters are not good, filter on images are not everywhere applied, moment to update cache are not optimized, ...
Go to http://forum.phpwebgallery.net/viewtopic.php?id=9490
git-svn-id: http://piwigo.org/svn/trunk@1651 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/user.inc.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/user.inc.php b/include/user.inc.php index 103052ad2..6f75ac962 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -69,8 +69,20 @@ if ($conf['apache_authentication'] and isset($_SERVER['REMOTE_USER'])) $user['id'] = get_userid($_SERVER['REMOTE_USER']); } } + +if (isset($_GET['filter_global_mode'])) +{ + $user['filter_global_mode'] = ($_GET['filter_global_mode'] == 'start'); + pwg_set_session_var('filter_global_mode', $user['filter_global_mode']); +} +else +{ + $user['filter_global_mode'] = pwg_get_session_var('filter_global_mode', false); +} + $user = build_user( $user['id'], - ( defined('IN_ADMIN') and IN_ADMIN ) ? false : true // use cache ? + ( defined('IN_ADMIN') and IN_ADMIN ) ? false : true, // use cache ? + $user['filter_global_mode'] // filter_global_mode ? ); ?>
\ No newline at end of file |