diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..65f5f1e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +*.kate* diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..5a928f6 --- /dev/null +++ b/.htaccess @@ -0,0 +1 @@ +Options -Indexes diff --git a/gestionsite/.htpasswd b/gestionsite/.htpasswd index 90a297b..e4ed400 100644 --- a/gestionsite/.htpasswd +++ b/gestionsite/.htpasswd @@ -1 +1 @@ -daniel:$apr1$Up83RCLZ$x46wYId2latEFsJARi/cL/ +daniel:$apr1$67uwe85A$ygTTmLOR/DxIJgPMqGVox. diff --git a/gestionsite/entete.html b/gestionsite/entete.php similarity index 100% rename from gestionsite/entete.html rename to gestionsite/entete.php diff --git a/gestionsite/envoiMailing.php b/gestionsite/envoiMailing.php index d7a1ec9..569183e 100644 --- a/gestionsite/envoiMailing.php +++ b/gestionsite/envoiMailing.php @@ -3,7 +3,7 @@ require_once '../session_init.php'; require_once 'config.inc.php'; require_once 'db.class.php'; -require_once 'entete.html'; +require_once 'entete.php'; $idVotation =$_GET["id"]; @@ -21,7 +21,7 @@ $dolibarr = new dbDolibarr(); if (empty($idVotation)) { - choixVotation('/gestionsite/envoiMailing.php') ; + choixVotation('./envoiMailing.php') ; }else { //chargement des données de la votation @@ -59,6 +59,7 @@ if (empty($idVotation)) print '
' . $adherent['email'] . ' ' . $adherent['firstname'] . ' ' . $adherent['lastname'] . EOLH . nl2br($text) . ''; if ( $_GET['status'] == 'Oui') { + //print $text; envoiMail($adherent['email'], $sujet, $text, $html=false, $cc='', $bcc=''); //envoiMail('dtux@free.fr', $sujet, $text, $html=false, $cc='', $bcc=''); } diff --git a/gestionsite/index.php b/gestionsite/index.php index 36928fb..2d7456e 100644 --- a/gestionsite/index.php +++ b/gestionsite/index.php @@ -2,7 +2,7 @@ require_once '../session_init.php'; require_once 'config.inc.php'; -require_once './entete.html'; +require_once 'entete.php'; print('