noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 20/24: Cosmetic : restore administration, we


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 20/24: Cosmetic : restore administration, we set the max filesize
Date: Tue, 12 Jul 2022 07:05:35 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 878d7baca194f3c1feac309bb9b890ff9dd2b0a0
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Jun 4 18:10:41 2022 +0200

    Cosmetic : restore administration, we set the max filesize
---
 include/restore.inc.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/restore.inc.php b/include/restore.inc.php
index 5f15455cf..38456e84e 100644
--- a/include/restore.inc.php
+++ b/include/restore.inc.php
@@ -202,12 +202,13 @@ if ( isset ($_REQUEST['sa'] ))
 else
 {
     echo '<div class="content" style="width:80%;margin-left:10%">';
-    echo '<form method="POST" action="admin-noalyss.php" 
enctype="multipart/form-data"  onsubmit="waiting_box();return true;" >';
+    printf( '<form method="POST" action="admin-noalyss.php" 
enctype="multipart/form-data"  onsubmit="return (check_file_size(this,%s) && 
waiting_box())" >',MAX_FILE_SIZE);
     echo HtmlInput::hidden('action','restore');
     echo HtmlInput::hidden('sa','r');
     echo '<table>';
     echo '<tr><td>'._("Nom de la base de donnée").Icon_Action::infobulle(29)
                        .'</td>';
+    echo HtmlInput::hidden("MAX_FILE_SIZE",MAX_FILE_SIZE);
     $wNom=new IText();
     $wNom->name="database";
     $wNom->size=30;



reply via email to

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