1 | <?php |
---|
2 | // +-----------------------------------------------------------------------+ |
---|
3 | // | PhpWebGallery - a PHP based picture gallery | |
---|
4 | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | |
---|
5 | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | |
---|
6 | // +-----------------------------------------------------------------------+ |
---|
7 | // | file : $Id: constants.php 2096 2007-09-19 05:26:58Z rub $ |
---|
8 | // | last update : $Date: 2007-09-19 05:26:58 +0000 (Wed, 19 Sep 2007) $ |
---|
9 | // | last modifier : $Author: rub $ |
---|
10 | // | revision : $Revision: 2096 $ |
---|
11 | // +-----------------------------------------------------------------------+ |
---|
12 | // | This program is free software; you can redistribute it and/or modify | |
---|
13 | // | it under the terms of the GNU General Public License as published by | |
---|
14 | // | the Free Software Foundation | |
---|
15 | // | | |
---|
16 | // | This program is distributed in the hope that it will be useful, but | |
---|
17 | // | WITHOUT ANY WARRANTY; without even the implied warranty of | |
---|
18 | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
---|
19 | // | General Public License for more details. | |
---|
20 | // | | |
---|
21 | // | You should have received a copy of the GNU General Public License | |
---|
22 | // | along with this program; if not, write to the Free Software | |
---|
23 | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
---|
24 | // | USA. | |
---|
25 | // +-----------------------------------------------------------------------+ |
---|
26 | |
---|
27 | // Default settings |
---|
28 | define('PHPWG_VERSION', 'Butterfly'); |
---|
29 | define('PHPWG_DOMAIN', 'phpwebgallery.net'); |
---|
30 | define('PHPWG_URL', 'http://www.'.PHPWG_DOMAIN); |
---|
31 | define('PHPWG_DEFAULT_LANGUAGE', 'en_UK.iso-8859-1'); |
---|
32 | define('PHPWG_DEFAULT_TEMPLATE', 'yoga/clear'); |
---|
33 | |
---|
34 | // Error codes |
---|
35 | define('GENERAL_MESSAGE', 200); |
---|
36 | define('GENERAL_ERROR', 202); |
---|
37 | define('CRITICAL_MESSAGE', 203); |
---|
38 | define('CRITICAL_ERROR', 204); |
---|
39 | |
---|
40 | // Access codes |
---|
41 | define('ACCESS_NONE', 0); |
---|
42 | define('ACCESS_GUEST', 1); |
---|
43 | define('ACCESS_CLASSIC', 2); |
---|
44 | define('ACCESS_ADMINISTRATOR', 3); |
---|
45 | define('ACCESS_WEBMASTER', 4); |
---|
46 | |
---|
47 | // 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']); |
---|
79 | |
---|
80 | ?> |
---|