source: trunk/include/constants.php @ 2127

Last change on this file since 2127 was 2127, checked in by rvelices, 17 years ago
  • PWG_CHARSET, DB_CHARSET and DB_COLLATE... utf-8 ready
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 4.8 KB
Line 
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 2127 2007-10-09 01:43:29Z rvelices $
8// | last update   : $Date: 2007-10-09 01:43:29 +0000 (Tue, 09 Oct 2007) $
9// | last modifier : $Author: rvelices $
10// | revision      : $Revision: 2127 $
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
28define('PHPWG_VERSION', 'Butterfly');
29define('PHPWG_DOMAIN', 'phpwebgallery.net');
30define('PHPWG_URL', 'http://www.'.PHPWG_DOMAIN);
31define('PHPWG_DEFAULT_LANGUAGE', 'en_UK');
32define('PHPWG_DEFAULT_TEMPLATE', 'yoga/clear');
33
34// Error codes
35define('GENERAL_MESSAGE', 200);
36define('GENERAL_ERROR', 202);
37define('CRITICAL_MESSAGE', 203);
38define('CRITICAL_ERROR', 204);
39
40// Access codes
41define('ACCESS_NONE', 0);
42define('ACCESS_GUEST', 1);
43define('ACCESS_CLASSIC', 2);
44define('ACCESS_ADMINISTRATOR', 3);
45define('ACCESS_WEBMASTER', 4);
46
47// Table names
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');
108
109?>
Note: See TracBrowser for help on using the repository browser.