当前位置: 首页>>代码示例>>PHP>>正文


PHP verifierAction函数代码示例

本文整理汇总了PHP中verifierAction函数的典型用法代码示例。如果您正苦于以下问题:PHP verifierAction函数的具体用法?PHP verifierAction怎么用?PHP verifierAction使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了verifierAction函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: trigger_error

<?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('lister', 'editer'));
$smarty->assign('action', $action);
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Compta.php';
$compta = new AFUP_Compta($bdd);
if ($action == 'lister') {
    $listEvenement = $compta->obtenirListEvenements('liste');
    $smarty->assign('listEvenement', $listEvenement);
    if (!isset($_GET['idevnt']) || intval($_GET['idevnt']) == 0) {
        $idevnt = 8;
    } else {
        $idevnt = $_GET['idevnt'];
    }
    $smarty->assign('idevnt', $idevnt);
    $debit = $compta->obtenirSyntheseEvenement(1, $idevnt);
    $smarty->assign('debit', $debit);
    $credit = $compta->obtenirSyntheseEvenement(2, $idevnt);
    $smarty->assign('credit', $credit);
    $totalDepense = $compta->obtenirTotalSyntheseEvenement(1, $idevnt);
    $smarty->assign('totalDepense', $totalDepense);
    $totalRecette = $compta->obtenirTotalSyntheseEvenement(2, $idevnt);
    $smarty->assign('totalRecette', $totalRecette);
    $difMontant = $totalRecette - $totalDepense;
    $smarty->assign('difMontant', $difMontant);
}
开发者ID:fferriere,项目名称:web,代码行数:31,代码来源:compta_synthese.php

示例2: trigger_error

<?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('lister', 'ajouter', 'modifier', 'supprimer', 'inscrire_forum', 'associer_gravatar'));
$tris_valides = array();
$sens_valides = array('asc', 'desc');
$smarty->assign('action', $action);
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_AppelConferencier.php';
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Inscriptions_Forum.php';
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Facturation_Forum.php';
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Forum.php';
$forum = new AFUP_Forum($bdd);
$forum_appel = new AFUP_AppelConferencier($bdd);
$forum_inscriptions = new AFUP_Inscriptions_Forum($bdd);
$forum_facturation = new AFUP_Facturation_Forum($bdd);
if ($action == 'inscrire_forum') {
    if (!isset($_GET['id_forum']) || intval($_GET['id_forum']) == 0) {
        $_GET['id_forum'] = $forum->obtenirDernier();
    }
    $sessions = $forum_appel->obtenirListeSessionsPlannifies($_GET['id_forum']);
    foreach (array(353, 354, 355, 356, 357, 358, 359, 361, 362, 363, 364, 366) as $id_projet_php) {
        $sessions[] = array('session_id' => $id_projet_php, 'is_projet' => true);
    }
    $valeurs['id_forum'] = (int) $_GET['id_forum'];
    $nb_conferencier = 0;
    $valeurs['citer_societe'] = true;
    $valeurs['newsletter_nexen'] = true;
开发者ID:fferriere,项目名称:web,代码行数:31,代码来源:forum_conferenciers.php

示例3: trigger_error

<?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('lister', 'relancer'));
$smarty->assign('action', $action);
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Cotisations.php';
$cotisations = new AFUP_Cotisations($bdd);
if ($action == 'lister') {
    $relances_personne_morales = $cotisations->obtenirListeRelancesPersonnesMorales();
    if (empty($relances_personne_morales)) {
        $relances_personne_morales = null;
    }
    $smarty->assign('relances_personnes_morales', $relances_personne_morales);
    $relances_personne_physiques = $cotisations->obtenirListeRelancesPersonnesPhysiques();
    if (empty($relances_personne_physiques)) {
        $relances_personne_physiques = null;
    }
    $smarty->assign('relances_personnes_physiques', $relances_personne_physiques);
} elseif ($action == 'relancer') {
    $donnees = array_keys($_POST);
    $ok = true;
    $liste = "";
    for ($i = 0, $taille = count($donnees); $i < $taille; $i++) {
        if (FALSE !== strpos($donnees[$i], "_")) {
            $type_personne = substr($donnees[$i], 0, 1);
            $id_personne = substr($donnees[$i], 2);
            $ok = $cotisations->relancer($type_personne, $id_personne);
开发者ID:fferriere,项目名称:web,代码行数:31,代码来源:relances.php

示例4: verifierAction

<?php

$action = verifierAction(array('lister', 'ajouter', 'modifier', 'supprimer'));
$tris_valides = array('titre', 'date');
$sens_valides = array('asc', 'desc');
$smarty->assign('action', $action);
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Site.php';
$feuilles = new AFUP_Site_Feuilles($bdd);
if ($action == 'lister') {
    $f = array();
    $list_champs = '*';
    $list_ordre = 'date';
    $list_sens = 'desc';
    $list_filtre = false;
    if (isset($_GET['sens']) && in_array($_GET['sens'], array_keys($sens_valides))) {
        $list_sens = $_GET['sens'];
    } else {
        $_GET['sens'] = $list_sens;
    }
    if (isset($_GET['tri']) && in_array($_GET['tri'], array_keys($tris_valides))) {
        $list_ordre = $_GET['tri'];
    } else {
        $_GET['tri'] = $list_ordre;
    }
    // Mise en place de la liste dans le scope de smarty
    $smarty->assign('feuilles', $feuilles->obtenirListe($list_champs, $list_ordre . ' ' . $list_sens, $list_filtre));
} elseif ($action == 'supprimer') {
    $feuille = new AFUP_Site_Feuille($_GET['id']);
    if ($feuille->supprimer()) {
        AFUP_Logs::log('Suppression de la feuille ' . $_GET['id']);
        afficherMessage('La feuille a été supprimée', 'index.php?page=site_feuilles&action=lister');
开发者ID:perrich,项目名称:web,代码行数:31,代码来源:site_feuilles.php

示例5: trigger_error

<?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('lister', 'editer', 'raccourci', 'view'));
//$compte = verifierAction(array('espece','paypal','courant','livreta'));
//$tris_valides = array('Date', 'Evenement', 'catégorie', 'Description');
//$sens_valides = array('asc', 'desc');
$smarty->assign('action', $action);
if (isset($_GET['details']) && $_GET['details']) {
    $details = $_GET['details'];
} else {
    $details = "";
}
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Compta.php';
$compta = new AFUP_Compta($bdd);
if (isset($_GET['id_periode']) && $_GET['id_periode']) {
    $id_periode = $_GET['id_periode'];
} else {
    $id_periode = "";
}
$id_periode = $compta->obtenirPeriodeEnCours($id_periode);
$smarty->assign('id_periode', $id_periode);
$listPeriode = $compta->obtenirListPeriode();
$smarty->assign('listPeriode', $listPeriode);
$periode_debut = $listPeriode[$id_periode - 1]['date_debut'];
$periode_fin = $listPeriode[$id_periode - 1]['date_fin'];
$smarty->assign('compteurLigne', 1);
开发者ID:fferriere,项目名称:web,代码行数:31,代码来源:compta_balance.php

示例6: verifierAction

<?php

$action = verifierAction(array('lister', 'mail', 'envoyer'));
$tris_valides = array();
$sens_valides = array('asc', 'desc');
$smarty->assign('action', $action);
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_AppelConferencier.php';
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Forum.php';
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Droits.php';
$forum = new AFUP_Forum($bdd);
$forum_appel = new AFUP_AppelConferencier($bdd);
$droits = new AFUP_Droits($bdd);
$identifiant = $droits->obtenirIdentifiant();
$forum_vote_id = $forum->obtenirDernier();
if ($action == 'lister') {
    // Valeurs par défaut des paramètres de tri
    $vote = isset($_POST['vote']) ? (int) $_POST['vote'] : 0;
    $session_id = isset($_POST['session_id']) ? (int) $_POST['session_id'] : 0;
    if ($vote > 0 && $session_id > 0 && $forum_appel->dejaVote($identifiant, $session_id) === false) {
        $today = date('Y-m-d');
        $salt = $forum_appel->obtenirGrainDeSel($identifiant);
        $res = $forum_appel->noterLaSession($session_id, $vote, $salt, $today);
        $forum_appel->aVote($identifiant, $session_id);
        AFUP_Logs::log($_SESSION['afup_login'] . ' a voté sur la session n°' . $session_id);
    }
    $sessions_all = $forum_appel->obtenirListeSessionsPlannifies($forum_vote_id);
    $sessions_non_votes = array();
    foreach ($sessions_all as $session) {
        if ($forum_appel->dejaVote($identifiant, $session['session_id']) === false) {
            $sessions_non_votes[] = $session;
        }
开发者ID:perrich,项目名称:web,代码行数:31,代码来源:forum_planning_vote.php

示例7: verifierAction

<?php

$action = verifierAction(array('lister', 'debit', 'credit', 'ajouter', 'modifier', 'supprimer', 'importer', 'ventiler'));
//$tris_valides = array('Date', 'Evenement', 'catégorie', 'Description');
//$sens_valides = array('asc', 'desc');
$smarty->assign('action', $action);
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Compta.php';
$compta = new AFUP_Compta($bdd);
if (isset($_GET['id_periode']) && $_GET['id_periode']) {
    $id_periode = $_GET['id_periode'];
} else {
    $id_periode = "";
}
$id_periode = $compta->obtenirPeriodeEnCours($id_periode);
$smarty->assign('id_periode', $id_periode);
$listPeriode = $compta->obtenirListPeriode();
$smarty->assign('listPeriode', $listPeriode);
$periode_debut = $listPeriode[$id_periode - 1]['date_debut'];
$periode_fin = $listPeriode[$id_periode - 1]['date_fin'];
if ($action == 'lister') {
    $journal = $compta->obtenirJournal('', $periode_debut, $periode_fin);
    $smarty->assign('journal', $journal);
} elseif ($action == 'debit') {
    $journal = $compta->obtenirJournal(1, $periode_debut, $periode_fin);
    $smarty->assign('journal', $journal);
} elseif ($action == 'credit') {
    $journal = $compta->obtenirJournal(2, $periode_debut, $periode_fin);
    $smarty->assign('journal', $journal);
} elseif ($action == 'ajouter' || $action == 'modifier') {
    $formulaire =& instancierFormulaire();
    if ($action == 'modifier') {
开发者ID:perrich,项目名称:web,代码行数:31,代码来源:compta_journal.php

示例8: verifierAction

<?php

$action = verifierAction(array('ausculter', 'calculer'));
$smarty->assign('action', $action);
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Personnes_Physiques.php';
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Planete_Billet.php';
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Oeuvres.php';
$oeuvres = new AFUP_Oeuvres($bdd);
$persone_physique = new AFUP_Personnes_Physiques($bdd);
if ($action == 'calculer') {
    if ($oeuvres->calculer()) {
        AFUP_Logs::log('Calculer les oeuvres de l\'AFUP');
        afficherMessage('Les oeuvres ont été calculées', 'index.php?page=membre_oeuvres');
    } else {
        afficherMessage('Une erreur est survenue lors du calcul des oeuvres', 'index.php?page=membre_oeuvres', true);
    }
}
$id_personne_physique = isset($_GET['id_personne_physique']) ? (int) $_GET['id_personne_physique'] : $droits->obtenirIdentifiant();
$mes_sparklines = $oeuvres->obtenirSparklinePersonnelleSur12Mois($id_personne_physique);
$smarty->assign('mes_sparklines', $mes_sparklines);
$categories = $oeuvres->obtenirCategories();
$les_personnes_physiques = array();
foreach ($categories as $categorie) {
    $id_personnes_physiques = $oeuvres->obtenirPersonnesPhysiquesLesPlusActives($categorie);
    $les_sparklines = $oeuvres->obtenirSparklinesParCategorieDes12DerniersMois($id_personnes_physiques, $categorie);
    $smarty->assign('les_sparklines_actives_' . $categorie, $les_sparklines);
    $les_personnes_physiques += $persone_physique->obtenirListe('*', 'nom, prenom', false, false, true, $id_personnes_physiques);
}
$smarty->assign('les_personnes_physiques', $les_personnes_physiques);
开发者ID:perrich,项目名称:web,代码行数:29,代码来源:membre_oeuvres.php

示例9: trigger_error

<?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('lister', 'ajouter', 'modifier', 'supprimer', 'envoi_mdp', 'envoi_bienvenue'));
$tris_valides = array('nom' => 'nom <sens>, prenom', 'prenom' => 'prenom <sens>, nom', 'etat' => 'etat <sens>, prenom, nom');
$sens_valides = array('asc', 'desc');
$smarty->assign('action', $action);
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Personnes_Physiques.php';
$personnes_physiques = new AFUP_Personnes_Physiques($bdd);
if ($action == 'lister') {
    // Valeurs par défaut des paramètres de tri
    $list_champs = '*';
    $list_ordre = 'nom, prenom';
    $list_sens = 'asc';
    $list_filtre = false;
    // Modification des paramètres de tri en fonction des demandes passées en GET
    if (isset($_GET['tri']) && in_array($_GET['tri'], array_keys($tris_valides)) && isset($_GET['sens']) && in_array($_GET['sens'], $sens_valides)) {
        $list_ordre = str_replace('<sens>', $_GET['sens'], $tris_valides[$_GET['tri']]);
    }
    if (isset($_GET['filtre'])) {
        $list_filtre = $_GET['filtre'];
    }
    // Mise en place de la liste dans le scope de smarty
    $smarty->assign('personnes', $personnes_physiques->obtenirListe($list_champs, $list_ordre, $list_filtre));
} elseif ($action == 'supprimer') {
    if ($personnes_physiques->supprimer($_GET['id'])) {
        AFUP_Logs::log('Suppression de la personne physique ' . $_GET['id']);
开发者ID:fferriere,项目名称:web,代码行数:31,代码来源:personnes_physiques.php

示例10: trigger_error

<?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('lister', 'exporter', 'download_attachments'));
$smarty->assign('action', $action);
if (isset($_GET['compte']) && $_GET['compte']) {
    $compte = $_GET['compte'];
} else {
    $compte = 1;
}
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Compta.php';
$compta = new AFUP_Compta($bdd);
if (isset($_GET['id_periode']) && $_GET['id_periode']) {
    $id_periode = $_GET['id_periode'];
} else {
    $id_periode = "";
}
$id_periode = $compta->obtenirPeriodeEnCours($id_periode);
$smarty->assign('id_periode', $id_periode);
$listPeriode = $compta->obtenirListPeriode();
$smarty->assign('listPeriode', $listPeriode);
if ($action == 'lister') {
    $periode_debut = $listPeriode[$id_periode - 1]['date_debut'];
    $periode_fin = $listPeriode[$id_periode - 1]['date_fin'];
    $smarty->assign('compteurLigne', 1);
    $journal = $compta->obtenirJournalBanque($compte, $periode_debut, $periode_fin);
    $smarty->assign('journal', $journal);
开发者ID:fferriere,项目名称:web,代码行数:31,代码来源:compta_banque.php

示例11: trigger_error

<?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('lister', 'telecharger_devis', 'telecharger_facture', 'envoyer_facture', 'envoyer_tout', 'facturer_facture', 'supprimer_facture', 'changer_date_reglement'));
$tris_valides = array('date_facture', 'email', 'societe', 'etat');
$sens_valides = array('asc', 'desc');
$smarty->assign('action', $action);
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Facturation_Forum.php';
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Forum.php';
$forum = new AFUP_Forum($bdd);
$forum_facturation = new AFUP_Facturation_Forum($bdd);
if ($action == 'lister') {
    // Valeurs par défaut des paramètres de tri
    $list_champs = 'reference, date_facture, montant, email, societe, etat, facturation, date_reglement, nom, prenom';
    $list_ordre = 'date_facture DESC';
    $list_associatif = false;
    $list_filtre = false;
    // Modification des paramètres de tri en fonction des demandes passées en GET
    if (isset($_GET['tri']) && in_array($_GET['tri'], $tris_valides) && isset($_GET['sens']) && in_array($_GET['sens'], $sens_valides)) {
        $list_ordre = $_GET['tri'] . ' ' . $_GET['sens'];
    }
    if (isset($_GET['filtre'])) {
        $list_filtre = $_GET['filtre'];
    }
    if (!isset($_GET['id_forum']) || intval($_GET['id_forum']) == 0) {
        $_GET['id_forum'] = $forum->obtenirDernier();
    }
开发者ID:fferriere,项目名称:web,代码行数:31,代码来源:forum_facturation.php

示例12: verifierAction

<?php

$action = verifierAction(array('lister', 'voter', 'consulter'));
$smarty->assign('action', $action);
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Votes.php';
$votes = new AFUP_Votes($bdd);
if ($action == 'lister') {
    $list_champs = '*';
    $list_ordre = 'lancement';
    $list_sens = 'desc';
    $list_filtre = false;
    $smarty->assign('votes', $votes->obtenirListeVotesOuverts(time(), $list_champs, $list_ordre, $list_filtre));
} else {
    require_once 'Afup/AFUP_Votes.php';
    $votes = new AFUP_Votes($bdd);
    $formulaire =& instancierFormulaire();
    if (isset($_GET['id'])) {
        $champs = $votes->obtenirPoids($_GET['id'], $droits->obtenirIdentifiant());
        $formulaire->setDefaults($champs);
        $formulaire->addElement('header', null, 'Poids');
        $liste_poids = $votes->obtenirListePoids((int) $_GET['id']);
        if (is_array($liste_poids)) {
            $poids_total = 0;
            foreach ($liste_poids as $poids) {
                $formulaire->addElement('static', 'poids_' . $poids['id_vote'] . '-' . $poids['id_personne_physique'], date('d/m/Y h:i', $poids['date']), $poids['commentaire'] . ' (' . $poids['personne_physique'] . ')<br /><strong>' . $poids['poids'] . '</strong>');
                $poids_total += $poids['poids'];
            }
            $formulaire->addElement('static', 'poids_total', 'Résultat total', '<strong>' . $poids_total . '</strong>');
        }
        $formulaire->addElement('header', '', 'Voter');
        $vote = $votes->obtenir($_GET['id']);
开发者ID:perrich,项目名称:web,代码行数:31,代码来源:membre_votes.php

示例13: trigger_error

<?php

// Impossible to access the file itself
if (!defined('PAGE_LOADED_USING_INDEX')) {
    trigger_error("Direct access forbidden.", E_USER_ERROR);
    exit;
}
// Actions
$defaultAction = 'search';
$action = verifierAction([$defaultAction, 'results']);
// Some smarty vars
$smarty->assign('action', $action);
$smarty->assign('page', $_GET['page']);
// Compta
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Compta.php';
$compta = new AFUP_Compta($bdd);
// Switch on action name
switch ($action) {
    // Search form
    case "search":
    default:
        // nothing to do
        break;
        // Results
    // Results
    case 'results':
        // No search param?
        if (!isset($_GET['q']) || !($q = trim($_GET['q']))) {
            $smarty->assign('action', $defaultAction);
            continue;
        }
开发者ID:fferriere,项目名称:web,代码行数:31,代码来源:compta_recherche.php

示例14: trigger_error

<?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('lister', 'lister_conferencier_orga'));
$tris_valides = array('i.date', 'i.nom', 'f.societe', 'i.etat');
$sens_valides = array('desc', 'asc');
$smarty->assign('action', $action);
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Inscriptions_Forum.php';
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Facturation_Forum.php';
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Forum.php';
$forum = new AFUP_Forum($bdd);
$forum_inscriptions = new AFUP_Inscriptions_Forum($bdd);
$forum_facturation = new AFUP_Facturation_Forum($bdd);
$list_champs = 'i.id, i.date, i.nom, i.prenom, i.email, f.societe, i.etat, i.coupon, i.type_inscription';
$list_ordre = 'I.nom asc';
$list_sens = 'desc';
$list_associatif = false;
$list_filtre = false;
if (isset($_GET['tri']) && in_array($_GET['tri'], $tris_valides) && isset($_GET['sens']) && in_array($_GET['sens'], $sens_valides)) {
    $list_ordre = $_GET['tri'] . ' ' . $_GET['sens'];
}
if (!isset($_GET['id_forum']) || intval($_GET['id_forum']) == 0) {
    $_GET['id_forum'] = $forum->obtenirDernier();
}
$smarty->assign('id_forum', $_GET['id_forum']);
$smarty->assign('forum_tarifs_lib', $AFUP_Tarifs_Forum_Lib);
$smarty->assign('forums', $forum->obtenirListe());
开发者ID:fferriere,项目名称:web,代码行数:31,代码来源:forum_emargement.php

示例15: trigger_error

<?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('lister', 'export'));
require_once dirname(__FILE__) . '/../../../sources/Afup/Bootstrap/Http.php';
// Gestion des droits
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Utils.php';
$droits = AFUP_Utils::fabriqueDroits($bdd);
if (!$droits->estConnecte()) {
    header('Location: index.php?page=connexion&echec=' . $droits->verifierEchecConnexion());
    exit;
}
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Inscriptions_Forum.php';
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Facturation_Forum.php';
require_once dirname(__FILE__) . '/../../../sources/Afup/AFUP_Forum.php';
function array2csv(array &$array)
{
    if (count($array) == 0) {
        return null;
    }
    ob_start();
    $df = fopen("php://output", 'w');
    fputcsv($df, array_keys(reset($array)));
    foreach ($array as $row) {
        fputcsv($df, $row);
    }
    fclose($df);
开发者ID:fferriere,项目名称:web,代码行数:31,代码来源:forum_badge.php


注:本文中的verifierAction函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。