[345] | 1 | <?php |
---|
[362] | 2 | // +-----------------------------------------------------------------------+ |
---|
[8728] | 3 | // | Piwigo - a PHP based photo gallery | |
---|
[2297] | 4 | // +-----------------------------------------------------------------------+ |
---|
[8728] | 5 | // | Copyright(C) 2008-2011 Piwigo Team http://piwigo.org | |
---|
[2297] | 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 | // +-----------------------------------------------------------------------+ |
---|
[345] | 23 | |
---|
[519] | 24 | // Default settings |
---|
[10000] | 25 | define('PHPWG_VERSION', '2.3'); |
---|
[2127] | 26 | define('PHPWG_DEFAULT_LANGUAGE', 'en_UK'); |
---|
[5153] | 27 | define('PHPWG_DEFAULT_TEMPLATE', 'Sylvia'); |
---|
[463] | 28 | |
---|
[5153] | 29 | define('PHPWG_THEMES_PATH', $conf['themes_dir'].'/'); |
---|
[8722] | 30 | define('PWG_COMBINED_DIR', PWG_LOCAL_DIR.'combined/'); |
---|
[5153] | 31 | |
---|
[2343] | 32 | // Required versions |
---|
| 33 | define('REQUIRED_PHP_VERSION', '5.0.0'); |
---|
| 34 | |
---|
[1072] | 35 | // Access codes |
---|
[2325] | 36 | define('ACCESS_FREE', 0); |
---|
[1072] | 37 | define('ACCESS_GUEST', 1); |
---|
| 38 | define('ACCESS_CLASSIC', 2); |
---|
| 39 | define('ACCESS_ADMINISTRATOR', 3); |
---|
| 40 | define('ACCESS_WEBMASTER', 4); |
---|
[2325] | 41 | define('ACCESS_CLOSED', 5); |
---|
[1072] | 42 | |
---|
[5195] | 43 | // Sanity checks |
---|
| 44 | define('PATTERN_ID', '/^\d+$/'); |
---|
| 45 | |
---|
[345] | 46 | // Table names |
---|
[2104] | 47 | if (!defined('CATEGORIES_TABLE')) |
---|
| 48 | define('CATEGORIES_TABLE', $prefixeTable.'categories'); |
---|
| 49 | if (!defined('COMMENTS_TABLE')) |
---|
| 50 | define('COMMENTS_TABLE', $prefixeTable.'comments'); |
---|
| 51 | if (!defined('CONFIG_TABLE')) |
---|
| 52 | define('CONFIG_TABLE', $prefixeTable.'config'); |
---|
| 53 | if (!defined('FAVORITES_TABLE')) |
---|
| 54 | define('FAVORITES_TABLE', $prefixeTable.'favorites'); |
---|
| 55 | if (!defined('GROUP_ACCESS_TABLE')) |
---|
| 56 | define('GROUP_ACCESS_TABLE', $prefixeTable.'group_access'); |
---|
| 57 | if (!defined('GROUPS_TABLE')) |
---|
| 58 | define('GROUPS_TABLE', $prefixeTable.'groups'); |
---|
| 59 | if (!defined('HISTORY_TABLE')) |
---|
| 60 | define('HISTORY_TABLE', $prefixeTable.'history'); |
---|
| 61 | if (!defined('HISTORY_SUMMARY_TABLE')) |
---|
| 62 | define('HISTORY_SUMMARY_TABLE', $prefixeTable.'history_summary'); |
---|
| 63 | if (!defined('IMAGE_CATEGORY_TABLE')) |
---|
| 64 | define('IMAGE_CATEGORY_TABLE', $prefixeTable.'image_category'); |
---|
| 65 | if (!defined('IMAGES_TABLE')) |
---|
| 66 | define('IMAGES_TABLE', $prefixeTable.'images'); |
---|
| 67 | if (!defined('SESSIONS_TABLE')) |
---|
| 68 | define('SESSIONS_TABLE', $prefixeTable.'sessions'); |
---|
| 69 | if (!defined('SITES_TABLE')) |
---|
| 70 | define('SITES_TABLE', $prefixeTable.'sites'); |
---|
| 71 | if (!defined('USER_ACCESS_TABLE')) |
---|
| 72 | define('USER_ACCESS_TABLE', $prefixeTable.'user_access'); |
---|
| 73 | if (!defined('USER_GROUP_TABLE')) |
---|
| 74 | define('USER_GROUP_TABLE', $prefixeTable.'user_group'); |
---|
| 75 | if (!defined('USERS_TABLE')) |
---|
[4357] | 76 | define('USERS_TABLE', $conf['users_table']); |
---|
[2104] | 77 | if (!defined('USER_INFOS_TABLE')) |
---|
| 78 | define('USER_INFOS_TABLE', $prefixeTable.'user_infos'); |
---|
| 79 | if (!defined('USER_FEED_TABLE')) |
---|
| 80 | define('USER_FEED_TABLE', $prefixeTable.'user_feed'); |
---|
| 81 | if (!defined('RATE_TABLE')) |
---|
| 82 | define('RATE_TABLE', $prefixeTable.'rate'); |
---|
| 83 | if (!defined('USER_CACHE_TABLE')) |
---|
| 84 | define('USER_CACHE_TABLE', $prefixeTable.'user_cache'); |
---|
| 85 | if (!defined('USER_CACHE_CATEGORIES_TABLE')) |
---|
| 86 | define('USER_CACHE_CATEGORIES_TABLE', $prefixeTable.'user_cache_categories'); |
---|
| 87 | if (!defined('CADDIE_TABLE')) |
---|
| 88 | define('CADDIE_TABLE', $prefixeTable.'caddie'); |
---|
| 89 | if (!defined('UPGRADE_TABLE')) |
---|
| 90 | define('UPGRADE_TABLE', $prefixeTable.'upgrade'); |
---|
| 91 | if (!defined('SEARCH_TABLE')) |
---|
| 92 | define('SEARCH_TABLE', $prefixeTable.'search'); |
---|
| 93 | if (!defined('USER_MAIL_NOTIFICATION_TABLE')) |
---|
| 94 | define('USER_MAIL_NOTIFICATION_TABLE', $prefixeTable.'user_mail_notification'); |
---|
| 95 | if (!defined('TAGS_TABLE')) |
---|
| 96 | define('TAGS_TABLE', $prefixeTable.'tags'); |
---|
| 97 | if (!defined('IMAGE_TAG_TABLE')) |
---|
| 98 | define('IMAGE_TAG_TABLE', $prefixeTable.'image_tag'); |
---|
| 99 | if (!defined('PLUGINS_TABLE')) |
---|
| 100 | define('PLUGINS_TABLE', $prefixeTable.'plugins'); |
---|
| 101 | if (!defined('OLD_PERMALINKS_TABLE')) |
---|
| 102 | define('OLD_PERMALINKS_TABLE', $prefixeTable.'old_permalinks'); |
---|
[5153] | 103 | if (!defined('THEMES_TABLE')) |
---|
| 104 | define('THEMES_TABLE', $prefixeTable.'themes'); |
---|
[5341] | 105 | if (!defined('LANGUAGES_TABLE')) |
---|
| 106 | define('LANGUAGES_TABLE', $prefixeTable.'languages'); |
---|
[2096] | 107 | |
---|
[10000] | 108 | ?> |
---|