From a2fe0444de049196fe203883fb426aa18e6a4b35 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sat, 27 Mar 2004 08:05:01 +0000 Subject: refactoring git-svn-id: http://piwigo.org/svn/trunk@397 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/user.inc.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/user.inc.php b/include/user.inc.php index 880e419d4..e4cad9346 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -123,12 +123,21 @@ foreach ( $infos as $info ) { // special for $user['restrictions'] array $user['restrictions'] = explode( ',', $user['forbidden_categories'] ); -if ( $user['restrictions'][0] == '' ) $user['restrictions'] = array(); +if ( $user['restrictions'][0] == '' ) +{ + $user['restrictions'] = array(); +} + $isadmin = false; -if ($user['status'] == 'admin') $isadmin =true; +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); + $user['lien_expanded']='./template/'.$user['template'].'/theme/expanded.gif'; $user['lien_collapsed']='./template/'.$user['template'].'/theme/collapsed.gif'; ?> -- cgit v1.2.3