diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8334e1c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "framanav"] + path = framanav + url = https://github.com/framasoft/framanav.git diff --git a/bandeaux.php b/bandeaux.php index bcd2b20..dbc0c85 100644 --- a/bandeaux.php +++ b/bandeaux.php @@ -41,11 +41,11 @@ include_once('fonctions.php'); function framanav() { - if (file_exists($_SERVER['DOCUMENT_ROOT']."/framanav/nav.inc.html")) { - echo "\n".' '."\n";; - echo ''."\n"; - include_once($_SERVER['DOCUMENT_ROOT']."/framanav/nav.inc.html"); - echo ' '."\n"; + if (file_exists($_SERVER['DOCUMENT_ROOT']."/framanav/nav.php")) { + //echo "\n".' '."\n";; + //echo ''."\n"; + include_once($_SERVER['DOCUMENT_ROOT']."/framanav/nav.php"); + //echo ' '."\n"; } } diff --git a/choix_date.php b/choix_date.php index b58e4ca..0349ef7 100644 --- a/choix_date.php +++ b/choix_date.php @@ -41,7 +41,7 @@ session_start(); include_once('creation_sondage.php'); -if (file_exists('bandeaux_local.php')) { +if (is_readable('bandeaux_local.php')) { include_once('bandeaux_local.php'); } else { include_once('bandeaux.php'); @@ -224,11 +224,14 @@ if (!issetAndNoEmpty('nom', $_SESSION) && !issetAndNoEmpty('adresse', $_SESSION) echo '
'."\n"; //Debut du formulaire et bandeaux de tete - echo '