setup.php doesn't rewrite .htaccess
This commit is contained in:
parent
9d80fa334e
commit
a885dc8f47
1 changed files with 5 additions and 5 deletions
|
|
@ -175,13 +175,13 @@ echo '
|
|||
</form>';
|
||||
exit();
|
||||
}
|
||||
if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php')) {
|
||||
/* if the config file is not found we propose to create one */
|
||||
if ( is_writable ('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'constant.php') == false ) {
|
||||
if ( is_writable ('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'constant.php') == false ) {
|
||||
echo '<h2 class="error"> Ecriture non possible </h2><p class="warning"> On ne peut pas écrire dans le répertoire de phpcompta, changez-en les droits </p>';
|
||||
exit();
|
||||
}
|
||||
create_htaccess();
|
||||
create_htaccess();
|
||||
|
||||
if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php')) {
|
||||
echo '<form method="post">';
|
||||
echo '<h1 class="info">Entrez les informations nécessaires à phpcompta</h1>';
|
||||
require_once('config_file.php');
|
||||
|
|
@ -191,7 +191,7 @@ if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.D
|
|||
echo '</form>';
|
||||
exit();
|
||||
}
|
||||
create_htaccess();
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// End functions
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue