aboutsummaryrefslogtreecommitdiffstats
path: root/include/user.inc.php
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-02-07 11:50:26 +0000
committergweltas <gweltas@piwigo.org>2004-02-07 11:50:26 +0000
commit65753539220ba870b738866c425c89d73753c727 (patch)
tree92e77bf4da8946d051f8d46176fbe1ead900c0d8 /include/user.inc.php
parent1d9b840cf8421ad06d81035f209149eceb1b357f (diff)
Template modification
Split of the french language file git-svn-id: http://piwigo.org/svn/trunk@351 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/user.inc.php')
-rw-r--r--include/user.inc.php6
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