- Timestamp:
- Dec 19, 2011, 9:25:42 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/common.inc.php
r12764 r12768 74 74 $filter = array(); 75 75 76 if (is_file(PHPWG_ROOT_PATH .'local/config/multisite.inc.php'))77 {78 include(PHPWG_ROOT_PATH .'local/config/multisite.inc.php');79 define('PWG_LOCAL_DIR', $conf['local_dir_site']);80 }81 else82 {83 define('PWG_LOCAL_DIR', 'local/');84 }85 86 @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR .'config/database.inc.php');87 if (!defined('PHPWG_INSTALLED'))88 {89 header('Location: install.php');90 exit;91 }92 93 76 foreach( array( 94 77 'array_intersect_key', //PHP 5 >= 5.1.0RC1 … … 106 89 include(PHPWG_ROOT_PATH . 'include/config_default.inc.php'); 107 90 @include(PHPWG_ROOT_PATH. 'local/config/config.inc.php'); 108 if (isset($conf['local_dir_site'])) 109 { 110 @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/config.inc.php'); 111 } 112 113 // that's for migration from 2.2, will be deprecated in 2.4 114 if (isset($conf['order_by'])) 115 { 116 $conf['order_by_custom'] = $conf['order_by']; 117 } 118 if (isset($conf['order_by_inside_category'])) 119 { 120 $conf['order_by_inside_category_custom'] = $conf['order_by_inside_category']; 121 } 122 91 defined('PWG_LOCAL_DIR') or define('PWG_LOCAL_DIR', 'local/'); 92 93 94 @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR .'config/database.inc.php'); 95 if (!defined('PHPWG_INSTALLED')) 96 { 97 header('Location: install.php'); 98 exit; 99 } 123 100 include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$conf['dblayer'].'.inc.php'); 124 101 -
trunk/include/config_default.inc.php
r11978 r12768 503 503 // All informations contained in these tables and column are related to 504 504 // piwigo_users table. 505 $conf['users_table'] = $prefixeTable.'users';505 $conf['users_table'] = null; 506 506 507 507 // If you decide to use external authentication -
trunk/include/constants.php
r12346 r12768 74 74 define('USER_GROUP_TABLE', $prefixeTable.'user_group'); 75 75 if (!defined('USERS_TABLE')) 76 define('USERS_TABLE', $conf['users_table']);76 define('USERS_TABLE', isset($conf['users_table']) ? $conf['users_table'] : $prefixeTable.'users' ); 77 77 if (!defined('USER_INFOS_TABLE')) 78 78 define('USER_INFOS_TABLE', $prefixeTable.'user_infos'); -
trunk/upgrade.php
r12296 r12768 25 25 26 26 // load config file 27 if (is_file(PHPWG_ROOT_PATH .'local/config/multisite.inc.php')) 28 { 29 include(PHPWG_ROOT_PATH .'local/config/multisite.inc.php'); 30 define('PWG_LOCAL_DIR', $conf['local_dir_site']); 31 } 32 else 33 { 34 define('PWG_LOCAL_DIR', 'local/'); 35 } 27 include(PHPWG_ROOT_PATH . 'include/config_default.inc.php'); 28 @include(PHPWG_ROOT_PATH. 'local/config/config.inc.php'); 29 defined('PWG_LOCAL_DIR') or define('PWG_LOCAL_DIR', 'local/'); 36 30 37 31 $config_file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'config/database.inc.php'; … … 48 42 49 43 include($config_file); 50 include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');51 @include(PHPWG_ROOT_PATH. 'local/config/config.inc.php');52 if (isset($conf['local_dir_site']))53 {54 @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/config.inc.php');55 }56 44 57 45 // $conf is not used for users tables - define cannot be re-defined -
trunk/upgrade_feed.php
r8728 r12768 30 30 define('PHPWG_ROOT_PATH', './'); 31 31 32 include(PHPWG_ROOT_PATH . 'include/config_default.inc.php'); 33 @include(PHPWG_ROOT_PATH. 'local/config/config.inc.php'); 34 defined('PWG_LOCAL_DIR') or define('PWG_LOCAL_DIR', 'local/'); 35 36 include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR .'config/database.inc.php'); 37 include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$conf['dblayer'].'.inc.php'); 38 32 39 include_once(PHPWG_ROOT_PATH.'include/functions.inc.php'); 33 40 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 34 41 include_once(PHPWG_ROOT_PATH.'admin/include/functions_upgrade.php'); 35 42 36 if (is_file(PHPWG_ROOT_PATH .'local/config/multisite.inc.php'))37 {38 include(PHPWG_ROOT_PATH .'local/config/multisite.inc.php');39 define('PWG_LOCAL_DIR', $conf['local_dir_site']);40 }41 else42 {43 define('PWG_LOCAL_DIR', 'local/');44 }45 46 include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR .'config/database.inc.php');47 include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');48 @include(PHPWG_ROOT_PATH. 'local/config/config.inc.php');49 if (isset($conf['local_dir_site']))50 {51 @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/config.inc.php');52 }53 include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$conf['dblayer'].'.inc.php');54 43 55 44 // +-----------------------------------------------------------------------+
Note: See TracChangeset
for help on using the changeset viewer.