source: trunk/include/constants.php @ 2264

Last change on this file since 2264 was 2264, checked in by patdenice, 16 years ago

Corrections in plugins management.

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