Changeset 650 for trunk/include/user.inc.php
- Timestamp:
- Dec 20, 2004, 8:26:43 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/user.inc.php
r648 r650 128 128 } 129 129 130 $isadmin = false;131 if ($user['status'] == 'admin')132 {133 $isadmin = true;134 }135 130 // calculation of the number of picture to display per page 136 131 $user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page']; 137 132 138 init_userprefs($user); 133 if (empty($user['language']) 134 or !file_exists(PHPWG_ROOT_PATH.'language/'. 135 $user['language'].'/common.lang.php')) 136 { 137 $user['language'] = $conf['default_language']; 138 } 139 include_once(PHPWG_ROOT_PATH.'language/'.$user['language'].'/common.lang.php'); 140 141 // only if we are in the administration section 142 if (defined('IN_ADMIN') and IN_ADMIN) 143 { 144 $langdir = PHPWG_ROOT_PATH.'language/'.$user['language']; 145 if (!file_exists($langdir.'/admin.lang.php')) 146 { 147 $langdir = PHPWG_ROOT_PATH.'language/'.$conf['default_language']; 148 } 149 include_once($langdir.'/admin.lang.php'); 150 include_once($langdir.'/faq.lang.php'); 151 } 152 153 if (empty($user['template'])) 154 { 155 $user['template'] = $conf['default_template']; 156 } 157 $template = setup_style($user['template']); 139 158 ?>
Note: See TracChangeset
for help on using the changeset viewer.