]> git.p6c8.net - jirafeau_project.git/commitdiff
[FEATURE] No logout button for upload_ip_nopassword
authorMatthieu Schneider <matthieu.schneider@gulfsat.mg>
Tue, 31 Oct 2017 13:36:00 +0000 (16:36 +0300)
committerJérôme Jutteau <jerome.jutteau@outscale.com>
Thu, 5 Sep 2019 21:35:39 +0000 (23:35 +0200)
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