Skip to content

Commit

Permalink
amélioration : paramètre dans config.inc.php pour gérer l'affichage d…
Browse files Browse the repository at this point in the history
…u lien vers la page des CGU depuis la page login.php
  • Loading branch information
ynaessens committed Jul 30, 2021
1 parent 5b7f5d8 commit 3e010b6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
7 changes: 5 additions & 2 deletions include/config.inc.php
Expand Up @@ -2,9 +2,9 @@
/**
* config.inc.php
* Fichier de configuration de GRR
* Dernière modification : $Date: 2019-03-22 15:00$
* Dernière modification : $Date: 2021-07-30 11:16$
* @author JeromeB & Laurent Delineau & Yan Naessens
* @copyright Copyright 2003-2018 Team DEVOME - JeromeB
* @copyright Copyright 2003-2021 Team DEVOME - JeromeB
* @link http://www.gnu.org/licenses/licenses.html
*
* This file is part of GRR.
Expand Down Expand Up @@ -121,6 +121,9 @@
# paramètre provisoire pour choisir le type de calendrier à utiliser dans le menu gauche des pages plannings minicals (GRR classique): 0 ou JQuery : 1
$useJQueryCalendar = 0;

# paramètre pour afficher ou non la page des CGU à partir de la page de login (0 = non, 1 = oui)
$affichePageCgu = 1;

##################################################
# Cas d'une authentification via config.inc.php #
##################################################
Expand Down
7 changes: 5 additions & 2 deletions include/config.inc.php.ori
Expand Up @@ -2,9 +2,9 @@
/**
* config.inc.php
* Fichier de configuration de GRR
* Dernière modification : $Date: 2019-03-22 15:00$
* Dernière modification : $Date: 2021-07-30 11:16$
* @author JeromeB & Laurent Delineau & Yan Naessens
* @copyright Copyright 2003-2018 Team DEVOME - JeromeB
* @copyright Copyright 2003-2021 Team DEVOME - JeromeB
* @link http://www.gnu.org/licenses/licenses.html
*
* This file is part of GRR.
Expand Down Expand Up @@ -121,6 +121,9 @@ $nbMaxJoursLogConnexion = 365;
# paramètre provisoire pour choisir le type de calendrier à utiliser dans le menu gauche des pages plannings minicals (GRR classique): 0 ou JQuery : 1
$useJQueryCalendar = 0;

# paramètre pour afficher ou non la page des CGU à partir de la page de login (0 = non, 1 = oui)
$affichePageCgu = 1;

##################################################
# Cas d'une authentification via config.inc.php #
##################################################
Expand Down
5 changes: 3 additions & 2 deletions login.php
Expand Up @@ -3,7 +3,7 @@
* login.php
* interface de connexion
* Ce script fait partie de l'application GRR
* Dernière modification : $Date: 2021-07-24 17:04$
* Dernière modification : $Date: 2021-07-30 11:16$
* @author Laurent Delineau & JeromeB & Yan Naessens
* @copyright Copyright 2003-2021 Team DEVOME - JeromeB
* @link http://www.gnu.org/licenses/licenses.html
Expand Down Expand Up @@ -218,7 +218,8 @@
if ($lien != "")
echo "<p>[".$lien."]</p>";
}
echo "<p>[<a href='page.php?page=CGU' target='_blank' rel='noopener noreferer'>".get_vocab("cgu")."</a>]</p>";
if ($affichePageCgu)
echo "<p>[<a href='page.php?page=CGU' target='_blank' rel='noopener noreferer'>".get_vocab("cgu")."</a>]</p>";
echo "<a href=\"javascript:history.back()\">".get_vocab("previous")." - <b>".Settings::get("company")."</b></a>";
echo "<br /><br />";
echo "<br /><p class=\"small\"><a href=\"".$grr_devel_url."\">".get_vocab("mrbs")."</a> - ".get_vocab("grr_version").affiche_version();
Expand Down

0 comments on commit 3e010b6

Please sign in to comment.