Example #1
0
    }
}
if (!empty($_POST['inscription'])) {
    // Initialisation de AFUP_Log
    require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Logs.php';
    AFUP_Logs::initialiser($bdd, $droits->obtenirIdentifiant());
    require_once 'inscription.php';
}
if ($_GET['page'] == 'se_deconnecter') {
    $droits->seDeconnecter();
    header('Location: index.php?page=connexion');
    exit;
}
if ($_GET['page'] == 'desinscription_mailing') {
    require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_BlackList.php';
    $blackList = new AFUP_BlackList($bdd);
    $mail = trim(mcrypt_cbc(MCRYPT_TripleDES, 'MailingAFUP', base64_decode(urldecode($_GET['hash'])), MCRYPT_DECRYPT, '@Mailing'));
    $blackList->blackList($mail);
    afficherMessage("Votre email a été effacé.\nYour email has been deleted.", '/');
    exit;
}
if (!empty($_GET['hash'])) {
    $droits->seDeconnecter();
    $droits->seConnecterEnAutomatique($_GET['hash']);
}
if (!$droits->estConnecte() and $_GET['page'] != 'connexion' and $_GET['page'] != 'mot_de_passe_perdu' and $_GET['page'] != 'message' and $_GET['page'] != 'inscription') {
    header('Location: index.php?page=connexion&echec=' . $droits->verifierEchecConnexion() . '&page_demandee=' . urlencode($_SERVER['REQUEST_URI']));
    exit;
}
// On vérifie que l'utilisateur a le droit d'accéder à la page
require_once dirname(__FILE__) . '/../../../configs/application/pages.php';
Example #2
0
<?php

// Impossible to access the file itself
if (!defined('PAGE_LOADED_USING_INDEX')) {
    trigger_error("Direct access forbidden.", E_USER_ERROR);
    exit;
}
$action = verifierAction(array('index', 'mailing', 'ajouter', 'modifier', 'supprimer'));
$smarty->assign('action', $action);
set_time_limit(0);
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Mailing.php';
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Forum.php';
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_BlackList.php';
require_once 'phpmailer/class.phpmailer.php';
$forum = new AFUP_Forum($bdd);
$blackList = new AFUP_BlackList($bdd);
$mailing = new AFUP_Mailing($bdd);
if ($action == 'mailing') {
    switch ($_GET['liste']) {
        case 'membre_a_jour_cotisation':
            require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Assemblee_Generale.php';
            $assemblee = new AFUP_Assemblee_Generale($bdd);
            $liste = $assemblee->obtenirListeEmailPersonnesAJourDeCotisation();
            break;
        case 'ancien_conferencier':
            require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_AppelConferencier.php';
            $forum_appel = new AFUP_AppelConferencier($bdd);
            $liste = $forum_appel->obtenirListeEmailAncienConferencier();
            break;
        case 'ancien_visiteur':
            require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Inscriptions_Forum.php';