Changeset 865


Ignore:
Timestamp:
Sep 18, 2005, 12:22:22 AM (19 years ago)
Author:
plg
Message:
  • improvement: add information about how to use an external table for users
  • bug fixed: uses user configuration fields for filtering in admin/user_list
  • bug fixed: don't try to create feeds automatically during sync_users (when line in user_infos is missing)
  • bug fixed: create_user_infos function gives status admin if user id matches $confwebmaster_id
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r862 r865  
    11731173      $insert['language'] = $conf['default_language'];
    11741174      $insert['recent_period'] = $conf['recent_period'];
    1175       $insert['feed_id'] = find_available_feed_id();
    11761175      $insert['expand'] = boolean_to_string($conf['auto_expand']);
    11771176      $insert['show_nb_comments'] =
  • trunk/admin/user_list.php

    r862 r865  
    679679    LEFT JOIN '.USER_GROUP_TABLE.' AS ug
    680680      ON u.'.$conf['user_fields']['id'].' = ug.user_id
    681   WHERE id != '.$conf['guest_id'];
     681  WHERE u.'.$conf['user_fields']['id'].' != '.$conf['guest_id'];
    682682if (isset($filter['username']))
    683683{
    684684  $query.= '
    685     AND username LIKE \''.$filter['username'].'\'';
     685  AND u.'.$conf['user_fields']['username'].' LIKE \''.$filter['username'].'\'';
    686686}
    687687if (isset($filter['group']))
  • trunk/doc/ChangeLog

    r864 r865  
     12005-09-17 Pierrick LE GALL
     2
     3        * improvement: add information about how to use an external table
     4        for users
     5       
     6        * bug fixed: uses user configuration fields for filtering in
     7        admin/user_list
     8
     9        * bug fixed: don't try to create feeds automatically during
     10        sync_users (when line in user_infos is missing)
     11
     12        * bug fixed: create_user_infos function gives status admin if user
     13        id matches $conf['webmaster_id']
     14
    1152005-09-17 Pierrick LE GALL
    216
  • trunk/include/config_default.inc.php

    r862 r865  
    298298$conf['apache_authentication'] = false;
    299299
    300 // users_table : which table is the reference for users ? Can be a different
     300// users_table: which table is the reference for users? Can be a different
    301301// table than PhpWebGallery table
     302//
     303// If you decide to use another table than the default one, you need to
     304// prepare your database by deleting some datas :
     305//
     306// delete from phpwebgallery_user_access;
     307// delete from phpwebgallery_user_cache;
     308// delete from phpwebgallery_user_feed;
     309// delete from phpwebgallery_user_group;
     310// delete from phpwebgallery_user_infos;
     311// delete from phpwebgallery_sessions;
     312// delete from phpwebgallery_rate;
     313// update phpwebgallery_images set average_rate = NULL;
     314// delete from phpwebgallery_caddie;
     315// delete from phpwebgallery_favorites;
     316//
     317// All informations contained in these tables and column are related to
     318// phpwebgallery_users table.
    302319$conf['users_table'] = $prefixeTable.'users';
    303320
  • trunk/include/functions_user.inc.php

    r833 r865  
    455455    array(
    456456      'user_id' => $user_id,
    457       'status' => 'guest',
     457      'status' => $user_id == $conf['webmaster_id'] ? 'admin' : 'guest',
    458458      'template' => $conf['default_template'],
    459459      'nb_image_line' => $conf['nb_image_line'],
Note: See TracChangeset for help on using the changeset viewer.