aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-03-27 08:05:01 +0000
committerz0rglub <z0rglub@piwigo.org>2004-03-27 08:05:01 +0000
commita2fe0444de049196fe203883fb426aa18e6a4b35 (patch)
tree811781265f78b1e668d7056a05d8d42e3917d4c7 /include
parent9113dffea0df299b5adb7251dbe2c1b2f52b8b9b (diff)
refactoring
git-svn-id: http://piwigo.org/svn/trunk@397 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/user.inc.php13
1 files 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';
?>