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!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/constants.php

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