[345] | 1 | <?php |
---|
[362] | 2 | // +-----------------------------------------------------------------------+ |
---|
[593] | 3 | // | PhpWebGallery - a PHP based picture gallery | |
---|
| 4 | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | |
---|
[1726] | 5 | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | |
---|
[362] | 6 | // +-----------------------------------------------------------------------+ |
---|
[1866] | 7 | // | file : $Id: constants.php 1937 2007-04-06 17:34:28Z plg $ |
---|
[362] | 8 | // | last update : $Date: 2007-04-06 17:34:28 +0000 (Fri, 06 Apr 2007) $ |
---|
| 9 | // | last modifier : $Author: plg $ |
---|
| 10 | // | revision : $Revision: 1937 $ |
---|
| 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 | // +-----------------------------------------------------------------------+ |
---|
[345] | 26 | |
---|
[519] | 27 | // Default settings |
---|
[1937] | 28 | define('PHPWG_VERSION', 'branch 1.7'); |
---|
[1726] | 29 | define('PHPWG_DOMAIN', 'phpwebgallery.net'); |
---|
| 30 | define('PHPWG_URL', 'http://www.'.PHPWG_DOMAIN); |
---|
[879] | 31 | define('PHPWG_DEFAULT_LANGUAGE', 'en_UK.iso-8859-1'); |
---|
[1926] | 32 | define('PHPWG_DEFAULT_TEMPLATE', 'yoga/clear'); |
---|
[463] | 33 | |
---|
[345] | 34 | // Error codes |
---|
| 35 | define('GENERAL_MESSAGE', 200); |
---|
| 36 | define('GENERAL_ERROR', 202); |
---|
| 37 | define('CRITICAL_MESSAGE', 203); |
---|
[1584] | 38 | define('CRITICAL_ERROR', 204); |
---|
[345] | 39 | |
---|
[1072] | 40 | // Access codes |
---|
| 41 | define('ACCESS_NONE', 0); |
---|
| 42 | define('ACCESS_GUEST', 1); |
---|
| 43 | define('ACCESS_CLASSIC', 2); |
---|
| 44 | define('ACCESS_ADMINISTRATOR', 3); |
---|
| 45 | define('ACCESS_WEBMASTER', 4); |
---|
| 46 | |
---|
[345] | 47 | // Table names |
---|
[681] | 48 | define('CATEGORIES_TABLE', $prefixeTable.'categories'); |
---|
| 49 | define('COMMENTS_TABLE', $prefixeTable.'comments'); |
---|
| 50 | define('CONFIG_TABLE', $prefixeTable.'config'); |
---|
| 51 | define('FAVORITES_TABLE', $prefixeTable.'favorites'); |
---|
| 52 | define('GROUP_ACCESS_TABLE', $prefixeTable.'group_access'); |
---|
| 53 | define('GROUPS_TABLE', $prefixeTable.'groups'); |
---|
| 54 | define('HISTORY_TABLE', $prefixeTable.'history'); |
---|
[1727] | 55 | define('HISTORY_SUMMARY_TABLE', $prefixeTable.'history_summary'); |
---|
[681] | 56 | define('IMAGE_CATEGORY_TABLE', $prefixeTable.'image_category'); |
---|
| 57 | define('IMAGES_TABLE', $prefixeTable.'images'); |
---|
| 58 | define('SESSIONS_TABLE', $prefixeTable.'sessions'); |
---|
| 59 | define('SITES_TABLE', $prefixeTable.'sites'); |
---|
| 60 | define('USER_ACCESS_TABLE', $prefixeTable.'user_access'); |
---|
| 61 | define('USER_GROUP_TABLE', $prefixeTable.'user_group'); |
---|
[808] | 62 | define('USERS_TABLE', $conf['users_table']); |
---|
| 63 | define('USER_INFOS_TABLE', $prefixeTable.'user_infos'); |
---|
[833] | 64 | define('USER_FEED_TABLE', $prefixeTable.'user_feed'); |
---|
[681] | 65 | define('WAITING_TABLE', $prefixeTable.'waiting'); |
---|
| 66 | define('IMAGE_METADATA_TABLE', $prefixeTable.'image_metadata'); |
---|
| 67 | define('RATE_TABLE', $prefixeTable.'rate'); |
---|
[808] | 68 | define('USER_CACHE_TABLE', $prefixeTable.'user_cache'); |
---|
[1624] | 69 | define('USER_CACHE_CATEGORIES_TABLE', $prefixeTable.'user_cache_categories'); |
---|
[755] | 70 | define('CADDIE_TABLE', $prefixeTable.'caddie'); |
---|
[953] | 71 | define('UPGRADE_TABLE', $prefixeTable.'upgrade'); |
---|
[1008] | 72 | define('SEARCH_TABLE', $prefixeTable.'search'); |
---|
[1028] | 73 | define('USER_MAIL_NOTIFICATION_TABLE', $prefixeTable.'user_mail_notification'); |
---|
[1119] | 74 | define('TAGS_TABLE', $prefixeTable.'tags'); |
---|
| 75 | define('IMAGE_TAG_TABLE', $prefixeTable.'image_tag'); |
---|
[1584] | 76 | define('PLUGINS_TABLE', $prefixeTable.'plugins'); |
---|
[1664] | 77 | define('WEB_SERVICES_ACCESS_TABLE', $prefixeTable.'ws_access'); |
---|
[1866] | 78 | define('OLD_PERMALINKS_TABLE', $prefixeTable.'old_permalinks'); |
---|
[362] | 79 | ?> |
---|