[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4484 - phpcompta/trunk/html/admin
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4484 - phpcompta/trunk/html/admin |
Date: |
Mon, 28 Nov 2011 14:13:22 +0100 (CET) |
Author: danydb
Date: 2011-11-28 14:13:21 +0100 (Mon, 28 Nov 2011)
New Revision: 4484
Modified:
phpcompta/trunk/html/admin/setup.php
Log:
bug setup.php
Modified: phpcompta/trunk/html/admin/setup.php
===================================================================
--- phpcompta/trunk/html/admin/setup.php 2011-11-28 11:50:38 UTC (rev
4483)
+++ phpcompta/trunk/html/admin/setup.php 2011-11-28 13:13:21 UTC (rev
4484)
@@ -108,7 +108,6 @@
*/
$failed="<span style=\"font-size:18px;color:red\">✖</span>";
$succeed="<span style=\"font-size:18px;color:green\">✓</span>";
-
$inc_path=get_include_path();
/**
address@hidden create correctly the htaccess file
@@ -156,7 +155,7 @@
fwrite($hFile,'php_value include_path
.:../../include:../include:addon'."\n");
foreach ($array as $value ) fwrite($hFile,$value."\n");
fclose($hFile);
-
+}
if ( strpos($inc_path,";") != 0 ) {
$new_path=$inc_path.';..\..\include;addon';
$os=0; /* $os is 0 for windoz */
@@ -174,17 +173,17 @@
Les informations sont sauvées vous pouvez continuer
<input type="submit" value="Continuer">
</form>';
-create_htaccess();
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 ) {
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();
}
+}
+echo __LINE__;
echo '<form method="post">';
echo '<h1 class="info">Entrez les informations nécessaires à
phpcompta</h1>';
require_once('config_file.php');
@@ -193,7 +192,6 @@
echo HtmlInput::submit('save_config','Sauver la configuration');
echo '</form>';
exit();
- }
create_htaccess();
//----------------------------------------------------------------------
@@ -206,7 +204,6 @@
// magic_quotes_runtime = Off
// magic_quotes_sybase = Off
// include_path
-}
require_once('config_file.php');
include_once('constant.php');
require_once('class_database.php');
@@ -496,4 +493,4 @@
echo "<p class=\"info\">Tout est installé $succeed";
?>
<A style="display:block;text-align: center" HREF="../index.php">Connectez-vous
à PhpCompta</A>
-</p>
\ No newline at end of file
+</p>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4484 - phpcompta/trunk/html/admin,
phpcompta-dev <=