diff --git a/utils/portail_captif.py b/utils/portail_captif.py index f8bc9316..1726321f 100644 --- a/utils/portail_captif.py +++ b/utils/portail_captif.py @@ -4,7 +4,8 @@ import sys import subprocess import time import ldap -sys.path.append('/usr/scripts/') +if '/usr/scripts' not in sys.path: + sys.path.append('/usr/scripts') import lc_ldap.shortcuts import lc_ldap.objets @@ -51,7 +52,11 @@ deco={ 'bloq':'ERR_CUSTOM_BLOQ.html', 'nouvelle_annee':'ERR_CUSTOM_NOUVELLE_ANNEE.html', - 'paiement': 'ERR_CUSTOM_READHESION.html', + 'paiement':'ERR_CUSTOM_NOUVELLE_ANNEE.html', + + # en cas de sursis, la page donne une url pour continuer à naviguer + # sur Internet + 'paiement_sursis': 'ERR_CUSTOM_READHESION.html', 'proxy_local':'ERR_CUSTOM_PROXY_LOCAL.html', 'virus':'ERR_CUSTOM_BL_VIRUS.html',