]> git.p6c8.net - jirafeau_project.git/blobdiff - index.php
[FEATURE] Add check ip_nopassword in challenge_upload function
[jirafeau_project.git] / index.php
index 5c3ffce0ddc82ae5e9bf35133adeb779aa3a4df7..e860012d42601d6bb90e385db882ede171524ea6 100644 (file)
--- a/index.php
+++ b/index.php
@@ -259,7 +259,8 @@ else {
     </div> </fieldset>
 
     <?php
     </div> </fieldset>
 
     <?php
-    if (jirafeau_has_upload_password($cfg)) {
+    if (jirafeau_has_upload_password($cfg)
+        && false === jirafeau_challenge_upload_ip($cfg['upload_ip_nopassword'], get_ip_address($cfg))) {
         ?>
     <form method="post" class="form logout">
         <input type = "hidden" name = "action" value = "logout"/>
         ?>
     <form method="post" class="form logout">
         <input type = "hidden" name = "action" value = "logout"/>

patrick-canterino.de