Changeset 2084 for trunk/admin/user_list.php
- Timestamp:
- Sep 11, 2007, 4:24:51 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/user_list.php
r2041 r2084 98 98 ui.status, 99 99 ui.adviser, 100 ui.enabled_high 100 ui.enabled_high, 101 ui.level 101 102 FROM '.USERS_TABLE.' AS u 102 103 INNER JOIN '.USER_INFOS_TABLE.' AS ui … … 257 258 array_push($page['errors'], l10n('Guest cannot be deleted')); 258 259 } 259 if (($conf['guest_id'] != $conf['default_user_id']) and 260 if (($conf['guest_id'] != $conf['default_user_id']) and 260 261 in_array($conf['default_user_id'], $collection)) 261 262 { … … 352 353 array('nb_image_line', 'nb_line_page', 'template', 'language', 353 354 'recent_period', 'maxwidth', 'expand', 'show_nb_comments', 354 'show_nb_hits', 'maxheight', 'status', 'enabled_high'); 355 356 $true_false_fields = array('expand', 'show_nb_comments', 355 'show_nb_hits', 'maxheight', 'status', 'enabled_high', 356 'level'); 357 358 $true_false_fields = array('expand', 'show_nb_comments', 357 359 'show_nb_hits', 'enabled_high'); 358 360 if ($conf['allow_adviser']) … … 757 759 } 758 760 761 // user level options 762 $blockname = 'level_option'; 763 foreach ($conf['available_permission_levels'] as $level) 764 { 765 $template->assign_block_vars( 766 $blockname, 767 array( 768 'VALUE' => $level, 769 'CONTENT' => l10n( sprintf('Level %d', $level) ), 770 'SELECTED' => $level==$default_user['level'] ? 'selected="selected"' : '', 771 )); 772 } 773 759 774 // +-----------------------------------------------------------------------+ 760 775 // | navigation bar | … … 818 833 $checked = ''; 819 834 } 835 836 $properties = array(); 837 $properties[] = 838 (isset($local_user['enabled_high']) and ($local_user['enabled_high'] == 'true')) 839 ? $lang['is_high_enabled'] : $lang['is_high_disabled']; 840 841 $properties[] = l10n( sprintf('Level %d', $local_user['level']) ); 820 842 821 843 $template->assign_block_vars( … … 837 859 'EMAIL' => get_email_address_as_display_text($local_user['email']), 838 860 'GROUPS' => $groups_string, 839 'PROPERTIES' => 840 (isset($local_user['enabled_high']) and ($local_user['enabled_high'] == 'true')) 841 ? $lang['is_high_enabled'] : $lang['is_high_disabled'] 861 'PROPERTIES' => implode( ',', $properties), 862 842 863 ) 843 864 );
Note: See TracChangeset
for help on using the changeset viewer.