diff options
Diffstat (limited to '')
-rw-r--r-- | include/user.inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/user.inc.php b/include/user.inc.php index d25f26b7a..711cc6c9e 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -116,4 +116,10 @@ foreach ( $infos as $info ) { // special for $user['restrictions'] array $user['restrictions'] = explode( ',', $user['forbidden_categories'] ); if ( $user['restrictions'][0] == '' ) $user['restrictions'] = array(); +$isadmin = false; +if ($user['status'] == 'admin') $isadmin =true; +// calculation of the number of picture to display per page +$user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page']; + +init_userprefs($user); ?>
\ No newline at end of file |