From 65753539220ba870b738866c425c89d73753c727 Mon Sep 17 00:00:00 2001 From: gweltas Date: Sat, 7 Feb 2004 11:50:26 +0000 Subject: Template modification Split of the french language file git-svn-id: http://piwigo.org/svn/trunk@351 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/user.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/user.inc.php') 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 -- cgit v1.2.3