Changeset 2104 for trunk/admin


Ignore:
Timestamp:
Sep 21, 2007, 11:23:09 PM (17 years ago)
Author:
rub
Message:

Resolved 0000748: Name configuration of all the tables

New method of implementation!

Location:
trunk/admin/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_check_integrity.inc.php

    r2065 r2104  
    306306
    307307/**
    308  * Check exif
     308 * Do correction user
    309309 *
    310310 * @param user_id, action
  • trunk/admin/include/functions_upgrade.php

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