- Timestamp:
- Jan 17, 2011, 7:48:13 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/common.inc.php
r8247 r8722 71 71 $filter = array(); 72 72 73 @include(PHPWG_ROOT_PATH .'local/config/database.inc.php'); 73 if (is_file(PHPWG_ROOT_PATH .'local/config/multisite.inc.php')) 74 { 75 include(PHPWG_ROOT_PATH .'local/config/multisite.inc.php'); 76 define('PWG_LOCAL_DIR', $conf['local_dir_site']); 77 } 78 else 79 { 80 define('PWG_LOCAL_DIR', 'local/'); 81 } 82 83 @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR .'config/database.inc.php'); 74 84 if (!defined('PHPWG_INSTALLED')) 75 85 { … … 93 103 include(PHPWG_ROOT_PATH . 'include/config_default.inc.php'); 94 104 @include(PHPWG_ROOT_PATH. 'local/config/config.inc.php'); 105 if (isset($conf['local_dir_site'])) 106 { 107 @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/config.inc.php'); 108 } 95 109 include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$conf['dblayer'].'.inc.php'); 96 110 … … 152 166 } 153 167 trigger_action('loading_lang'); 154 load_language('lang', PHPWG_ROOT_PATH. 'local/', array('no_fallback'=>true, 'local'=>true) );168 load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) ); 155 169 156 170 // only now we can set the localized username of the guest user (and not in -
trunk/include/constants.php
r8651 r8722 28 28 29 29 define('PHPWG_THEMES_PATH', $conf['themes_dir'].'/'); 30 define('PWG_COMBINED_DIR', PWG_LOCAL_DIR.'combined/'); 30 31 31 32 // Required versions -
trunk/include/functions.inc.php
r8665 r8722 576 576 load_language('common.lang'); 577 577 trigger_action('loading_lang'); 578 load_language('lang', PHPWG_ROOT_PATH. 'local/', array('no_fallback'=>true, 'local'=>true) );578 load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) ); 579 579 $template = new Template(PHPWG_ROOT_PATH.'themes', get_default_theme()); 580 580 } -
trunk/include/functions_mail.inc.php
r8131 r8722 224 224 load_language('admin.lang', '', array('language'=>$language) ); 225 225 trigger_action('loading_lang'); 226 load_language('lang', PHPWG_ROOT_PATH. 'local/',226 load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, 227 227 array('language'=>$language, 'no_fallback'=>true, 'local'=>true) 228 228 ); -
trunk/include/template.class.php
r8634 r8722 798 798 foreach ($smarty->get_template_vars('themes') as $theme) 799 799 { 800 $f = 'local/css/'.$theme['id'].'-rules.css';800 $f = PWG_LOCAL_DIR.'css/'.$theme['id'].'-rules.css'; 801 801 if (file_exists(PHPWG_ROOT_PATH.$f)) 802 802 { … … 804 804 } 805 805 } 806 $f = 'local/css/rules.css';806 $f = PWG_LOCAL_DIR.'css/rules.css'; 807 807 if (file_exists(PHPWG_ROOT_PATH.$f)) 808 808 { … … 1134 1134 final class FileCombiner 1135 1135 { 1136 const OUT_SUB_DIR = 'local/combined/';1136 const OUT_SUB_DIR = PWG_COMBINED_DIR; 1137 1137 private $type; // js or css 1138 1138 private $files = array(); -
trunk/install.php
r8311 r8722 115 115 } 116 116 117 if (is_file(PHPWG_ROOT_PATH .'local/config/multisite.inc.php')) 118 { 119 include(PHPWG_ROOT_PATH .'local/config/multisite.inc.php'); 120 define('PWG_LOCAL_DIR', $conf['local_dir_site']); 121 } 122 else 123 { 124 define('PWG_LOCAL_DIR', 'local/'); 125 } 126 117 127 include(PHPWG_ROOT_PATH . 'include/config_default.inc.php'); 118 128 @include(PHPWG_ROOT_PATH. 'local/config/config.inc.php'); 129 if (isset($conf['local_dir_site'])) 130 { 131 @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/config.inc.php'); 132 } 119 133 120 134 // download database config file if exists … … 153 167 $errors = array(); 154 168 155 $config_file = PHPWG_ROOT_PATH . 'local/config/database.inc.php';169 $config_file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR .'config/database.inc.php'; 156 170 if (@file_exists($config_file)) 157 171 { -
trunk/nbm.php
r6363 r8722 35 35 // Need to update a second time 36 36 trigger_action('loading_lang'); 37 load_language('lang', PHPWG_ROOT_PATH. 'local/', array('no_fallback'=>true, 'local'=>true) );37 load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) ); 38 38 39 39 -
trunk/plugins/LocalFilesEditor/admin.php
r8126 r8722 131 131 { 132 132 case 'localconf': 133 $edited_file = PHPWG_ROOT_PATH . "local/config/config.inc.php";133 $edited_file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . "config/config.inc.php"; 134 134 $content_file = file_exists($edited_file) ? 135 135 file_get_contents($edited_file) : $new_file['localconf']; … … 146 146 $options[] = l10n('locfiledit_choose_file'); 147 147 $options[] = '----------------------'; 148 $value = PHPWG_ROOT_PATH . "local/css/rules.css";148 $value = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . "css/rules.css"; 149 149 $options[$value] = 'local / css / rules.css'; 150 150 if ($edited_file == $value) $selected = $value; … … 153 153 foreach (get_dirs($conf['themes_dir']) as $theme_id) 154 154 { 155 $value = PHPWG_ROOT_PATH . 'local/css/'.$theme_id.'-rules.css';155 $value = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . 'css/'.$theme_id.'-rules.css'; 156 156 $options[$value] = 'local / css / '.$theme_id.'-rules.css'; 157 157 if ($edited_file == $value) $selected = $value; … … 248 248 foreach (get_languages() as $language_code => $language_name) 249 249 { 250 $value = PHPWG_ROOT_PATH. 'local/language/'.$language_code.'.lang.php';250 $value = PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'language/'.$language_code.'.lang.php'; 251 251 if ($edited_file == $value) 252 252 { -
trunk/plugins/language_switch/language_switch.inc.php
r5845 r8722 50 50 if ( $same !== $user['language']) { 51 51 load_language('common.lang', '', array('language'=>$user['language']) ); 52 load_language('lang', PHPWG_ROOT_PATH. 'local/',52 load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, 53 53 array('language'=>$user['language'], 'no_fallback'=>true, 'local'=>true) 54 54 ); -
trunk/upgrade.php
r6363 r8722 25 25 26 26 // load config file 27 $config_file = PHPWG_ROOT_PATH.'local/config/database.inc.php'; 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 } 36 37 $config_file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'config/database.inc.php'; 28 38 $config_file_contents = @file_get_contents($config_file); 29 39 if ($config_file_contents === false) … … 37 47 } 38 48 39 include( PHPWG_ROOT_PATH.'local/config/database.inc.php');49 include($config_file); 40 50 include(PHPWG_ROOT_PATH . 'include/config_default.inc.php'); 41 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 } 42 56 43 57 // $conf is not used for users tables - define cannot be re-defined … … 309 323 sprintf( 310 324 l10n('In <i>%s</i>, before <b>?></b>, insert:'), 311 'local/config/database.inc.php'325 PWG_LOCAL_DIR.'config/database.inc.php' 312 326 ) 313 327 .'<p><textarea rows="4" cols="40">' -
trunk/upgrade_feed.php
r6363 r8722 33 33 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 34 34 include_once(PHPWG_ROOT_PATH.'admin/include/functions_upgrade.php'); 35 include(PHPWG_ROOT_PATH.'local/config/database.inc.php'); 35 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 else 42 { 43 define('PWG_LOCAL_DIR', 'local/'); 44 } 45 46 include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR .'config/database.inc.php'); 36 47 include(PHPWG_ROOT_PATH . 'include/config_default.inc.php'); 37 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 } 38 53 include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$conf['dblayer'].'.inc.php'); 39 54
Note: See TracChangeset
for help on using the changeset viewer.