noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 04/04: Bug : add message no connection


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 04/04: Bug : add message no connection
Date: Tue, 11 Mar 2014 18:51:06 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit f020c900bf14fc3f8fa55edfb50d7d1bb5b9e53d
Author: Dany De Bontridder <address@hidden>
Date:   Tue Mar 11 19:49:19 2014 +0100

    Bug : add message no connection
---
 include/restore.inc.php |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/include/restore.inc.php b/include/restore.inc.php
index ab96f3f..9bbc34a 100644
--- a/include/restore.inc.php
+++ b/include/restore.inc.php
@@ -43,6 +43,8 @@ if ( isset ($_REQUEST['sa'] ))
         putenv("PGUSER=" . phpcompta_user);
         putenv("PGHOST=" . phpcompta_psql_host);
         putenv("PGPORT=" . phpcompta_psql_port);
+    } else  {
+        die ('Aucune connection');
     }
 
     $retour='<hr>'.HtmlInput::button_anchor("Retour","?action=restore");
@@ -69,8 +71,6 @@ if ( isset ($_REQUEST['sa'] ))
     // Restore a folder (dossier)
     if ( $_REQUEST['t']=='d')
     {
-        ini_set('upload_max_filesize','25M');
-        ini_set('post_max_size','25M');
         echo '<div class="content" style="width:80%;margin-left:10%">';
 
         $cn=new Database();
@@ -143,9 +143,6 @@ if ( isset ($_REQUEST['sa'] ))
 
     if ( $_REQUEST['t']=='m')
     {
-        ini_set('upload_max_filesize','25M');
-        ini_set('post_max_size','25M');
-
         echo '<div class="content">';
 
         $cn=new Database();
@@ -196,7 +193,7 @@ if ( isset ($_REQUEST['sa'] ))
 
         $new_cn->apply_patch($name,0);
 
-        echo '<span class="error">'.'Ne pas recharger la page, sinon votre 
base de données sera restaurée une fois de plus'.'</span>';
+        echo '<span class="error">'._('Ne pas recharger la page, sinon votre 
base de données sera restaurée une fois de plus').'</span>';
         echo $retour;
 
         echo '</div>';



reply via email to

[Prev in Thread] Current Thread [Next in Thread]