source: trunk/include/constants.php @ 2297

Last change on this file since 2297 was 2297, checked in by plg, 16 years ago

Modification: new header on PHP files, PhpWebGallery renamed Piwigo.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 6.5 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// | PhpWebGallery - a PHP based picture gallery                           |
25// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
26// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
27// +-----------------------------------------------------------------------+
28// | file          : $Id: constants.php 2297 2008-04-04 22:57:23Z plg $
29// | last update   : $Date: 2008-04-04 22:57:23 +0000 (Fri, 04 Apr 2008) $
30// | last modifier : $Author: plg $
31// | revision      : $Revision: 2297 $
32// +-----------------------------------------------------------------------+
33// | This program is free software; you can redistribute it and/or modify  |
34// | it under the terms of the GNU General Public License as published by  |
35// | the Free Software Foundation                                          |
36// |                                                                       |
37// | This program is distributed in the hope that it will be useful, but   |
38// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
39// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
40// | General Public License for more details.                              |
41// |                                                                       |
42// | You should have received a copy of the GNU General Public License     |
43// | along with this program; if not, write to the Free Software           |
44// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
45// | USA.                                                                  |
46// +-----------------------------------------------------------------------+
47
48// Default settings
49define('PHPWG_VERSION', 'Butterfly');
50define('PHPWG_DOMAIN', 'phpwebgallery.net');
51define('PHPWG_URL', 'http://www.'.PHPWG_DOMAIN);
52define('PEM_URL', 'http://' . PHPWG_DOMAIN . '/ext');
53define('PHPWG_DEFAULT_LANGUAGE', 'en_UK');
54define('PHPWG_DEFAULT_TEMPLATE', 'yoga/clear');
55
56// Error codes
57define('GENERAL_MESSAGE', 200);
58define('GENERAL_ERROR', 202);
59define('CRITICAL_MESSAGE', 203);
60define('CRITICAL_ERROR', 204);
61
62// Access codes
63define('ACCESS_NONE', 0);
64define('ACCESS_GUEST', 1);
65define('ACCESS_CLASSIC', 2);
66define('ACCESS_ADMINISTRATOR', 3);
67define('ACCESS_WEBMASTER', 4);
68
69// Table names
70if (!defined('CATEGORIES_TABLE'))
71  define('CATEGORIES_TABLE', $prefixeTable.'categories');
72if (!defined('COMMENTS_TABLE'))
73  define('COMMENTS_TABLE', $prefixeTable.'comments');
74if (!defined('CONFIG_TABLE'))
75  define('CONFIG_TABLE', $prefixeTable.'config');
76if (!defined('FAVORITES_TABLE'))
77  define('FAVORITES_TABLE', $prefixeTable.'favorites');
78if (!defined('GROUP_ACCESS_TABLE'))
79  define('GROUP_ACCESS_TABLE', $prefixeTable.'group_access');
80if (!defined('GROUPS_TABLE'))
81  define('GROUPS_TABLE', $prefixeTable.'groups');
82if (!defined('HISTORY_TABLE'))
83  define('HISTORY_TABLE', $prefixeTable.'history');
84if (!defined('HISTORY_SUMMARY_TABLE'))
85  define('HISTORY_SUMMARY_TABLE', $prefixeTable.'history_summary');
86if (!defined('IMAGE_CATEGORY_TABLE'))
87  define('IMAGE_CATEGORY_TABLE', $prefixeTable.'image_category');
88if (!defined('IMAGES_TABLE'))
89  define('IMAGES_TABLE', $prefixeTable.'images');
90if (!defined('SESSIONS_TABLE'))
91  define('SESSIONS_TABLE', $prefixeTable.'sessions');
92if (!defined('SITES_TABLE'))
93  define('SITES_TABLE', $prefixeTable.'sites');
94if (!defined('USER_ACCESS_TABLE'))
95  define('USER_ACCESS_TABLE', $prefixeTable.'user_access');
96if (!defined('USER_GROUP_TABLE'))
97  define('USER_GROUP_TABLE', $prefixeTable.'user_group');
98if (!defined('USERS_TABLE'))
99  define('USERS_TABLE', $conf['users_table']);
100if (!defined('USER_INFOS_TABLE'))
101  define('USER_INFOS_TABLE', $prefixeTable.'user_infos');
102if (!defined('USER_FEED_TABLE'))
103  define('USER_FEED_TABLE', $prefixeTable.'user_feed');
104if (!defined('WAITING_TABLE'))
105  define('WAITING_TABLE', $prefixeTable.'waiting');
106if (!defined('RATE_TABLE'))
107  define('RATE_TABLE', $prefixeTable.'rate');
108if (!defined('USER_CACHE_TABLE'))
109  define('USER_CACHE_TABLE', $prefixeTable.'user_cache');
110if (!defined('USER_CACHE_CATEGORIES_TABLE'))
111  define('USER_CACHE_CATEGORIES_TABLE', $prefixeTable.'user_cache_categories');
112if (!defined('CADDIE_TABLE'))
113  define('CADDIE_TABLE', $prefixeTable.'caddie');
114if (!defined('UPGRADE_TABLE'))
115  define('UPGRADE_TABLE', $prefixeTable.'upgrade');
116if (!defined('SEARCH_TABLE'))
117  define('SEARCH_TABLE', $prefixeTable.'search');
118if (!defined('USER_MAIL_NOTIFICATION_TABLE'))
119  define('USER_MAIL_NOTIFICATION_TABLE', $prefixeTable.'user_mail_notification');
120if (!defined('TAGS_TABLE'))
121  define('TAGS_TABLE', $prefixeTable.'tags');
122if (!defined('IMAGE_TAG_TABLE'))
123  define('IMAGE_TAG_TABLE', $prefixeTable.'image_tag');
124if (!defined('PLUGINS_TABLE'))
125  define('PLUGINS_TABLE', $prefixeTable.'plugins');
126if (!defined('WEB_SERVICES_ACCESS_TABLE'))
127  define('WEB_SERVICES_ACCESS_TABLE', $prefixeTable.'ws_access');
128if (!defined('OLD_PERMALINKS_TABLE'))
129  define('OLD_PERMALINKS_TABLE', $prefixeTable.'old_permalinks');
130
131?>
Note: See TracBrowser for help on using the repository browser.