示例#1
0
function initSource()
{
    echo "<br><br><br><br>";
    afficher_titre_tableau('Les sources des outils ' . RELAISMAGO);
    $text = "Les outils " . RELAISMAGO . " sont développés sous licence GPL.<br/><br/>";
    $text .= "Vous pouvez obtenir les sources sur  <br/>";
    $text .= "<a href='https://github.com/relaismago/outils'>https://github.com/relaismago/outils</a>";
    $text .= "<br/><br/>Une documentation d'installation est disponible <a href='/documentation/documentation.pdf'>Ici</a>";
    $text .= " <br/><br/> Pour plus d'informations, contactez glupglup (51166).";
    afficher_contenu_tableau($text);
}
示例#2
0
function init_loterie()
{
    $img = "<img src='/images/loterie.jpg'>";
    //afficher_titre_tableau("$img",$text);
    afficher_titre_tableau($img);
    $loteries = new loteries();
    $id_loterie = $loteries->get_last_id_loterie();
    $loterie_participant = new loterie_participant($_SESSION[AuthTroll], $id_loterie);
    $id_troll = $_SESSION[AuthTroll];
    if ($_SESSION[admin] == "authenticated" && is_numeric($_GET[id_troll])) {
        $id_troll = $_GET[id_troll];
    }
    if ($_GET[admin] == "liste") {
        loterie_admin_liste();
    } elseif ($_POST[admin_post] == "enregistre") {
        loterie_admin_enregistre($_REQUEST[id_loterie]);
    } elseif ($_GET[admin] == "fiche") {
        loterie_admin_fiche($_REQUEST[id_loterie]);
    } elseif ($_GET[admin] == "cloturer") {
        loterie_admin_cloturer($_REQUEST[id_loterie]);
    } elseif ($_GET[admin] == "encours") {
        loterie_admin_encours($_REQUEST[id_loterie]);
    } elseif ($_POST[gain] == "enregistre") {
        loterie_interface_gain_enregistre($id_troll, $_POST[gain_num_loterie]);
    } elseif ($_GET[gain] == "liste") {
        loterie_interface_gain_liste($id_troll);
    } elseif ($_GET[gain] == "fiche") {
        loterie_interface_gain_fiche($id_troll, $_GET[id_loterie]);
    } elseif ($_GET[gain] == "liste") {
        loterie_interface_gain_liste($id_troll, $id_loterie);
    } elseif ($loterie_participant->is_participant()) {
        loterie_informations($id_loterie);
        loterie_participation_existante();
    } elseif (!$loterie_participant->can_participe()) {
        loterie_participation_refusee();
    } else {
        if ($_POST['actiondb'] == 'enregistre' && $_POST['participe'] == 'oui') {
            loterie_enregistre_participation($id_loterie);
        } else {
            loterie_informations($id_loterie);
            $loterie = new loterie($id_loterie);
            // on v&eacute;rifie que l'&eacute;tat &eacute;tait bien en_cours
            if ($loterie->get_etat() == 'en_cours') {
                loterie_nouvelle_participation($id_loterie);
            } else {
                afficher_contenu_tableau("La loterie n'est pas encore ouverte");
            }
        }
    }
}
示例#3
0
function initSource()
{
    echo "<br><br>";
    afficher_titre_tableau('Liens Pratiques');
    //$text .= "<a href=''></a><br>";
    $text .= "<b>Gowaps</b><br>";
    $text .= "<a href='http://www.mountyhall.com/mountyhall/Forum/display_topic_threads.php?ForumID=17&TopicID=44799&PagePosition=1#'>Gowapiers : Tarifs</a><br>";
    $text .= "<a href='http://www.mountyhall.com/mountyhall/Forum/display_topic_threads.php?ForumID=10&TopicID=34731&PagePosition=1'>FAQ Gowap</a><br>";
    $text .= "<a href='http://www.g-ros.com/~burk/Asile/gowap/'>Salle des archives Gowap (Asile)</a><br>";
    $text .= "<a href='http://thextrolls.free.fr/?page=gowapiers'>Gowapiers (X-Trolls)</a><br>";
    $text .= "<hr noshade>";
    $text .= "<b>Puits</b><br>";
    $text .= "<a href='http://trolls.game-host.org/mountyhall/lieux.php?search=position&orderBy=distance&posx=0&posy=0&posn=0&typeLieu=7'>Puits recencés chez les Bricol'Trolls</a><br>";
    $text .= "<hr noshade>";
    $text .= "<br><b>Hors-Jeux</b><br>";
    $text .= "<a href='http://games.mountyhall.com/mountyhall/ScriptPublic/'>Page d'aide des Scripts Publics</a><br>";
    afficher_contenu_tableau($text);
}
示例#4
0
?>
<br/>
<?php 
$maj = getDerniereMaj();
$c = ' Dernière mise à jour du contenu le ' . $maj['date'] . ' par ' . $maj['troll'];
afficher_contenu_tableau($c);
afficher_titre_tableau("Sélectionnez la tanière où passer votre commande");
$c = ' [ <a href="./affichage.php?taniere=33931">Le Mag\'Hasin de Kasseroll</a> ] <br>';
$c .= ' [ <a href="./affichage.php?taniere=34111">La Taverne d\'Heliacyn</a> ] <br>';
$c .= ' [ <a href="./affichage.php?taniere=38965">La Bïblyohtek de Grognon</a> ] <br>';
$c .= '<br>';
$c .= ' [ <a href="./recherche.php">Rechercher</a> ] <br>';
afficher_contenu_tableau($c);
if (isDbAdministration() || isGGT()) {
    if (!isGGT()) {
        $msg = "<b>Attention : vous êtes administrateur des outils et pas ";
        $msg .= "gestionnaire des grandes tanières, merci de ne pas trop jouer avec ça...</b>";
        afficher_titre_tableau("Gestion", $msg);
    } else {
        afficher_titre_tableau("Gestion");
    }
    $c = ' [ <a href="./affichageAdmin.php?taniere=33931">Derrière le comptoir du Mag\'Hasin</a> ] <br> ';
    $c .= ' [ <a href="./affichageAdmin.php?taniere=34111">Au bar de la Taverne</a> ] <br>';
    $c .= ' [ <a href="./affichageAdmin.php?taniere=38965">Au guichet de la Bïblyohtek</a> ] <br>';
    $c .= '<br>';
    $c .= ' [ <a href="./rechercheAdmin.php">Rechercher</a> ] <br>';
    $c .= '<br>';
    $c .= ' [ <a href="./affichageMaj.php">Mettre à jour</a> ] <br>';
    afficher_contenu_tableau($c);
}
include '../foot.php';
示例#5
0
function loterie_interface_gain_enregistre($id_troll, $id_loterie)
{
    $loterie = new loterie($id_loterie);
    if ($_SESSION[admin] != 'authenticated') {
        if ($id_troll != $loterie->get_id_gagnant()) {
            afficher_contenu_tableau("Erreur. Vous n'&ecirc;tes pas admin, ou vous n'avez pas gagn&eacute; cette loterie, ou la loterie n'est pas close");
            die(' ');
        }
    }
    $loterie_participants = new loterie_participants($id_loterie);
    $list = $loterie_participants->get_list();
    for ($i = 1; $i <= count($list); $i++) {
        if ($_POST["remise_" . $list[$i][id_troll_loteriep]] == "oui") {
            $loterie_participant = new loterie_participant($list[$i][id_troll_loteriep], $id_loterie);
            $loterie_participant->set_date_remise_db();
        }
    }
    $text = "Mise &agrave; jour effectu&eacute;e.<br>";
    $text .= "<input type='button' value='Retour Liste' class='mh_form_submit'";
    $text .= " onClick='Javascript:document.location.href=\"/loteries/loterie.php?gain=liste\"'>";
    afficher_contenu_tableau($text);
}
示例#6
0
function afficher_nombre_candidatures($annee, $genre, $type)
{
    $text = "Nombre de candidatures enregistrés : ";
    $text .= nombre_candidatures_db($annee, $genre, $type);
    afficher_contenu_tableau($text);
}