noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 03/39: Fix problem with redirect


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 03/39: Fix problem with redirect
Date: Sat, 11 Jul 2020 13:20:35 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 39617e77e419a627c71e6a81819d0543949e8d97
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Sun May 10 11:59:58 2020 +0200

    Fix problem with redirect
---
 html/user_login.php  | 2 +-
 include/constant.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/html/user_login.php b/html/user_login.php
index 94e4a90..0780af7 100644
--- a/html/user_login.php
+++ b/html/user_login.php
@@ -129,7 +129,7 @@ if ( $User->admin == 0 || (defined("MULTI")&& MULTI == 0 ) )
     $folder=$User->get_available_folder();
     if ( $folder != null  && count($folder) == 1 )
     {
-
+            echo _("Si la redirection ne fonctionne pas, vous devez changer la 
valeur de NOALYSS_URL ");
             redirect(NOALYSS_URL.'/do.php?gDossier='.$folder[0]['dos_id']);
             exit();
     }
diff --git a/include/constant.php b/include/constant.php
index a10f5bb..b27c1a3 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -322,7 +322,7 @@ if ( ! defined ("NOALYSS_URL")) {
         $protocol=$_SERVER['REQUEST_SCHEME'];
     }
     $base=$protocol.'://'.
-            $_SERVER['HTTP_HOST'].
+            $_SERVER['SERVER_NAME'].
             ":".$_SERVER['SERVER_PORT'].
             dirname($_SERVER['PHP_SELF']);
     define ("NOALYSS_URL",$base);



reply via email to

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