Пример #1
0
     gerer_candidature();
     break;
 case 'modifier_candidature':
     modifier_candidature();
     break;
 case 'modifier_motif':
     modifier_motif();
     break;
 case 'lister_session':
     lister_session();
     break;
 case 'importer':
     importer();
     break;
 case 'exporter':
     exporter();
     break;
 case 'imprimer':
     imprimer();
     break;
 case 'rechercher_session':
     rechercher();
     break;
 case 'visualiser_session':
     visualiser_session();
     break;
 case 'session_rapide':
     session_rapide();
     break;
 default:
     page404();
Пример #2
0
echo "<tr class='mh_tdtitre'><td>";
echo "<table border='0' class='mh_tdborder' cellpadding='0' cellspacing='1' width='100%' align='center'><tbody>";
echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> TROLL (id/nom)\t</b></td><td width='50%'>" . exporter(troll_nom) . "</td><td width='17%'>" . $troll_id . "</td></tr>\n";
//echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> RACE	(race/niveau)	</b></td><td width='50%'>".exporter(troll_race)."</td><td width='17%'>mis à jour automatiquement toutes les nuits.".exporter(troll_niveau)."</td></tr>\n";
echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> RACE\t(race/niveau)\t</b></td><td width='50%'>" . exporter(troll_race) . "</td><td width='17%'>Mis à jour automatiquement toutes les nuits.</td></tr>\n";
echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> DLA\t(base/réél)\t</b></td><td width='50%'>" . $troll_dla_base_hh . "H" . $troll_dla_base_mm . "</td><td width='17%'>" . exporter(troll_dla_reel_hh) . "H" . exporter(troll_dla_reel_mm) . "</td></tr>\n";
echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> VUE\t(base/bm)\t</b></td><td width='50%'>" . exporter(troll_vue_base) . "</td><td width='17%'>" . exporter(troll_vue_bm) . "</td></tr>\n";
echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> PV\t\t\t</b></td><td width='50%'>" . exporter(troll_pvact) . "</td><td width='17%'>" . exporter(troll_pv) . "</td></tr>\n";
echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> REG\t(base/bm)\t</b></td><td width='50%'>" . exporter(troll_reg_base) . "</td><td width='17%'>" . exporter(troll_reg_bm) . " " . exporter(troll_reg_bmm) . "</td></tr>\n";
echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> ATT\t(base/bm)\t</b></td><td width='50%'>" . exporter(troll_att_base) . "</td><td width='17%'>" . exporter(troll_att_bm) . "</td></tr>\n";
echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> ESQ\t(base/bm)\t</b></td><td width='50%'>" . exporter(troll_esq_base) . "</td><td width='17%'>" . exporter(troll_esq_bm) . "</td></tr>\n";
echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> DEG\t(base/bm)\t</b></td><td width='50%'>" . exporter(troll_deg_base) . "</td><td width='17%'>" . exporter(troll_deg_bm) . "</td></tr>\n";
echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> ARM\t(base/bm)\t</b></td><td width='50%'>" . exporter(troll_arm_base) . "</td><td width='17%'>" . exporter(troll_arm_bm) . "</td></tr>\n";
echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> KILL / DEATH\t\t</b></td><td width='50%'>" . exporter(troll_kill) . "</td><td width='17%'>" . exporter(troll_death) . "</td></tr>\n";
echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> MM\t(base/bm)\t</b></td><td width='50%'>" . exporter(troll_mm_base) . "</td><td width='17%'>" . exporter(troll_mm_bm) . "</td></tr>\n";
echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> RM\t(base/bm)\t</b></td><td width='50%'>" . exporter(troll_rm_base) . "</td><td width='17%'>" . exporter(troll_rm_bm) . "</td></tr>\n";
$chaine_comps = "";
echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> Nb de Comp&eacute;tences</b></td><td width='50%'>" . $nb_comps . "</td><td width='17%'>&nbsp;</td></tr>\n";
for ($i = 0; $i < $nb_comps; $i++) {
    echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b>COMP. (nom/pourcentage) </b></td><td width='33%'>" . str_replace("Utiliser l'action ", "", $troll_cs[$i][0]) . "</td><td width='34%'>" . $troll_cs[$i][1] . "</td></tr>\n";
    $chaine_comps .= ($i == 0 ? "" : ", ") . htmlspecialchars(str_replace("Utiliser l'action ", "", $troll_cs[$i][0]), ENT_QUOTES) . " (" . $troll_cs[$i][1] . "%)";
}
$chaine_sorts = "";
echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b> Nb de Sorts Appris</b></td><td width='50%'>" . $nb_sorts . "</td><td width='17%'>&nbsp;</td></tr>\n";
for ($i = $nb_comps; $i < $nb_comps + $nb_sorts; $i++) {
    echo "<tr class='mh_tdpage'><td class='mh_tdtitre' width='33%'><b>SORT (nom/pourcentage) </b></td><td width='33%'>" . $troll_cs[$i][0] . "</td><td width='34%'>" . $troll_cs[$i][1] . "</td></tr>\n";
    $chaine_sorts .= ($i == $nb_comps ? "" : ", ") . acronyme($troll_cs[$i][0]) . " (" . $troll_cs[$i][1] . "%)";
}
echo "<input type=hidden name=nbcomps value=\"" . $nb_comps . "\">\n";
echo "<input type=hidden name=nbsorts value=\"" . $nb_sorts . "\">\n";
echo "<input type=hidden name=comps value=\"" . $chaine_comps . "\">\n";
Пример #3
0
function redirector()
{
    // Redirect 404 Errors
    if (is_404() || is_search() || is_archive()) {
        header("Location: " . URL . "");
    }
    $options = get_option('consultation_options');
    // Redirect Intro & Outro Categories
    if (is_category($options['cat_close']) || is_category($options['cat_open']) || is_category($options['cat_results'])) {
        header("Location: " . URL . "");
    }
    // Redirect Categories to Intro Posts
    if (is_category()) {
        $cur_cat_id = getCurrentCatID();
        //global $cnt;
        query_posts('cat=' . $options['cat_open']);
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                global $post;
                if (in_category($cur_cat_id)) {
                    header("Location: " . URL . "/?p=" . $post->ID);
                }
            }
        }
        wp_reset_query();
    }
    if (!empty($_GET['ec'])) {
        exporter();
    }
}