[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);
- [Noalyss-commit] [noalyss] 01/39: Pierre-François P. Ajout des parenthèses dans le calcul des champs numériques, (continued)
- [Noalyss-commit] [noalyss] 01/39: Pierre-François P. Ajout des parenthèses dans le calcul des champs numériques, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 05/39: Code : add connection by DSN, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 07/39: Remove DB connect with DSN, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 04/39: Fix bug in recover password Include sendmail.class.php fix bug sending email with file (compatibility PHP7), Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 10/39: Task #1532 : detail payment, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 11/39: #1583: [Cosmétique] Liste de catégories de fiches, espace avant les (), Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 08/39: #1798 French calendar, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 09/39: Compatility PHP7.4, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 02/39: Bug Database:lo_unlink unknown variable, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 06/39: Compatibility postgresql 12, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 03/39: Fix problem with redirect,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 12/39: CSS : new background-selected for a row in table, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 16/39: task #0001413: Duplication d'opération 2 - le retour, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 18/39: Task #1803 : export detail of an operation in PDF, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 14/39: task #0001801: CARD : mise à jour fiche , effacement et modification, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 15/39: Select Box : improve position in floating element, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 17/39: task #0001801: CARD : mise à jour fiche , effacement et modification, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 25/39: Code : not direct access to $_GET Bug : javascript didn't work, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 26/39: Bug : compatibility PHP7.4, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 13/39: JS : improve code alternate_row_color, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 19/39: Set new version, Dany De Bontridder, 2020/07/11