Ejemplo n.º 1
0
global $HTTP_GET_VARS;
if (isset($HTTP_GET_VARS['taniere']) && $HTTP_GET_VARS['taniere'] != '' && is_numeric($HTTP_GET_VARS['taniere'])) {
    $taniere = $HTTP_GET_VARS['taniere'];
} else {
    header("Location: ./index.php");
}
//taniere concernée
include_once '../functions_auth.php';
initAuth();
include_once '../secure.php';
include_once '../functions.php3';
include_once "./inc/tresor.inc.php";
include_once "./inc/fonctions.inc.php";
$no_troll = $_SESSION['AuthTroll'];
// Id du troll connecté
if (!isDbAdministration() && !isGGT()) {
    die("<h1><font color=black><b>Vous n'avez pas accès à cette page</b></font></h1");
}
global $HTTP_POST_VARS;
include_once '../inc_connect.php3';
foreach ($HTTP_POST_VARS as $champ => $value) {
    $tab = explode("_", $champ);
    if ($tab[0] == "res" && is_numeric($value)) {
        $result = reserverForce($tab[1], $value, $HTTP_POST_VARS['no_troll']);
    } else {
        if ($tab[0] == "deres") {
            $result = dereserver($tab[1], $HTTP_POST_VARS['no_troll']);
        } else {
            if ($tab[0] == "conf") {
                $result = confirmer($tab[1], $HTTP_POST_VARS['no_troll']);
            } else {
Ejemplo n.º 2
0
// Id du troll connecté
?>
<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);
}