source: trunk/include/constants.php @ 2371

Last change on this file since 2371 was 2343, checked in by rub, 17 years ago

Resolved issue 0000826: Required versions (Php & MySql)

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 5.0 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | Piwigo - a PHP based picture gallery                                  |
4// +-----------------------------------------------------------------------+
5// | Copyright(C) 2008      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
25define('PHPWG_VERSION', 'Butterfly');
26define('PHPWG_DOMAIN', 'phpwebgallery.net');
27define('PHPWG_URL', 'http://www.'.PHPWG_DOMAIN);
28define('PEM_URL', 'http://' . PHPWG_DOMAIN . '/ext');
29define('PHPWG_DEFAULT_LANGUAGE', 'en_UK');
30define('PHPWG_DEFAULT_TEMPLATE', 'yoga/clear');
31
32// Required versions
33define('REQUIRED_PHP_VERSION', '5.0.0');
34define('REQUIRED_MYSQL_VERSION', '4.1.22');
35
36// Error codes
37define('GENERAL_MESSAGE', 200);
38define('GENERAL_ERROR', 202);
39define('CRITICAL_MESSAGE', 203);
40define('CRITICAL_ERROR', 204);
41
42// Access codes
43define('ACCESS_FREE', 0);
44define('ACCESS_GUEST', 1);
45define('ACCESS_CLASSIC', 2);
46define('ACCESS_ADMINISTRATOR', 3);
47define('ACCESS_WEBMASTER', 4);
48define('ACCESS_CLOSED', 5);
49
50// Table names
51if (!defined('CATEGORIES_TABLE'))
52  define('CATEGORIES_TABLE', $prefixeTable.'categories');
53if (!defined('COMMENTS_TABLE'))
54  define('COMMENTS_TABLE', $prefixeTable.'comments');
55if (!defined('CONFIG_TABLE'))
56  define('CONFIG_TABLE', $prefixeTable.'config');
57if (!defined('FAVORITES_TABLE'))
58  define('FAVORITES_TABLE', $prefixeTable.'favorites');
59if (!defined('GROUP_ACCESS_TABLE'))
60  define('GROUP_ACCESS_TABLE', $prefixeTable.'group_access');
61if (!defined('GROUPS_TABLE'))
62  define('GROUPS_TABLE', $prefixeTable.'groups');
63if (!defined('HISTORY_TABLE'))
64  define('HISTORY_TABLE', $prefixeTable.'history');
65if (!defined('HISTORY_SUMMARY_TABLE'))
66  define('HISTORY_SUMMARY_TABLE', $prefixeTable.'history_summary');
67if (!defined('IMAGE_CATEGORY_TABLE'))
68  define('IMAGE_CATEGORY_TABLE', $prefixeTable.'image_category');
69if (!defined('IMAGES_TABLE'))
70  define('IMAGES_TABLE', $prefixeTable.'images');
71if (!defined('SESSIONS_TABLE'))
72  define('SESSIONS_TABLE', $prefixeTable.'sessions');
73if (!defined('SITES_TABLE'))
74  define('SITES_TABLE', $prefixeTable.'sites');
75if (!defined('USER_ACCESS_TABLE'))
76  define('USER_ACCESS_TABLE', $prefixeTable.'user_access');
77if (!defined('USER_GROUP_TABLE'))
78  define('USER_GROUP_TABLE', $prefixeTable.'user_group');
79if (!defined('USERS_TABLE'))
80  define('USERS_TABLE', $conf['users_table']);
81if (!defined('USER_INFOS_TABLE'))
82  define('USER_INFOS_TABLE', $prefixeTable.'user_infos');
83if (!defined('USER_FEED_TABLE'))
84  define('USER_FEED_TABLE', $prefixeTable.'user_feed');
85if (!defined('WAITING_TABLE'))
86  define('WAITING_TABLE', $prefixeTable.'waiting');
87if (!defined('RATE_TABLE'))
88  define('RATE_TABLE', $prefixeTable.'rate');
89if (!defined('USER_CACHE_TABLE'))
90  define('USER_CACHE_TABLE', $prefixeTable.'user_cache');
91if (!defined('USER_CACHE_CATEGORIES_TABLE'))
92  define('USER_CACHE_CATEGORIES_TABLE', $prefixeTable.'user_cache_categories');
93if (!defined('CADDIE_TABLE'))
94  define('CADDIE_TABLE', $prefixeTable.'caddie');
95if (!defined('UPGRADE_TABLE'))
96  define('UPGRADE_TABLE', $prefixeTable.'upgrade');
97if (!defined('SEARCH_TABLE'))
98  define('SEARCH_TABLE', $prefixeTable.'search');
99if (!defined('USER_MAIL_NOTIFICATION_TABLE'))
100  define('USER_MAIL_NOTIFICATION_TABLE', $prefixeTable.'user_mail_notification');
101if (!defined('TAGS_TABLE'))
102  define('TAGS_TABLE', $prefixeTable.'tags');
103if (!defined('IMAGE_TAG_TABLE'))
104  define('IMAGE_TAG_TABLE', $prefixeTable.'image_tag');
105if (!defined('PLUGINS_TABLE'))
106  define('PLUGINS_TABLE', $prefixeTable.'plugins');
107if (!defined('WEB_SERVICES_ACCESS_TABLE'))
108  define('WEB_SERVICES_ACCESS_TABLE', $prefixeTable.'ws_access');
109if (!defined('OLD_PERMALINKS_TABLE'))
110  define('OLD_PERMALINKS_TABLE', $prefixeTable.'old_permalinks');
111
112?>
Note: See TracBrowser for help on using the repository browser.