Exemple #1
0
<?php

if (verif_connect()) {
    if (isset($exit) && $exit == true) {
        echo '<p>' . $message . '<br/><br/>';
        echo '<form method="POST" action="' . get_link('Map', 'Map') . '">';
        echo '<input type="submit" name="carte" value="' . LanguageValidation::nMsg("btn.return.world") . '"/>' . LanguageValidation::eMsg("btn.return.world");
        //Retourner à la carte du monde">';
        echo '<input type="hidden" name="token" value="' . generer_token('carte') . '" />';
        echo '</form></p>';
    } else {
        if (verif_town()) {
            $Town_Image = htmlspecialchars(addslashes($information_Town['Town_Image']));
            menu_town();
            instruction(isset($message) ? $message : "");
            bousole("Town");
            include_once path_source("map-1", "Map", "Map");
            //echo '<div style="float:left; margin-left:35px">';
            echo "<img src=\"{$Town_Image}\"><br />";
            echo "" . $information_Town['Town_Description'] . "<br /><br />";
            echo '<form method="POST" action="' . get_link('Map', 'Map') . '">';
            echo '<input type="submit" name="Exit_Town" value="' . LanguageValidation::nMsg("btn.leave.town") . '"/>' . LanguageValidation::eMsg("btn.leave.town");
            //Quitter la Ville">';
            echo '<input type="hidden" name="token" value="' . generer_token('Exit_Town-' . $information_Town['Town_ID']) . '" />';
            echo '</form>';
            //echo '</div>';
        }
    }
}
Exemple #2
0
<?php

if (verif_connect()) {
    if (isset($enter) && $enter == true) {
        echo '<p>' . $message . '<br/><br/>';
        echo '<form method="POST" action="' . get_link('Map', 'Map') . '">';
        echo '<input type="submit" name="carte" value="' . LanguageValidation::nMsg("btn.enter.town") . '"/>' . LanguageValidation::eMsg("btn.enter.town");
        //Continuer">';
        echo '</form></p>';
    } else {
        if (!verif_town()) {
            bousole("Map");
            instruction(isset($message) ? $message : "");
            include_once path_source("map-2", "Map", "Map");
            if (isset($array_work_class['recolte'])) {
                echo "<br/>";
                echo '<p><form style="float:right;margin-right:5px;margin-top:10px" method="POST" action="' . get_link('Map', 'Map') . '">';
                echo '<input type="hidden" name="recolte" value="ramassage-ressource" />';
                foreach ($array_work_class['recolte'] as $recolte) {
                    $job = get_db('fabrique_works', array('Type' => $recolte));
                    $ressource = get_db('fabrique_ressource', array('Type' => $recolte));
                    if (isset($job) && isset($ressource)) {
                        echo '<input type="submit" name="' . $recolte . '" value="' . LanguageValidation::nMsg("btn.map." . $recolte) . '"/>' . LanguageValidation::eMsg("btn.map." . $recolte) . "<br/>";
                        //Continuer">';
                    }
                }
                echo '<input type="hidden" name="token" value="' . generer_token('recolte-map') . '" />';
                echo '</form></p>';
            }
            if (isset($message)) {
                echo '<p style="float:right;margin-right:5px;margin-top:10px;width:200px">' . $message . '</p>';