of supported authentication mechanisms is disabled, if IO::Socket is not
available.
- Removed HTTP Status header from signout page (#1424748).
+ - config_default.php is loaded before site configuration file.
+ config_local.php overrides are removed from config.php and loaded by
+ main initiation script.
Version 1.5.1 (branched on 2006-02-12)
--------------------------------------
print CF "\$allow_remote_configtest = $allow_remote_configtest;\n";
print CF "\n";
- print CF "\@include SM_PATH . 'config/config_local.php';\n";
-
close CF;
print "Data saved in config.php\n";
* which does not support -t and -i arguments, set variable to empty string
* or use arguments suitable for your mailer.
* @global string $sendmail_args
- * @since 1.5.1
+ * @since 1.5.1 and 1.4.8
*/
$sendmail_args = '-i -t';
* @global integer $config_use_color
*/
$config_use_color = 2;
-
-/**
- * This option includes special configuration options
- */
-@include SM_PATH . 'config/config_local.php';
-
$color[16] = '#ff9933'; /* (orange) Highlight color */
require(SM_PATH . 'functions/global.php');
+
+/* load default configuration */
+require(SM_PATH . 'config/config_default.php');
+/* reset arrays in default configuration */
+$ldap_server = array();
+$plugins = array();
+$fontsets = array();
+$theme = array();
+$theme[0]['PATH'] = SM_PATH . 'themes/default_theme.php';
+$theme[0]['NAME'] = 'Default';
+$aTemplateSet = array();
+$aTemplateSet[0]['PATH'] = SM_PATH . 'templates/default/';
+$aTemplateSet[0]['NAME'] = 'Default template';
+/* load site configuration */
require(SM_PATH . 'config/config.php');
+/* load local configuration overrides */
+if (file_exists(SM_PATH . 'config/config_local.php')) {
+ require(SM_PATH . 'config/config_local.php');
+}
+
require(SM_PATH . 'functions/plugin.php');
require(SM_PATH . 'include/constants.php');
require(SM_PATH . 'include/languages.php');
fwrite( $fp, "$k = $v;\n" );
}
}
- // add local config support
- fwrite( $fp, "@include SM_PATH . 'config/config_local.php';\n" );
// close php
fwrite( $fp, '?>' );
fclose( $fp );