|
25 | 25 | // Config Paths |
26 | 26 | $db_config_path = '../application/config/'; |
27 | 27 | if (isset($_ENV['CI_ENV'])) { |
28 | | - $db_config_path ='../application/config/'.$_ENV['CI_ENV'].'/'; |
| 28 | + $db_config_path ='../application/'.$_ENV['CI_ENV'].'/'; |
29 | 29 | } |
30 | 30 | $db_file_path = $db_config_path . "database.php"; |
31 | 31 |
|
@@ -115,11 +115,11 @@ function delDir($dir) |
115 | 115 | } elseif ($database->create_tables($_POST) == false) { |
116 | 116 | $message = $core->show_message('error', "The database tables could not be created, please verify your settings."); |
117 | 117 | } elseif ($core->write_config($_POST) == false) { |
118 | | - $message = $core->show_message('error', "The database configuration file could not be written, please chmod /application/config/database.php file to 777"); |
| 118 | + $message = $core->show_message('error', "The database configuration file could not be written, please chmod ".$db_config_path."/database.php file to 777"); |
119 | 119 | } |
120 | 120 |
|
121 | 121 | if ($core->write_configfile($_POST) == false) { |
122 | | - $message = $core->show_message('error', "The config configuration file could not be written, please chmod /application/config/config.php file to 777"); |
| 122 | + $message = $core->show_message('error', "The config configuration file could not be written, please chmod ".$db_config_path."/config.php file to 777"); |
123 | 123 | } |
124 | 124 |
|
125 | 125 | // If no errors, redirect to registration page |
@@ -1458,7 +1458,7 @@ function prevTab() { |
1458 | 1458 | <body> |
1459 | 1459 | <div class="container mt-4 p-2" style="max-width: 600px; "> |
1460 | 1460 | <div class="card p-2 justify-content-center" style="min-height: 200px; margin-top: 200px;"> |
1461 | | - <p class="error text-center">Please make the /application/config/ folder writable. <strong>Example</strong>:<br /><br /><code>chmod -R 777 application/config/</code><br /><br /><i>Don't forget to restore the permissions afterwards.</i></p> |
| 1461 | + <p class="error text-center">Please make the /application/config/ folder writable. <strong>Example</strong>:<br /><br /><code>chmod -R 777 <php echo $db_config_path ?></code><br /><br /><i>Don't forget to restore the permissions afterwards.</i></p> |
1462 | 1462 | </div> |
1463 | 1463 | </div> |
1464 | 1464 | </body> |
|
0 commit comments