diff --git a/.gitignore b/.gitignore
index 57593edc..220b0e11 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,7 +12,7 @@
!/inc/config.php
# instance-config
-/inc/instance-config.php
+/inc/secrets.php
# .installed
/.installed
diff --git a/inc/instance-config.php b/inc/instance-config.php
index f2dafe6f..a45f73ba 100644
--- a/inc/instance-config.php
+++ b/inc/instance-config.php
@@ -19,5 +19,5 @@
//$config['root'] = '/';
-
-?>
\ No newline at end of file
+ @include('inc/secrets.php');
+?>
diff --git a/install.php b/install.php
index 37fb2b42..1662ae77 100644
--- a/install.php
+++ b/install.php
@@ -869,16 +869,17 @@ if ($step == 0) {
),
array(
'category' => 'File permissions',
- 'name' => getcwd() . '/inc/instance-config.php',
- 'result' => is_writable('inc/instance-config.php'),
+ 'name' => getcwd() . '/inc/secrets.php',
+ 'result' => is_writable('inc/secrets.php'),
'required' => false,
- 'message' => 'vichan does not have permission to make changes to inc/instance-config.php
. To complete the installation, you will be asked to manually copy and paste code into the file instead.'
+ 'message' => 'vichan does not have permission to make changes to inc/secrets.php
. To complete the installation, you will be asked to manually copy and paste code into the file instead.'
),
array(
'category' => 'Misc',
- 'name' => 'Caching available (APC, XCache, Memcached or Redis)',
- 'result' => extension_loaded('apc') || extension_loaded('xcache')
- || extension_loaded('memcached') || extension_loaded('redis'),
+ 'name' => 'Caching available (APC(u), XCache, Memcached or Redis)',
+ 'result' => extension_loaded('apcu') || extension_loaded('apc') ||
+ extension_loaded('xcache') || extension_loaded('memcached') ||
+ extension_loaded('redis'),
'required' => false,
'message' => 'You will not be able to enable the additional caching system, designed to minimize SQL queries and significantly improve performance. APC is the recommended method of caching, but XCache, Memcached and Redis are also supported.'
),
@@ -952,17 +953,17 @@ if ($step == 0) {
$instance_config .= $more;
$instance_config .= "\n";
- if (@file_put_contents('inc/instance-config.php', $instance_config)) {
+ if (@file_put_contents('inc/secrets.php', $instance_config)) {
// flushes opcache if php >= 5.5.0 or opcache is installed via PECL
if (function_exists('opcache_invalidate')) {
- opcache_invalidate('inc/instance-config.php');
+ opcache_invalidate('inc/secrets.php');
}
header('Location: ?step=4', true, $config['redirect_http']);
} else {
$page['title'] = 'Manual installation required';
$page['body'] = '
-
I couldn\'t write to inc/instance-config.php with the new configuration, probably due to a permissions error.
-Please complete the installation manually by copying and pasting the following code into the contents of inc/instance-config.php:
+I couldn\'t write to inc/secrets.php with the new configuration, probably due to a permissions error.
+Please complete the installation manually by copying and pasting the following code into the contents of inc/secrets.php: