Changeset 2096 for trunk/include


Ignore:
Timestamp:
Sep 19, 2007, 7:26:58 AM (17 years ago)
Author:
rub
Message:

Resolved 0000748: Name configuration of all the tables
Resolved 0000750: Check anomalies after upgrade (Feature proposition)

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/config_default.inc.php

    r2084 r2096  
    431431$conf['apache_authentication'] = false;
    432432
    433 // users_table: which table is the reference for users? Can be a different
    434 // table than PhpWebGallery table
     433// With $conf['tables'] you can use external tables
     434// For example with $conf['tables']['users_table']:
     435//   which table is the reference for users? Can be a different
     436//   table than PhpWebGallery table
    435437//
    436438// If you decide to use another table than the default one, you need to
     
    450452// All informations contained in these tables and column are related to
    451453// phpwebgallery_users table.
    452 $conf['users_table'] = $prefixeTable.'users';
     454
     455$conf['tables']['categories_table'] = $prefixeTable.'categories';
     456$conf['tables']['comments_table'] = $prefixeTable.'comments';
     457$conf['tables']['config_table'] = $prefixeTable.'config';
     458$conf['tables']['favorites_table'] = $prefixeTable.'favorites';
     459$conf['tables']['group_access_table'] = $prefixeTable.'group_access';
     460$conf['tables']['groups_table'] = $prefixeTable.'groups';
     461$conf['tables']['history_table'] = $prefixeTable.'history';
     462$conf['tables']['history_summary_table'] = $prefixeTable.'history_summary';
     463$conf['tables']['image_category_table'] = $prefixeTable.'image_category';
     464$conf['tables']['images_table'] = $prefixeTable.'images';
     465$conf['tables']['sessions_table'] = $prefixeTable.'sessions';
     466$conf['tables']['sites_table'] = $prefixeTable.'sites';
     467$conf['tables']['user_access_table'] = $prefixeTable.'user_access';
     468$conf['tables']['user_group_table'] = $prefixeTable.'user_group';
     469$conf['tables']['users_table'] = $prefixeTable.'users';
     470$conf['tables']['user_infos_table'] = $prefixeTable.'user_infos';
     471$conf['tables']['user_feed_table'] = $prefixeTable.'user_feed';
     472$conf['tables']['waiting_table'] = $prefixeTable.'waiting';
     473$conf['tables']['image_metadata_table'] = $prefixeTable.'image_metadata';
     474$conf['tables']['rate_table'] = $prefixeTable.'rate';
     475$conf['tables']['user_cache_table'] = $prefixeTable.'user_cache';
     476$conf['tables']['user_cache_categories_table'] = $prefixeTable.'user_cache_categories';
     477$conf['tables']['caddie_table'] = $prefixeTable.'caddie';
     478$conf['tables']['upgrade_table'] = $prefixeTable.'upgrade';
     479$conf['tables']['search_table'] = $prefixeTable.'search';
     480$conf['tables']['user_mail_notification_table'] = $prefixeTable.'user_mail_notification';
     481$conf['tables']['tags_table'] = $prefixeTable.'tags';
     482$conf['tables']['image_tag_table'] = $prefixeTable.'image_tag';
     483$conf['tables']['plugins_table'] = $prefixeTable.'plugins';
     484$conf['tables']['web_services_access_table'] = $prefixeTable.'ws_access';
     485$conf['tables']['old_permalinks_table'] = $prefixeTable.'old_permalinks';
    453486
    454487// user_fields : mapping between generic field names and table specific
  • trunk/include/constants.php

    r1954 r2096  
    4646
    4747// Table names
    48 define('CATEGORIES_TABLE', $prefixeTable.'categories');
    49 define('COMMENTS_TABLE', $prefixeTable.'comments');
    50 define('CONFIG_TABLE', $prefixeTable.'config');
    51 define('FAVORITES_TABLE', $prefixeTable.'favorites');
    52 define('GROUP_ACCESS_TABLE', $prefixeTable.'group_access');
    53 define('GROUPS_TABLE', $prefixeTable.'groups');
    54 define('HISTORY_TABLE', $prefixeTable.'history');
    55 define('HISTORY_SUMMARY_TABLE', $prefixeTable.'history_summary');
    56 define('IMAGE_CATEGORY_TABLE', $prefixeTable.'image_category');
    57 define('IMAGES_TABLE', $prefixeTable.'images');
    58 define('SESSIONS_TABLE', $prefixeTable.'sessions');
    59 define('SITES_TABLE', $prefixeTable.'sites');
    60 define('USER_ACCESS_TABLE', $prefixeTable.'user_access');
    61 define('USER_GROUP_TABLE', $prefixeTable.'user_group');
    62 define('USERS_TABLE', $conf['users_table']);
    63 define('USER_INFOS_TABLE', $prefixeTable.'user_infos');
    64 define('USER_FEED_TABLE', $prefixeTable.'user_feed');
    65 define('WAITING_TABLE', $prefixeTable.'waiting');
    66 define('IMAGE_METADATA_TABLE', $prefixeTable.'image_metadata');
    67 define('RATE_TABLE', $prefixeTable.'rate');
    68 define('USER_CACHE_TABLE', $prefixeTable.'user_cache');
    69 define('USER_CACHE_CATEGORIES_TABLE', $prefixeTable.'user_cache_categories');
    70 define('CADDIE_TABLE', $prefixeTable.'caddie');
    71 define('UPGRADE_TABLE', $prefixeTable.'upgrade');
    72 define('SEARCH_TABLE', $prefixeTable.'search');
    73 define('USER_MAIL_NOTIFICATION_TABLE', $prefixeTable.'user_mail_notification');
    74 define('TAGS_TABLE', $prefixeTable.'tags');
    75 define('IMAGE_TAG_TABLE', $prefixeTable.'image_tag');
    76 define('PLUGINS_TABLE', $prefixeTable.'plugins');
    77 define('WEB_SERVICES_ACCESS_TABLE', $prefixeTable.'ws_access');
    78 define('OLD_PERMALINKS_TABLE', $prefixeTable.'old_permalinks');
     48define('CATEGORIES_TABLE', $conf['tables']['categories_table']);
     49define('COMMENTS_TABLE', $conf['tables']['comments_table']);
     50define('CONFIG_TABLE', $conf['tables']['config_table']);
     51define('FAVORITES_TABLE', $conf['tables']['favorites_table']);
     52define('GROUP_ACCESS_TABLE', $conf['tables']['group_access_table']);
     53define('GROUPS_TABLE', $conf['tables']['groups_table']);
     54define('HISTORY_TABLE', $conf['tables']['history_table']);
     55define('HISTORY_SUMMARY_TABLE', $conf['tables']['history_summary_table']);
     56define('IMAGE_CATEGORY_TABLE', $conf['tables']['image_category_table']);
     57define('IMAGES_TABLE', $conf['tables']['images_table']);
     58define('SESSIONS_TABLE', $conf['tables']['sessions_table']);
     59define('SITES_TABLE', $conf['tables']['sites_table']);
     60define('USER_ACCESS_TABLE', $conf['tables']['user_access_table']);
     61define('USER_GROUP_TABLE', $conf['tables']['user_group_table']);
     62define('USERS_TABLE', $conf['tables']['users_table']);
     63define('USER_INFOS_TABLE', $conf['tables']['user_infos_table']);
     64define('USER_FEED_TABLE', $conf['tables']['user_feed_table']);
     65define('WAITING_TABLE', $conf['tables']['waiting_table']);
     66define('IMAGE_METADATA_TABLE', $conf['tables']['image_metadata_table']);
     67define('RATE_TABLE', $conf['tables']['rate_table']);
     68define('USER_CACHE_TABLE', $conf['tables']['user_cache_table']);
     69define('USER_CACHE_CATEGORIES_TABLE', $conf['tables']['user_cache_categories_table']);
     70define('CADDIE_TABLE', $conf['tables']['caddie_table']);
     71define('UPGRADE_TABLE', $conf['tables']['upgrade_table']);
     72define('SEARCH_TABLE', $conf['tables']['search_table']);
     73define('USER_MAIL_NOTIFICATION_TABLE', $conf['tables']['user_mail_notification_table']);
     74define('TAGS_TABLE', $conf['tables']['tags_table']);
     75define('IMAGE_TAG_TABLE', $conf['tables']['image_tag_table']);
     76define('PLUGINS_TABLE', $conf['tables']['plugins_table']);
     77define('WEB_SERVICES_ACCESS_TABLE', $conf['tables']['web_services_access_table']);
     78define('OLD_PERMALINKS_TABLE', $conf['tables']['old_permalinks_table']);
     79
    7980?>
Note: See TracChangeset for help on using the changeset viewer.