source: trunk/include/constants.php @ 2096

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

Resolved 0000748: Name configuration of all the tables
Resolved 0000750: Check anomalies after upgrade (Feature proposition)

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 4.1 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 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
28define('PHPWG_VERSION', 'Butterfly');
29define('PHPWG_DOMAIN', 'phpwebgallery.net');
30define('PHPWG_URL', 'http://www.'.PHPWG_DOMAIN);
31define('PHPWG_DEFAULT_LANGUAGE', 'en_UK.iso-8859-1');
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
48define('CATEGORIES_TABLE', $conf['tables']['categories_table']);
49define('COMMENTS_TABLE', $conf['tables']['comments_table']);
50define('CONFIG_TABLE', $conf['tables']['config_table']);
51define('FAVORITES_TABLE', $conf['tables']['favorites_table']);
52define('GROUP_ACCESS_TABLE', $conf['tables']['group_access_table']);
53define('GROUPS_TABLE', $conf['tables']['groups_table']);
54define('HISTORY_TABLE', $conf['tables']['history_table']);
55define('HISTORY_SUMMARY_TABLE', $conf['tables']['history_summary_table']);
56define('IMAGE_CATEGORY_TABLE', $conf['tables']['image_category_table']);
57define('IMAGES_TABLE', $conf['tables']['images_table']);
58define('SESSIONS_TABLE', $conf['tables']['sessions_table']);
59define('SITES_TABLE', $conf['tables']['sites_table']);
60define('USER_ACCESS_TABLE', $conf['tables']['user_access_table']);
61define('USER_GROUP_TABLE', $conf['tables']['user_group_table']);
62define('USERS_TABLE', $conf['tables']['users_table']);
63define('USER_INFOS_TABLE', $conf['tables']['user_infos_table']);
64define('USER_FEED_TABLE', $conf['tables']['user_feed_table']);
65define('WAITING_TABLE', $conf['tables']['waiting_table']);
66define('IMAGE_METADATA_TABLE', $conf['tables']['image_metadata_table']);
67define('RATE_TABLE', $conf['tables']['rate_table']);
68define('USER_CACHE_TABLE', $conf['tables']['user_cache_table']);
69define('USER_CACHE_CATEGORIES_TABLE', $conf['tables']['user_cache_categories_table']);
70define('CADDIE_TABLE', $conf['tables']['caddie_table']);
71define('UPGRADE_TABLE', $conf['tables']['upgrade_table']);
72define('SEARCH_TABLE', $conf['tables']['search_table']);
73define('USER_MAIL_NOTIFICATION_TABLE', $conf['tables']['user_mail_notification_table']);
74define('TAGS_TABLE', $conf['tables']['tags_table']);
75define('IMAGE_TAG_TABLE', $conf['tables']['image_tag_table']);
76define('PLUGINS_TABLE', $conf['tables']['plugins_table']);
77define('WEB_SERVICES_ACCESS_TABLE', $conf['tables']['web_services_access_table']);
78define('OLD_PERMALINKS_TABLE', $conf['tables']['old_permalinks_table']);
79
80?>
Note: See TracBrowser for help on using the repository browser.