1 | <?php |
---|
2 | // +-----------------------------------------------------------------------+ |
---|
3 | // | Piwigo - a PHP based picture gallery | |
---|
4 | // +-----------------------------------------------------------------------+ |
---|
5 | // | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org | |
---|
6 | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | |
---|
7 | // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | |
---|
8 | // +-----------------------------------------------------------------------+ |
---|
9 | // | This program is free software; you can redistribute it and/or modify | |
---|
10 | // | it under the terms of the GNU General Public License as published by | |
---|
11 | // | the Free Software Foundation | |
---|
12 | // | | |
---|
13 | // | This program is distributed in the hope that it will be useful, but | |
---|
14 | // | WITHOUT ANY WARRANTY; without even the implied warranty of | |
---|
15 | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
---|
16 | // | General Public License for more details. | |
---|
17 | // | | |
---|
18 | // | You should have received a copy of the GNU General Public License | |
---|
19 | // | along with this program; if not, write to the Free Software | |
---|
20 | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
---|
21 | // | USA. | |
---|
22 | // +-----------------------------------------------------------------------+ |
---|
23 | |
---|
24 | // Default settings |
---|
25 | define('PHPWG_VERSION', 'Colibri'); |
---|
26 | define('PHPWG_DEFAULT_LANGUAGE', 'en_UK'); |
---|
27 | define('PHPWG_DEFAULT_TEMPLATE', 'yoga/Sylvia'); |
---|
28 | |
---|
29 | // Required versions |
---|
30 | define('REQUIRED_PHP_VERSION', '5.0.0'); |
---|
31 | define('REQUIRED_MYSQL_VERSION', '4.1.22'); |
---|
32 | |
---|
33 | // Access codes |
---|
34 | define('ACCESS_FREE', 0); |
---|
35 | define('ACCESS_GUEST', 1); |
---|
36 | define('ACCESS_CLASSIC', 2); |
---|
37 | define('ACCESS_ADMINISTRATOR', 3); |
---|
38 | define('ACCESS_WEBMASTER', 4); |
---|
39 | define('ACCESS_CLOSED', 5); |
---|
40 | |
---|
41 | // Table names |
---|
42 | if (!defined('CATEGORIES_TABLE')) |
---|
43 | define('CATEGORIES_TABLE', $prefixeTable.'categories'); |
---|
44 | if (!defined('COMMENTS_TABLE')) |
---|
45 | define('COMMENTS_TABLE', $prefixeTable.'comments'); |
---|
46 | if (!defined('CONFIG_TABLE')) |
---|
47 | define('CONFIG_TABLE', $prefixeTable.'config'); |
---|
48 | if (!defined('FAVORITES_TABLE')) |
---|
49 | define('FAVORITES_TABLE', $prefixeTable.'favorites'); |
---|
50 | if (!defined('GROUP_ACCESS_TABLE')) |
---|
51 | define('GROUP_ACCESS_TABLE', $prefixeTable.'group_access'); |
---|
52 | if (!defined('GROUPS_TABLE')) |
---|
53 | define('GROUPS_TABLE', $prefixeTable.'groups'); |
---|
54 | if (!defined('HISTORY_TABLE')) |
---|
55 | define('HISTORY_TABLE', $prefixeTable.'history'); |
---|
56 | if (!defined('HISTORY_SUMMARY_TABLE')) |
---|
57 | define('HISTORY_SUMMARY_TABLE', $prefixeTable.'history_summary'); |
---|
58 | if (!defined('IMAGE_CATEGORY_TABLE')) |
---|
59 | define('IMAGE_CATEGORY_TABLE', $prefixeTable.'image_category'); |
---|
60 | if (!defined('IMAGES_TABLE')) |
---|
61 | define('IMAGES_TABLE', $prefixeTable.'images'); |
---|
62 | if (!defined('SESSIONS_TABLE')) |
---|
63 | define('SESSIONS_TABLE', $prefixeTable.'sessions'); |
---|
64 | if (!defined('SITES_TABLE')) |
---|
65 | define('SITES_TABLE', $prefixeTable.'sites'); |
---|
66 | if (!defined('USER_ACCESS_TABLE')) |
---|
67 | define('USER_ACCESS_TABLE', $prefixeTable.'user_access'); |
---|
68 | if (!defined('USER_GROUP_TABLE')) |
---|
69 | define('USER_GROUP_TABLE', $prefixeTable.'user_group'); |
---|
70 | if (!defined('USERS_TABLE')) |
---|
71 | define('USERS_TABLE', $conf['users_table']); |
---|
72 | if (!defined('USER_INFOS_TABLE')) |
---|
73 | define('USER_INFOS_TABLE', $prefixeTable.'user_infos'); |
---|
74 | if (!defined('USER_FEED_TABLE')) |
---|
75 | define('USER_FEED_TABLE', $prefixeTable.'user_feed'); |
---|
76 | if (!defined('WAITING_TABLE')) |
---|
77 | define('WAITING_TABLE', $prefixeTable.'waiting'); |
---|
78 | if (!defined('RATE_TABLE')) |
---|
79 | define('RATE_TABLE', $prefixeTable.'rate'); |
---|
80 | if (!defined('USER_CACHE_TABLE')) |
---|
81 | define('USER_CACHE_TABLE', $prefixeTable.'user_cache'); |
---|
82 | if (!defined('USER_CACHE_CATEGORIES_TABLE')) |
---|
83 | define('USER_CACHE_CATEGORIES_TABLE', $prefixeTable.'user_cache_categories'); |
---|
84 | if (!defined('CADDIE_TABLE')) |
---|
85 | define('CADDIE_TABLE', $prefixeTable.'caddie'); |
---|
86 | if (!defined('UPGRADE_TABLE')) |
---|
87 | define('UPGRADE_TABLE', $prefixeTable.'upgrade'); |
---|
88 | if (!defined('SEARCH_TABLE')) |
---|
89 | define('SEARCH_TABLE', $prefixeTable.'search'); |
---|
90 | if (!defined('USER_MAIL_NOTIFICATION_TABLE')) |
---|
91 | define('USER_MAIL_NOTIFICATION_TABLE', $prefixeTable.'user_mail_notification'); |
---|
92 | if (!defined('TAGS_TABLE')) |
---|
93 | define('TAGS_TABLE', $prefixeTable.'tags'); |
---|
94 | if (!defined('IMAGE_TAG_TABLE')) |
---|
95 | define('IMAGE_TAG_TABLE', $prefixeTable.'image_tag'); |
---|
96 | if (!defined('PLUGINS_TABLE')) |
---|
97 | define('PLUGINS_TABLE', $prefixeTable.'plugins'); |
---|
98 | if (!defined('OLD_PERMALINKS_TABLE')) |
---|
99 | define('OLD_PERMALINKS_TABLE', $prefixeTable.'old_permalinks'); |
---|
100 | |
---|
101 | ?> |
---|