Ticket #1485215: roundcube-config-dir3.diff
| File roundcube-config-dir3.diff, 4.2 KB (added by schmonz, 2 years ago) |
|---|
-
installer/config.php
old new 23 23 if (!empty($_POST['submit'])) { 24 24 25 25 echo '<p class="notice">Copy the following configurations and save them in two files (names above the text box)'; 26 echo ' within the <tt> config/</tt> directory of your RoundCube installation.<br/>';26 echo ' within the <tt>'.RCMAIL_CONFIG_DIR.'/</tt> directory of your RoundCube installation.<br/>'; 27 27 echo ' Make sure that there are no characters outside the <tt><?php ?></tt> brackets when saving the files.</p>'; 28 28 29 29 $textbox = new html_textarea(array('rows' => 16, 'cols' => 60, 'class' => "configfile")); -
installer/index.php
old new 59 59 if ($RCI->configured && !$RCI->getprop('enable_installer') && !$_SESSION['allowinstaller']) { 60 60 // header("HTTP/1.0 404 Not Found"); 61 61 echo '<h2 class="error">The installer is disabled!</h2>'; 62 echo '<p>To enable it again, set <tt>$rcmail_config[\'enable_installer\'] = true;</tt> in config/main.inc.php</p>';62 echo '<p>To enable it again, set <tt>$rcmail_config[\'enable_installer\'] = true;</tt> in '.RCMAIL_CONFIG_DIR.'/main.inc.php</p>'; 63 63 echo '</div></body></html>'; 64 64 exit; 65 65 } -
installer/rcube_install.php
old new 79 79 */ 80 80 function _load_config($suffix) 81 81 { 82 @include '../config/main.inc' . $suffix;82 @include RCMAIL_CONFIG_DIR . '/main.inc' . $suffix; 83 83 if (is_array($rcmail_config)) { 84 84 $this->config += $rcmail_config; 85 85 } 86 86 87 @include '../config/db.inc'. $suffix;87 @include RCMAIL_CONFIG_DIR . '/db.inc'. $suffix; 88 88 if (is_array($rcmail_config)) { 89 89 $this->config += $rcmail_config; 90 90 } -
installer/test.php
old new 3 3 <h3>Check config files</h3> 4 4 <?php 5 5 6 $read_main = is_readable( INSTALL_PATH.'config/main.inc.php');7 $read_db = is_readable( INSTALL_PATH.'config/db.inc.php');6 $read_main = is_readable(RCMAIL_CONFIG_DIR.'/main.inc.php'); 7 $read_db = is_readable(RCMAIL_CONFIG_DIR.'/db.inc.php'); 8 8 9 9 if ($read_main && !empty($RCI->config)) { 10 10 $RCI->pass('main.inc.php'); -
program/include/iniset.php
old new 30 30 define('INSTALL_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/'); 31 31 } 32 32 33 // define('RCMAIL_CONFIG_DIR', INSTALL_PATH . 'config'); 34 define('RCMAIL_CONFIG_DIR', '@PKG_SYSCONFDIR@'); 35 33 36 // make sure path_separator is defined 34 37 if (!defined('PATH_SEPARATOR')) { 35 38 define('PATH_SEPARATOR', (eregi('win', PHP_OS) ? ';' : ':')); -
program/include/rcmail.php
old new 410 410 raise_error(array( 411 411 'code' => 600, 412 412 'type' => 'php', 413 'file' => "config/main.inc.php",413 'file' => RCMAIL_CONFIG_DIR."/main.inc.php", 414 414 'message' => "Acces denied for new user $username. 'auto_create_user' is disabled" 415 415 ), true, false); 416 416 } -
program/include/rcube_config.php
old new 50 50 ob_start(); 51 51 52 52 // load main config file 53 include_once( INSTALL_PATH . 'config/main.inc.php');53 include_once(RCMAIL_CONFIG_DIR . '/main.inc.php'); 54 54 $this->prop = (array)$rcmail_config; 55 55 56 56 // load database config 57 include_once( INSTALL_PATH . 'config/db.inc.php');57 include_once(RCMAIL_CONFIG_DIR . '/db.inc.php'); 58 58 $this->prop += (array)$rcmail_config; 59 59 60 60 // load host-specific configuration … … 103 103 $fname = preg_replace('/[^a-z0-9\.\-_]/i', '', $_SERVER['HTTP_HOST']) . '.inc.php'; 104 104 } 105 105 106 if ($fname && is_file( INSTALL_PATH . 'config/' . $fname)) {107 include( INSTALL_PATH . 'config/' . $fname);106 if ($fname && is_file(RCMAIL_CONFIG_DIR . '/' . $fname)) { 107 include(RCMAIL_CONFIG_DIR . '/' . $fname); 108 108 $this->prop = array_merge($this->prop, (array)$rcmail_config); 109 109 } 110 110 }
