2004-02-01 23:09:22 +01:00
|
|
|
<?php
|
2004-02-12 00:20:38 +01:00
|
|
|
// +-----------------------------------------------------------------------+
|
2011-01-18 01:02:52 +01:00
|
|
|
// | Piwigo - a PHP based photo gallery |
|
2008-04-05 00:57:23 +02:00
|
|
|
// +-----------------------------------------------------------------------+
|
2013-01-01 13:35:02 +01:00
|
|
|
// | Copyright(C) 2008-2013 Piwigo Team http://piwigo.org |
|
2008-04-05 00:57:23 +02:00
|
|
|
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
|
|
|
|
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | This program is free software; you can redistribute it and/or modify |
|
|
|
|
// | it under the terms of the GNU General Public License as published by |
|
|
|
|
// | the Free Software Foundation |
|
|
|
|
// | |
|
|
|
|
// | This program is distributed in the hope that it will be useful, but |
|
2004-02-12 00:20:38 +01:00
|
|
|
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
|
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
|
|
// | General Public License for more details. |
|
|
|
|
// | |
|
|
|
|
// | You should have received a copy of the GNU General Public License |
|
|
|
|
// | along with this program; if not, write to the Free Software |
|
|
|
|
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
|
|
|
|
// | USA. |
|
|
|
|
// +-----------------------------------------------------------------------+
|
2004-02-01 23:09:22 +01:00
|
|
|
|
2004-09-07 22:10:36 +02:00
|
|
|
// Default settings
|
2013-11-01 13:46:00 +01:00
|
|
|
define('PHPWG_VERSION', '2.6.0beta2');
|
2007-10-09 03:43:29 +02:00
|
|
|
define('PHPWG_DEFAULT_LANGUAGE', 'en_UK');
|
2012-03-02 23:14:38 +01:00
|
|
|
define('PHPWG_DEFAULT_TEMPLATE', 'elegant');
|
2010-03-17 01:48:38 +01:00
|
|
|
|
|
|
|
define('PHPWG_THEMES_PATH', $conf['themes_dir'].'/');
|
2011-12-29 06:48:16 +01:00
|
|
|
defined('PWG_COMBINED_DIR') or define('PWG_COMBINED_DIR', $conf['data_location'].'combined/');
|
|
|
|
defined('PWG_DERIVATIVE_DIR') or define('PWG_DERIVATIVE_DIR', $conf['data_location'].'i/');
|
2004-07-28 19:21:58 +02:00
|
|
|
|
2008-05-16 20:59:37 +02:00
|
|
|
// Required versions
|
|
|
|
define('REQUIRED_PHP_VERSION', '5.0.0');
|
|
|
|
|
2006-03-09 23:46:28 +01:00
|
|
|
// Access codes
|
2008-05-02 23:56:21 +02:00
|
|
|
define('ACCESS_FREE', 0);
|
2006-03-09 23:46:28 +01:00
|
|
|
define('ACCESS_GUEST', 1);
|
|
|
|
define('ACCESS_CLASSIC', 2);
|
|
|
|
define('ACCESS_ADMINISTRATOR', 3);
|
|
|
|
define('ACCESS_WEBMASTER', 4);
|
2008-05-02 23:56:21 +02:00
|
|
|
define('ACCESS_CLOSED', 5);
|
2006-03-09 23:46:28 +01:00
|
|
|
|
2010-03-19 23:25:39 +01:00
|
|
|
// Sanity checks
|
|
|
|
define('PATTERN_ID', '/^\d+$/');
|
|
|
|
|
2004-02-02 01:55:18 +01:00
|
|
|
// Table names
|
2007-09-21 23:23:09 +02:00
|
|
|
if (!defined('CATEGORIES_TABLE'))
|
|
|
|
define('CATEGORIES_TABLE', $prefixeTable.'categories');
|
|
|
|
if (!defined('COMMENTS_TABLE'))
|
|
|
|
define('COMMENTS_TABLE', $prefixeTable.'comments');
|
|
|
|
if (!defined('CONFIG_TABLE'))
|
|
|
|
define('CONFIG_TABLE', $prefixeTable.'config');
|
|
|
|
if (!defined('FAVORITES_TABLE'))
|
|
|
|
define('FAVORITES_TABLE', $prefixeTable.'favorites');
|
|
|
|
if (!defined('GROUP_ACCESS_TABLE'))
|
|
|
|
define('GROUP_ACCESS_TABLE', $prefixeTable.'group_access');
|
|
|
|
if (!defined('GROUPS_TABLE'))
|
|
|
|
define('GROUPS_TABLE', $prefixeTable.'groups');
|
|
|
|
if (!defined('HISTORY_TABLE'))
|
|
|
|
define('HISTORY_TABLE', $prefixeTable.'history');
|
|
|
|
if (!defined('HISTORY_SUMMARY_TABLE'))
|
|
|
|
define('HISTORY_SUMMARY_TABLE', $prefixeTable.'history_summary');
|
|
|
|
if (!defined('IMAGE_CATEGORY_TABLE'))
|
|
|
|
define('IMAGE_CATEGORY_TABLE', $prefixeTable.'image_category');
|
|
|
|
if (!defined('IMAGES_TABLE'))
|
|
|
|
define('IMAGES_TABLE', $prefixeTable.'images');
|
|
|
|
if (!defined('SESSIONS_TABLE'))
|
|
|
|
define('SESSIONS_TABLE', $prefixeTable.'sessions');
|
|
|
|
if (!defined('SITES_TABLE'))
|
|
|
|
define('SITES_TABLE', $prefixeTable.'sites');
|
|
|
|
if (!defined('USER_ACCESS_TABLE'))
|
|
|
|
define('USER_ACCESS_TABLE', $prefixeTable.'user_access');
|
|
|
|
if (!defined('USER_GROUP_TABLE'))
|
|
|
|
define('USER_GROUP_TABLE', $prefixeTable.'user_group');
|
|
|
|
if (!defined('USERS_TABLE'))
|
2011-12-19 21:25:42 +01:00
|
|
|
define('USERS_TABLE', isset($conf['users_table']) ? $conf['users_table'] : $prefixeTable.'users' );
|
2007-09-21 23:23:09 +02:00
|
|
|
if (!defined('USER_INFOS_TABLE'))
|
|
|
|
define('USER_INFOS_TABLE', $prefixeTable.'user_infos');
|
|
|
|
if (!defined('USER_FEED_TABLE'))
|
|
|
|
define('USER_FEED_TABLE', $prefixeTable.'user_feed');
|
|
|
|
if (!defined('RATE_TABLE'))
|
|
|
|
define('RATE_TABLE', $prefixeTable.'rate');
|
|
|
|
if (!defined('USER_CACHE_TABLE'))
|
|
|
|
define('USER_CACHE_TABLE', $prefixeTable.'user_cache');
|
|
|
|
if (!defined('USER_CACHE_CATEGORIES_TABLE'))
|
|
|
|
define('USER_CACHE_CATEGORIES_TABLE', $prefixeTable.'user_cache_categories');
|
|
|
|
if (!defined('CADDIE_TABLE'))
|
|
|
|
define('CADDIE_TABLE', $prefixeTable.'caddie');
|
|
|
|
if (!defined('UPGRADE_TABLE'))
|
|
|
|
define('UPGRADE_TABLE', $prefixeTable.'upgrade');
|
|
|
|
if (!defined('SEARCH_TABLE'))
|
|
|
|
define('SEARCH_TABLE', $prefixeTable.'search');
|
|
|
|
if (!defined('USER_MAIL_NOTIFICATION_TABLE'))
|
|
|
|
define('USER_MAIL_NOTIFICATION_TABLE', $prefixeTable.'user_mail_notification');
|
|
|
|
if (!defined('TAGS_TABLE'))
|
|
|
|
define('TAGS_TABLE', $prefixeTable.'tags');
|
|
|
|
if (!defined('IMAGE_TAG_TABLE'))
|
|
|
|
define('IMAGE_TAG_TABLE', $prefixeTable.'image_tag');
|
|
|
|
if (!defined('PLUGINS_TABLE'))
|
|
|
|
define('PLUGINS_TABLE', $prefixeTable.'plugins');
|
|
|
|
if (!defined('OLD_PERMALINKS_TABLE'))
|
|
|
|
define('OLD_PERMALINKS_TABLE', $prefixeTable.'old_permalinks');
|
2010-03-17 01:48:38 +01:00
|
|
|
if (!defined('THEMES_TABLE'))
|
|
|
|
define('THEMES_TABLE', $prefixeTable.'themes');
|
2010-03-25 11:27:17 +01:00
|
|
|
if (!defined('LANGUAGES_TABLE'))
|
|
|
|
define('LANGUAGES_TABLE', $prefixeTable.'languages');
|
2007-09-19 07:26:58 +02:00
|
|
|
|
2011-04-02 21:48:08 +02:00
|
|
|
?>
|