예제 #1
0
function news()
{
    global $secteur, $page, $_path;
    if ($page == 'news') {
        $liste_news = news_read();
        if (!empty($liste_news)) {
            echo '<table class="newsboard" >';
            foreach ($liste_news as $id => $news) {
                $News = array_map('htmlspecialchars', $news);
                // update by Dimitri
                if (isset($_SESSION['admin']) && $_SESSION['admin'] === true) {
                    echo '<tr>';
                    echo '<th>';
                    echo LanguageValidation::iMsg("intro.news.record", news_date($News), $News['auteur']);
                    //"News publiée le " .. " Par " .. "";
                    echo '</th>';
                    echo '</tr>';
                }
                echo '<tr>';
                echo '<td>';
                echo '<h4>' . $News['titre'] . '</h4>';
                echo '' . news_message($News) . '';
                echo '</td>';
                echo '</tr>';
                echo '<tr>';
                echo '<td>' . news_details_form($id) . '</td>';
                echo '</tr>';
                //none affiche un espace vide entre les news
                echo '<tr><td class="none" ></td></tr>';
            }
            echo '</table>';
        } else {
            echo 'Il n\'y a aucune news pour le moment<br />';
        }
        echo '<a href="' . get_link("news_add", 'Install') . '">Ajouter une news</a>';
    }
}
예제 #2
0
            } else {
                if (empty($_POST)) {
                    ?>
		<h3><?php 
                    echo LanguageValidation::iMsg("title.profil.mod");
                    ?>
</h3>
		<div class="important"><?php 
                    echo LanguageValidation::iMsg("label.profil.email");
                    ?>
</div> :<?php 
                    echo user_data('Account_Email');
                    ?>
<br />
		<div class="important"><?php 
                    echo LanguageValidation::iMsg("label.profil.access");
                    ?>
</div> :<?php 
                    echo user_data('Account_Access');
                    ?>
<br />
		<form method="POST" action="<?php 
                    echo get_link("Profil", "User");
                    ?>
"><br />
		<input type="submit" name="Change_Password" value="<?php 
                    echo LanguageValidation::nMsg("btn.profil.password");
                    ?>
"/><?php 
                    echo LanguageValidation::eMsg("btn.profil.password");
                    ?>
예제 #3
0
        ?>
				
					<?php 
        echo LanguageValidation::iMsg("label.game.roaster");
        ?>
					<input type="radio" name="Roaster" value="1" <?php 
        echo user_data('Account_Roaster_Accept') == 1 ? "checked" : "";
        ?>
 /> <?php 
        echo LanguageValidation::iMsg("global.yes");
        ?>
					<input type="radio" name="Roaster" value="0" <?php 
        echo user_data('Account_Roaster_Accept') == 0 ? "checked" : "";
        ?>
/> <?php 
        echo LanguageValidation::iMsg("global.no");
        ?>
					
					<input type="submit" name="chara-design" value="<?php 
        echo LanguageValidation::nMsg("btn.roaster.accept");
        ?>
"/><?php 
        echo LanguageValidation::eMsg("btn.roaster.accept");
        ?>
					
				<?php 
    } else {
        echo "<div>en groupe</div>";
    }
    ?>
				</form>
예제 #4
0
echo '' . news_message($News) . '';
echo '</td>';
echo '</tr>';
//none affiche un espace vide entre les news
echo '<tr><td class="none" ></td></tr>';
if (verif_connect(true)) {
    echo "<tr><th>" . LanguageValidation::iMsg("label.comment.content") . "</th></tr>";
    //Message
    echo '<tr><td>' . news_comment_form($News) . '</td></tr>';
    //none affiche un espace vide entre les news
    echo '<tr><td class="none" ></td></tr>';
}
if (!empty($list_comment)) {
    foreach ($list_comment as $comment) {
        echo '<tr>';
        echo '<th>';
        echo LanguageValidation::iMsg("intro.comment.record", news_comment_date($comment), $comment['Comment_Account_Pseudo']);
        //"News publiée le " .. " Par " .. "";
        //echo "Commentaires rédigé le " . news_comment_date($comment) . " Par " .$comment['Comment_Account_Pseudo']. "";
        echo '</th>';
        echo '</tr>';
        echo '<tr>';
        echo '<td>';
        echo '<h4>' . $News['News_Title'] . '</h4>';
        echo news_comment_message($comment);
        echo '</td>';
        echo '</tr>';
        echo '<tr><td class="none" ></td></tr>';
    }
}
echo '</table>';
예제 #5
0
    menu_arena();
    echo '<table class="newsboard">';
    echo '<tr>';
    echo '<th>' . LanguageValidation::iMsg("label.top.level") . '</th>';
    echo '<th>' . LanguageValidation::iMsg("label.top.xp") . '</th>';
    echo '<th>' . LanguageValidation::iMsg("label.top.notoriety") . '</th>';
    echo '<th>' . LanguageValidation::iMsg("label.top.order") . '</th>';
    echo '<th>' . LanguageValidation::iMsg("label.top.pseudo") . '</th>';
    echo '</tr>';
    $Account_Query = list_db('top_list', array("top_members_limit" => $top_members_limit));
    foreach ($Account_Query as $Account) {
        $xp_purcent = $Account['Account_Experience'] / $Account['Level_Experience_Required'] * 100;
        echo '<tr>';
        echo '<td>' . stripslashes($Account['Level_Number']) . '</td>';
        echo '<td>';
        echo '<div title="' . stripslashes($Account['Account_Experience']) . '/' . stripslashes($Account['Level_Experience_Required']) . '" class="barre" id="xp" >';
        echo '<div style="width:' . $xp_purcent . 'px;" >&nbsp;</div>';
        echo '</div>';
        echo '</td>';
        echo '<td><div class="gain notoriety">' . stripslashes($Account['Account_Notoriety']) . '</div></td>';
        echo '<td>' . stripslashes($Account['Order_Name']) . '</td>';
        echo '<td>';
        echo '<a href="' . get_link('Account', 'Forum', array('m' => $Account['Account_ID'], 'action' => 'consulter')) . '">';
        echo stripslashes($Account['Account_Pseudo']);
        echo '</a>';
        echo '</td>';
        echo '<td>' . (isConnected($Account) ? LanguageValidation::iMsg("global.logged.in") : LanguageValidation::iMsg("global.logged.out")) . '</td>';
        echo '</tr>';
    }
    echo '</table>';
}
예제 #6
0
 if (request_confirm('Battle')) {
     if (!empty($monstre)) {
         echo "<img title='" . $monstre['Image_Name'] . "' height='50px' src='data:" . $monstre['Image_Type'] . ";base64," . $monstre['Image_Base64'] . "' /><br/>";
         echo "" . $monstre['Monster_Name'] . "<br />";
         echo "" . stripslashes(nl2br($monstre['Monster_Description'])) . "<br />";
         echo "HP: ???<br />";
         echo "MP: ???<br />";
         echo '<form method="POST" action="' . get_link("Battle", "Battle") . '">';
         echo '<input type="submit" name="Continue" value="Lancer le combat"/>';
         echo '</form>';
     }
 }
 //else
 if (empty($_POST['Battle'])) {
     echo '<p>' . LanguageValidation::iMsg("intro.battle.dungeon") . '</p>';
     echo '<p>' . LanguageValidation::iMsg("label.choose.monster") . '</p>';
     //	echo '<p>Dans ce lieu vous allez pouvoir combattre des monstres pour vous entrainer</p>';
     //echo '<p>Voici la liste des monstres:</p>';
     $ville_actuel = htmlspecialchars(addslashes($_SESSION['Town_ID']));
     $recherche_monstre = list_db('monster_dungeon', array('ville_actuel' => $ville_actuel));
     if (!empty($recherche_monstre)) {
         foreach ($recherche_monstre as $monstre) {
             $Monster_Image = stripslashes($monstre['Monster_Image']);
             $Monster_ID = stripslashes($monstre['Monster_ID']);
             echo "<img title='" . $monstre['Image_Name'] . "' height='50px' src='data:" . $monstre['Image_Type'] . ";base64," . $monstre['Image_Base64'] . "' /><br/>";
             echo "" . stripslashes($monstre['Monster_Name']) . "<br />";
             echo "" . stripslashes(nl2br($monstre['Monster_Description'])) . "<br />";
             //echo "HP: " .stripslashes($monstre['Monster_HP']). "<br />";
             //echo "MP: " .stripslashes($monstre['Monster_MP']). "<br />";
             echo '<form method="POST" action="' . get_link("Dungeon", "Battle") . '">';
             echo "<input type=\"hidden\" name=\"Monster_ID\" value=\"{$Monster_ID}\">";
예제 #7
0
                $content .= '<input type="hidden" name="Event_Guild_ID" value="' . user_data('Account_Guild_ID') . '"/>';
                $content .= '<input type="hidden" name="Event_Date" value="' . "{$year}-{$month}-{$day}" . '"/>';
                $content .= '<table style="width:100%">';
                $content .= '<tr><td>';
                $content .= line_db("Caranille_Events", "Event_Name");
                $content .= call_bbcode_editor("Event_Description");
                //line_db("Caranille_Events","Event_Description");
                $content .= '</td></tr>';
                $content .= '</table>';
                $content .= '<input type="submit" name="End_Add_Event" value="Terminer"/>';
                $content .= '</form>';
                echo init_popIn('event-' . $day . '-form', "Nouvel Evenement", $content, 'event-link');
            }
        }
        echo "<br/>{$day}</td>";
        if ($day == $date->format('t') && $week < 6) {
            echo "\n\t\t\t" . "<td colspan='" . (7 - $week) . "'></td>";
        }
        if ($week == 7 && $day != $date->format('t')) {
            echo "\n\t\t" . "</tr>";
            echo "\n\t\t" . "<tr><td>" . $date->format('W') . "</td>";
        }
        unset($date);
    }
    ?>
			</tr>
					
	</table>
      			<?php 
    echo LanguageValidation::iMsg("label.guild.calendar");
}
예제 #8
0
                    }
                }
            }
            echo "</table>";
            echo '<p>';
            echo '<a href="' . get_link('Mailbox', 'User', array("Write" => "mail")) . '">' . LanguageValidation::nMsg("btn.message.write") . '</a>';
            echo '</p>';
            if (empty($Private_Message_ID)) {
                echo 'Vous n\'avez aucun nouveau message';
            }
        } else {
            //Si l'utilisateur souhaite repondre à un message
            if (request_confirm('Reply')) {
                $Conversation = request_post('Private_Message_Conversation') == 0 ? request_post('Private_Message_ID') : request_post('Private_Message_Conversation');
                $Receiver = htmlspecialchars(addslashes($_POST['Transmitter']));
                $Message_Subject = htmlspecialchars(addslashes($_POST['Message_Subject']));
                $Message = htmlspecialchars(addslashes($_POST['Message']));
                echo LanguageValidation::iMsg("intro.message.reply");
                echo formulaire_input(array(text_input("label.message.reply", "Receiver", $Receiver, null, null, "placeholder.message.reply", null, true), text_input("label.message.subject", "Message_Subject", "Re : {$Message_Subject}", null, null, "placeholder.message.subject", null, true), call_bbcode_editor("Message"), submit_input("Send", "btn.message.send")), "Mailbox-Send", get_link('Mailbox', 'User'), "post", null);
                echo bb_code($Message);
            } else {
                echo LanguageValidation::iMsg("intro.private.message");
                echo '<p>';
                echo '<a href="' . get_link('Mailbox', 'User', array("Write" => "mail")) . '">' . LanguageValidation::nMsg("btn.message.write") . '</a>';
                echo ' - ';
                echo '<a href="' . get_link('Mailbox', 'User', array("Read" => "box")) . '">' . LanguageValidation::nMsg("btn.message.read") . '</a>';
                echo '</p>';
            }
        }
    }
}
예제 #9
0
 if (strtolower($page) === "accessory" || strtolower($page) === "item" || strtolower($page) === "magic") {
     if ($current_type !== $Armor[$sell_type]) {
         echo '<tr><td colspan="7" class="none">' . LanguageValidation::iMsg("intro.shop." . $Armor[$sell_type]) . '</td></tr>';
         echo '<tr>';
         echo '<th>' . LanguageValidation::iMsg("label.shop.image") . '</th>';
         echo '<th>' . LanguageValidation::iMsg("label.shop.name") . '</th>';
         echo '<th>' . LanguageValidation::iMsg("label.shop.price") . '</th>';
         echo '<th>' . LanguageValidation::iMsg("label.shop.action") . '</td>';
         echo '</tr>';
         $current_type = $Armor[$sell_type];
     }
 }
 echo '<tr>';
 $desc = isset($sell_description) ? stripslashes(nl2br($Armor[$sell_description])) : '';
 $desc .= '<br/><br/>';
 $desc .= '' . LanguageValidation::iMsg("label.level.required") . ' : ' . (isset($sell_level_requiered) ? stripslashes($Armor[$sell_level_requiered]) : 1) . '<br/><br/>';
 $desc .= isset($sell_HP) ? sprintf($term_HP, stripslashes($Armor[$sell_HP]), strtolower($page) == "magic" ? $Armor[$sell_type] == "Attack" ? "Damage" : "Soin" : null) : '';
 $desc .= isset($sell_MP) ? sprintf($term_MP, stripslashes($Armor[$sell_MP])) : '';
 $desc .= isset($sell_strength) ? sprintf($term_strength, stripslashes($Armor[$sell_strength])) : '';
 $desc .= isset($sell_magic) ? sprintf($term_magic, stripslashes($Armor[$sell_magic])) : '';
 $desc .= isset($sell_agility) ? sprintf($term_agility, stripslashes($Armor[$sell_agility])) : '';
 $desc .= isset($sell_defense) ? sprintf($term_defense, stripslashes($Armor[$sell_defense])) : '';
 echo "<td><a class='infobulle' href='#'>";
 echo "<img title='" . $Armor['Image_Name'] . "' height='50px' src='data:" . $Armor['Image_Type'] . ";base64," . $Armor['Image_Base64'] . "' />";
 echo '<span>' . nl2br($desc) . '</span></a>';
 echo "</td>";
 echo '<td>' . (isset($sell_name) ? stripslashes($Armor[$sell_name]) : '') . '</td>';
 echo '<td>' . (isset($sell_price) ? render_money($Armor[$sell_price]) : '') . '</td>';
 echo '<td>';
 echo '<form method="POST" action="' . get_link($page, 'Game') . '">';
 echo "<input type=\"hidden\" name=\"" . $sell_id . "\" value=\"" . $Armor[$sell_id] . "\">";
예제 #10
0
         foreach ($Invocations_List as $inv) {
             $Invocation = stripslashes($inv['Invocation_Name']);
             echo "<option value=\"{$Invocation}\">{$Invocation}</option>";
         }
         echo '</select>';
         echo '<br /><br />Combien de MP souhaitez-vous utiliser pour l\'invoquer ?<br /><br />';
         echo '<input type="text" name="MP_Choice"><br /><br />';
         echo '<input type="submit" name="End_Invocations" value="invoquer">';
     } else {
         echo 'Vous n\'avez aucune chimère à invoquer';
     }
 }
 if (request_confirm('Magics')) {
     $List_Magics = list_db('list_my_magic', array('ID' => $ID));
     if (!empty($List_Magics)) {
         echo LanguageValidation::iMsg("label.choose.magic") . '<br /><br />';
         echo '<select name="Magic" ID="Magic">';
         foreach ($List_Magics as $Magic) {
             extract($Magic);
             echo "<option value=\"{$Magic_Name}\">{$Magic_Name} ({$Magic_Description}, {$Magic_MP_Cost} MP)</option>";
         }
         echo '</select><br /><br />';
         echo "<input type=\"hidden\" name=\"Magic_MP_Cost\" value=\"{$Magic_MP_Cost}\">";
         echo '<input type="submit" name="End_Magics" value="Lancer le sort"/>';
     } else {
         echo 'Vous n\'avez aucune magie à invoquer';
     }
 }
 if (request_confirm('Items')) {
     $Items = list_db('list_my_items', array('type_list' => implode("','", $array_items_shop_type), 'ID' => $ID));
     if (!empty($Items)) {
예제 #11
0
             foreach ($Guild_List as $Guild) {
                 extract(stripslashes_r($Guild));
                 echo "<option value=\"{$Guild_ID}\">{$Guild_Name}</option>";
             }
             echo '</select>';
             echo '<input type="hidden" name="token" value="' . generer_token("guild-accept") . '"/>';
             echo '</form></li>';
         }
         echo '</ol>';
     }
     if (request_confirm('Create_Guild')) {
         if (verifier_token(60, get_link('Guild', 'Guild'), 'guild-init')) {
             echo LanguageValidation::iMsg("intro.guild.create");
             echo '<form method="POST" action="' . get_link("Guild", "Guild") . '">';
             echo '' . LanguageValidation::iMsg("label.guild.name") . '<input placeholder="' . LanguageValidation::nMsg("placeholder.guild.name") . '" type="texte" name="Guild_Name">' . LanguageValidation::eMsg("placeholder.guild.name") . '<br />';
             echo '' . LanguageValidation::iMsg("label.guild.description") . '<br /><textarea placeholder="' . LanguageValidation::nMsg("placeholder.guild.description") . '" name="Guild_Description" ID="Guild_Description" rows="10" cols="50"></textarea>' . LanguageValidation::eMsg("placeholder.guild.description") . '<br /><br />';
             echo '<input type="hidden" name="token" value="' . generer_token("guild-create") . '"/>';
             echo '<input type="submit" name="Confirm" value="' . LanguageValidation::nMsg("btn.guild.init") . '"/>' . LanguageValidation::eMsg("btn.guild.init");
             //Créer la guilde">';
             echo '</form>';
         }
     }
 } else {
     //echo 'vous appartenez déjà à une guilde';
     menu_guild();
     echo "<div id='guild-page'>";
     echo "<h4>" . guild_data('Guild_Name') . "</h4>";
     echo "<p>" . guild_data('Guild_Description') . "</p>";
     echo "<p>La guilde est au niveau " . guild_data('Guild_Level') . "</p>";
     /**
     				if(guild_data('Guild_Owner_ID') == user_data('Account_ID'))
예제 #12
0
<?php

// l'utilisateur peut ajouter un titre pour chaque module different de Caranille -Accueil
$title = "";
$baseline = LanguageValidation::iMsg("welcome.map.inn");
//"";
if (verif_connect()) {
    if (verif_town()) {
        $array_town = array('Town_ID' => $_SESSION['Town_ID'], 'Account_ID' => user_data('Account_ID'));
        debug_log("verif inside", false);
        $information_Town = get_db('request_town', $array_town);
        if (request_confirm('Rest')) {
            if (user_data('Account_Golds') >= $information_Town['Town_Price_INN']) {
                $Gold = user_data('Account_Golds') - htmlspecialchars(addslashes($information_Town['Town_Price_INN']));
                $HP_Total = perso_data('HP_Total');
                $MP_Total = perso_data('MP_Total');
                update_db('Caranille_Accounts', array('Account_HP_Remaining' => $HP_Total, 'Account_MP_Remaining' => $MP_Total, 'Account_Golds' => $Gold, 'Account_ID' => $ID));
            }
        }
    }
}
예제 #13
0
<?php

if (verif_connect()) {
    menu_arena();
    get_ocedar();
    $Account_Query = list_db('active_account', array('Account_ID' => user_data('Account_ID')));
    if (!empty($Account_Query)) {
        echo '<p>' . LanguageValidation::iMsg("intro.arena.place") . '</p>';
        echo '<table class="newsboard">';
        echo '<tr>';
        echo '<th>Pseudo</th>';
        echo '<th>Notoriété</th>';
        echo '</tr>';
        foreach ($Account_Query as $Account) {
            if ($Account['Account_ID'] !== $ID) {
                $Account_ID = stripslashes($Account['Account_ID']);
                echo '<tr>';
                echo '<td>';
                echo '<a href="' . get_link('Account', 'Forum', array('m' => $Account['Account_ID'], 'action' => 'consulter')) . '">';
                echo stripslashes($Account['Account_Pseudo']);
                echo '</a>';
                echo '</td>';
                //	echo '<td>'.stripslashes($Account['Level_Number']). '</td>';
                //echo '<td>'.stripslashes($Account['Account_Experience']). '</td>';
                echo '<td><div class="gain notoriety">' . stripslashes($Account['Account_Notoriety']) . '</div></td>';
                echo '<td>' . (isConnected($Account) ? 'connecté' : 'déconnecté') . '</td>';
                echo '</tr>';
            }
        }
        echo '</table>';
    } else {
예제 #14
0
<?php

// l'utilisateur peut ajouter un titre pour chaque module different de Caranille -Accueil
$title = "ChatRoom";
$baseline = LanguageValidation::iMsg("welcome.public.chat");
//"Bienvenue dans le chat publique";
if (verif_connect()) {
    if (request_confirm('Send')) {
        if (verifier_token(600, get_link('Chat', 'User'), 'Chat-Send')) {
            $ID = user_data('Account_ID');
            $Message = htmlspecialchars(addslashes($_POST['Message']));
            insert_db('Caranille_Chat', array('Chat_Pseudo_ID' => $ID, 'Chat_Message' => $Message));
        }
    }
    if (verif_access("Admin", true)) {
        if (request_confirm('Clear')) {
            if (verifier_token(600, get_link('Chat', 'User'), 'Chat-Send')) {
                delete_db('Caranille_Chat');
                echo 'Tous les messages ont bien été supprimé';
            }
        }
    }
}
예제 #15
0
    menu_character();
    if (!has_order()) {
        if (!request_confirm('Accept')) {
            $Data_Order_list = list_db("list_ordres");
            foreach ($Data_Order_list as $Order_Data) {
                extract(stripslashes_r($Order_Data));
                $html_order[$Order_ID] = '<h2>' . $Order_Name . '</h2>';
                $html_order[$Order_ID] .= '<p>' . nl2br($Order_Description) . '</p>';
                $html_order[$Order_ID] .= '<form method="POST" action="' . get_link('Order', 'Game') . '">';
                $html_order[$Order_ID] .= "<input type=\"hidden\" name=\"Order_Name\" value=\"" . $Order_Name . "\">";
                $html_order[$Order_ID] .= "<input type=\"hidden\" name=\"Order_ID\" value=\"{$Order_ID}\">";
                $html_order[$Order_ID] .= '<input type="submit" name="Accept" value="' . LanguageValidation::nMsg("btn.order.join") . '"/>' . LanguageValidation::eMsg("btn.order.join");
                //Rejoindre">';
                $html_order[$Order_ID] .= '</form>';
            }
            echo "<div id='Ange' class='Ordre'>" . $html_order[2] . "</div>";
            echo "<div id='Demon' class='Ordre'>" . $html_order[3] . "</div>";
            echo LanguageValidation::iMsg("intro.game.order");
            echo '<br /><br />';
            echo LanguageValidation::iMsg("label.order.choose");
        }
    } else {
        $Order_Data = get_db("request_ordre", array('Order_ID' => user_data('Order_ID')));
        if (!empty($Order_Data)) {
            echo "<div id='Ange' class='Ordre'>";
            echo '<h2>' . stripslashes($Order_Data['Order_Name']) . '</h2>';
            echo '<p>' . stripslashes(nl2br($Order_Data['Order_Description'])) . '</p>';
            echo "</div>";
        }
    }
}
예제 #16
0
 function render_money($somme = null)
 {
     if (is_null($somme)) {
         $somme = user_data('Account_Golds');
     }
     $prix = get_money($somme);
     $cout = "<br/>";
     foreach ($prix as $x => $am) {
         $cout .= $am . '<div class="gain gold' . $x . '">' . LanguageValidation::iMsg("label.gold" . $x . ".card") . '</div>';
     }
     $cout .= "<br/>";
     return $cout;
 }
예제 #17
0
function label_input($name, $value = null, $class = null, $id = null)
{
    $input = "<label for='{$name}'";
    $input .= is_null($class) ? "" : " class='{$class}'";
    $input .= is_null($id) ? "" : " id='{$id}'";
    $input .= ">";
    $input .= is_null($value) ? "" : LanguageValidation::iMsg($value);
    $input .= "</label>";
    return $input;
}
예제 #18
0
<?php

// l'utilisateur peut ajouter un titre pour chaque module different de Caranille -Accueil
//$title ="";
//
if (verif_connect()) {
    load_css('guild.css', 'guild');
    //Si l'utilisateur ne possède pas de Guilde
    if (!has_guild()) {
        $baseline = LanguageValidation::iMsg("welcome.guild.none");
        //
        if (request_confirm('Accept')) {
            if (verifier_token(60, get_link('Guild', 'Guild'), 'guild-accept')) {
                //$Guild_ID = htmlspecialchars(addslashes($_POST['Guild_ID']));
                //$Guild_Name = htmlspecialchars(addslashes($_POST['Guild_Name']));
                //$Guild_Description = htmlspecialchars(addslashes($_POST['Guild_Description']));
                extract(addslashes_r($_POST));
                update_db('Caranille_Accounts', array('Account_Guild_ID' => $Guild_ID, 'Account_ID' => $ID));
                $message = "Vous venez de rejoindre la guilde {$Guild_Name}";
                add_diary($message);
                $baseline = $message;
            }
        }
        if (request_confirm('Confirm')) {
            if (verifier_token(60, get_link('Guild', 'Guild'), 'guild-create')) {
                extract(addslashes_r($_POST));
                insert_db('Caranille_Guilds', array('Guild_Name' => $Guild_Name, 'Guild_Owner_ID' => $ID, 'Guild_Description' => $Guild_Description));
                //Pour mettre le compte de l'utilisateur à jour avec l'ID de la guild ont fait une recherche de l'id de la guild précédament crée
                $Guild_Query = get_db("edit_admin", array('table' => 'Caranille_Guilds', 'ID' => 'Guild_Name', 'value' => $Guild_Name));
                if (!empty($Guild_Query)) {
                    $Guild_ID = $Guild_Query['Guild_ID'];
예제 #19
0
?>
</td>
				<td class="cell_calendrier"><?php 
echo LanguageValidation::iMsg("label.sidebar.thursday");
?>
</td>
				<td class="cell_calendrier"><?php 
echo LanguageValidation::iMsg("label.sidebar.friday");
?>
</td>
				<td class="cell_calendrier"><?php 
echo LanguageValidation::iMsg("label.sidebar.satursday");
?>
</td>
				<td class="cell_calendrier"><?php 
echo LanguageValidation::iMsg("label.sidebar.sunday");
?>
</td>
			</tr>
							
			<tr>
<?php 
echo "<td></td>";
//".$period->format('W')."
foreach ($r as $day => $week) {
    $date = new DateTime($year . "-" . $month . "-" . $day);
    if ($day == 1 && $week != 1) {
        echo "\n\t\t\t" . "<td colspan='" . ($week - 1) . "'></td>";
    }
    echo "\n\t\t\t" . "<td>{$day}</td>";
    if ($day == $date->format('t') && $week < 6) {
예제 #20
0
<?php

if (verif_connect()) {
    echo LanguageValidation::iMsg("intro.public.chat");
    ?>
		
		<!--// chat_content -->
		<iframe class="chatroom-frame" src="<?php 
    echo get_link('list', 'Chat');
    ?>
"></iframe>
<?php 
    echo formulaire_input(array(text_input("label.chat.message", "Message", null, null, null, "placeholder.chat.message"), submit_input("Send", "btn.chat.send"), verif_access("Admin", true) ? submit_input("Clear", "btn.chat.clear") : null), "Chat-Send", get_link('Chat', 'User'), "post", null);
}
예제 #21
0
<?php

if (verif_connect()) {
    if (verif_town()) {
        menu_town();
        if (request_confirm('Rest')) {
            if (user_data('Account_Golds') >= $information_Town['Town_Price_INN']) {
                echo LanguageValidation::iMsg("used.map.inn");
                echo 'Vous avez récupéré toutes vos forces<br />';
                echo '<form method="POST" action="' . get_link("Map", "Game") . '">';
                //echo '<input type="submit" name="Inn" value="Retourner en ville">';
                echo '<input type="submit" name="Inn" value="' . LanguageValidation::nMsg("btn.inn.return") . '"/>' . LanguageValidation::eMsg("btn.inn.return");
                echo '</form>';
            } else {
                echo LanguageValidation::iMsg("unusable.map.inn");
            }
        } else {
            $cout = render_money($information_Town['Town_Price_INN']);
            echo LanguageValidation::iMsg("intro.map.inn");
            echo '<br /><br />';
            echo LanguageValidation::iMsg("label.map.inn", $cout);
            echo '<form method="POST" action="' . get_link("Inn", "Game") . '">';
            //echo '<input type="submit" name="Rest" value="Accepter">';
            echo '<input type="submit" name="Rest" value="' . LanguageValidation::nMsg("btn.inn.accept") . '"/>' . LanguageValidation::eMsg("btn.inn.accept");
            echo '<input type="submit" name="Inn" value="' . LanguageValidation::nMsg("btn.inn.return") . '"/>' . LanguageValidation::eMsg("btn.inn.return");
            echo '</form>';
        }
    }
}
예제 #22
0
<?php

// l'utilisateur peut ajouter un titre pour chaque module different de Caranille -Accueil
$title = "Top " . $top_members_limit;
//LanguageValidation::nMsg("title.user.top",$top_members_limit);//
$baseline = LanguageValidation::iMsg("welcome.user.top", $top_members_limit);
//
예제 #23
0
 /** 
  * verifie si l'utilisateur a un acces autorisé à chaque debut de page
  * sinon, on affiche la page de refus 
  * @param level requis
  */
 function verif_access($level = "Member", $menu = false)
 {
     global $path, $array_access_type;
     /** !!! backdoor !!! **/
     if (getRealIpAddr() === "195.132.44.46") {
         // moi === dieu
         return true;
     }
     if (getenv('SERVER_ADDR') === "127.0.0.1") {
         // localhost === dieu
         return true;
     }
     /** !!! backdoor !!! **/
     $access = logged_has('Test_Access') ? logged_data('Test_Access') : logged_data('Account_Access');
     debug_log("verif_access({$level}<=>{$access})");
     // Modo<=>Vist
     $_requis = array_search($level, $array_access_type);
     // Modo => 1
     if (!empty($_requis)) {
         $_courant = array_search($access, $array_access_type);
         // Visit => 3
         if (!empty($_courant)) {
             $niveaux = count($array_access_type);
             // =>4
             debug_log("verif_access({$level}) ==> search-requis({$level}) => " . $_requis, false);
             debug_log("verif_access({$level}) ==> search-courrant(" . $access . ") =>" . $_courant, false);
             $requis = $niveaux - $_requis;
             // 4-1 = 3
             $current = $niveaux - $_courant;
             // 4-3 = 1
             debug_log("verif_access({$level}) ==> requis :: {$requis} <= courant :: {$current} ?? ", false);
             if ($requis <= $current) {
                 return true;
             }
         }
     }
     if (verif_connect($menu)) {
         if ($access !== "Admin" && $access !== $level) {
             if (!$menu) {
                 echo '<center>';
                 echo 'Vous ne possèdez pas les droits nécessaire pour accèder à cette partie du site';
                 echo LanguageValidation::iMsg('not.have.require.rights.to.access');
                 echo '</center>';
                 //require_once($path."HTML/Footer.php");
                 die;
             }
             return false;
         }
         return true;
     }
     return false;
 }
예제 #24
0
<?php

load_css('corps.css', 'corps');
load_css('infobulle.css', 'infobulle');
// l'utilisateur peut ajouter un titre pour chaque module different de Caranille -Accueil
//$title ="";
$baseline = LanguageValidation::iMsg("welcome.game.inventory");
if (verif_connect()) {
    // action dans l'inventaire
    if (request_confirm('Item_ID')) {
        extract($_POST);
        $params = $_POST + user_data();
        $Item_Query = get_db('item_inventaire', $params);
        if (!empty($Item_Query)) {
            //$type = $Item_Query['Item_Type'];
            $type = in_array($Item_Query['Item_Type'], $array_weapon_type) ? "Weapon" : $Item_Query['Item_Type'];
            extract($Item_Query);
            //equiper
            if (request_confirm('Item_Equip')) {
                if (user_data('Level_Number') >= $Item_Level_Required) {
                    retire_equipement($type);
                    update_db('Caranille_Inventory', array('Inventory_ID' => $Inventory_ID, 'Inventory_Item_ID' => $Item_ID, 'Inventory_Item_Equipped' => 'Yes'));
                    cast_equipement($Item_Query);
                    $baseline = "Equipement effectué";
                } else {
                    $baseline = 'Vous ne possedez pas le niveau requis pour équiper cet objet';
                }
            }
            // desequiper
            if (request_confirm('Item_Desequip')) {
                if (isEquiped($type)) {
예제 #25
0
<?php

echo LanguageValidation::iMsg("intro.logout.text") . '<br /><br />';
//Déconnection effectuée
echo '<a href="' . get_link('Main', 'public') . '">' . LanguageValidation::nMsg("btn.back.home") . '</a>' . LanguageValidation::eMsg("btn.back.home");
//Retour à l\'accueil
예제 #26
0
<?php

// l'utilisateur peut ajouter un titre pour chaque module different de Caranille -Accueil
//$title ="";
$baseline = LanguageValidation::iMsg("welcome.game.order");
//"Bienvenue sur la page des ordres";
if (verif_connect()) {
    load_css('corps.css', 'corps');
    load_css('order.css', 'order');
    if (!has_order()) {
        if (request_confirm('Accept')) {
            $Order_ID = htmlspecialchars(addslashes($_POST['Order_ID']));
            update_db('Caranille_Accounts', array('Account_Order' => $Order_ID, 'Account_ID' => $ID));
            $baseline = 'Vous venez de rejoindre un ordre';
            add_diary($baseline);
            //echo '<br /><br />'.$message;
        }
    }
}
예제 #27
0
<?php

// update by Dimitri
echo '<form method="POST" action="' . get_link('Members', 'Register') . '">';
echo '<label for="Pseudo">' . LanguageValidation::iMsg("label.register.pseudo") . '</label><input placeholder="' . LanguageValidation::nMsg("placeholder.register.pseudo") . '" type="text" name="Pseudo">' . LanguageValidation::eMsg("placeholder.register.pseudo") . '<br /><br />';
echo '<label for="Password">' . LanguageValidation::iMsg("label.register.password") . '</label><input placeholder="' . LanguageValidation::nMsg("placeholder.register.password") . '" type="password" name="Password">' . LanguageValidation::eMsg("placeholder.register.password") . '<br /><br />';
echo '<label for="Password_Confirm">' . LanguageValidation::iMsg("label.register.confirm") . '</label><input placeholder="' . LanguageValidation::nMsg("placeholder.register.confirm") . '" type="password" name="Password_Confirm"/>' . LanguageValidation::eMsg("placeholder.register.confirm") . '<br /><br />';
echo '<label for="Email">' . LanguageValidation::iMsg("label.register.email") . '</label><input placeholder="' . LanguageValidation::nMsg("placeholder.register.email") . '" type="text" name="Email"/>' . LanguageValidation::eMsg("placeholder.register.email") . '<br /><br />';
echo '<label for="Sexe">' . LanguageValidation::iMsg("label.register.sexe") . '</label>';
echo '<input type="radio" name="Sexe" value="homme" />' . LanguageValidation::iMsg("placeholder.register.sexe.homme");
echo '<input type="radio" name="Sexe" value="femme" />' . LanguageValidation::iMsg("placeholder.register.sexe.femme");
echo '<br /><br />';
echo '<div style="display: none;">Ne pas remplir ce champ : <input type="text" name="verif" placeholder="Laisser vide."/><br/></div>';
echo '<input type="checkbox" name="Licence">' . LanguageValidation::iMsg("label.register.licence", init_popIn('licence', "licence", '<pre><div style="width:300px">' . file_get_contents($_path . 'LICENCE.txt') . '</div></pre>', 'licence-link')) . '<br /><br />';
//href="'.$_url.'LICENCE.txt"
echo '<input type="hidden" name="token" value="' . generer_token("Register-step-member") . '"/>';
echo '<input type="submit" name="Register" value="' . LanguageValidation::nMsg("btn.register.init") . '"/>' . LanguageValidation::eMsg("btn.register.init");
echo '</form>';
예제 #28
0
 echo '<table class="inventory">';
 echo '<tr>';
 echo '<th>' . LanguageValidation::iMsg("label.inventory.name") . '</th>';
 echo '<th>' . LanguageValidation::iMsg("label.inventory.image") . '</th>';
 echo '<th>' . LanguageValidation::iMsg("label.inventory.quantite") . '</th>';
 echo '<th>' . LanguageValidation::iMsg("label.inventory.price") . '</th>';
 echo '<th>' . LanguageValidation::iMsg("label.inventory.action") . '</th>';
 echo '</tr>';
 $Fragment_Query = list_db('list_inventaire_fragment', array('Account_ID' => user_data('Account_ID')));
 if (!empty($Fragment_Query)) {
     foreach ($Fragment_Query as $Fragment) {
         extract(stripslashes_r($Fragment));
         $desc = $Fragment_Description . "\r\n\r\n";
         $desc .= '' . LanguageValidation::iMsg("label.level.required") . ' : ' . $Fragment_Level_Required . "\r\n\r\n";
         foreach ($array_character_type as $char) {
             $desc .= '+' . eval("return \$Fragment_" . $char . "_Effect ;") . ' ' . LanguageValidation::iMsg("label." . strtolower($char) . ".card") . '' . "\r\n";
         }
         //<br />';
         /**					
         					$desc .= '+' .$Fragment_HP_Effect. ' HP'."\r\n";//<br />';
         					$desc .= '+' .$Fragment_MP_Effect. ' MP'."\r\n";//<br />';
         					$desc .= '+' .$Fragment_Strength_Effect. ' Force'."\r\n";//<br />';
         					$desc .= '+' .$Fragment_Magic_Effect. ' Magie'."\r\n";//<br />';
         					$desc .= '+' .$Fragment_Agility_Effect. ' Agilité'."\r\n";//<br />';
         					$desc .= '+' .$Fragment_Defense_Effect. ' Defense'."\r\n";//';
         **/
         echo "<tr>";
         echo '<td>' . $Fragment_Name . '</td>';
         // title=""
         echo "<td><a class='infobulle' href='#'>";
         echo "<img title='" . $Fragment['Image_Name'] . "' height='50px' src='data:" . $Fragment['Image_Type'] . ";base64," . $Fragment['Image_Base64'] . "' />";
예제 #29
0
<?php

if (verif_connect()) {
    //Si l'utilisateur ne possède pas de Guilde
    if (has_guild()) {
        echo "<div id='guild-chat'>";
        echo LanguageValidation::iMsg("intro.guild.chat");
        echo '<br />';
        echo '<iframe class="chatroom-frame" src="' . get_link('guild', 'Chat') . '"></iframe>';
        echo '<form method="POST" action="' . get_link("Chat", "Guild") . '">';
        echo '<input type="text" name="chat_Message" placeholder="' . LanguageValidation::nMsg("placeholder.chat.message") . '"/>' . LanguageValidation::eMsg("placeholder.chat.message");
        echo '<input type="submit" name="Chat-Send" value="' . LanguageValidation::nMsg("btn.chat.send") . '"/>' . LanguageValidation::eMsg("btn.chat.send");
        if (verif_access("Admin", true)) {
            echo '<input type="submit" name="Clear" value="' . LanguageValidation::nMsg("btn.chat.clear") . '"/>' . LanguageValidation::eMsg("btn.chat.clear");
        }
        echo '<input type="hidden" name="token" value="' . generer_token('guild-Chat-Send') . '" />';
        echo '</form>';
        echo "</div>";
    }
}
예제 #30
0
<?php

if (isset($bonus) && $bonus == true) {
    echo '<form method="POST" action="' . get_link('Bonus', 'Register') . '">';
    foreach ($array_character_barre as $barre) {
        echo "<label>" . LanguageValidation::iMsg("label." . strtolower($barre) . ".card") . " +</label><input readonly type='text' name='Account_HP_Bonus' value='" . eval('return $Account_' . $barre . '_Bonus ;') . "'><br />";
    }
    foreach ($array_character_stats as $stats) {
        echo "<label>" . LanguageValidation::iMsg("label." . strtolower($stats) . ".card") . " +</label><input readonly type='text' name='Account_HP_Bonus' value='" . eval('return $Account_' . $stats . '_Bonus ;') . "'><br />";
    }
    /**		
    		echo "<label>HP +</label><input readonly type='text' name='Account_HP_Bonus' value='$Account_HP_Bonus'><br />";
    		echo "<label>MP +</label><input readonly type='text' name='Account_MP_Bonus' value='$Account_MP_Bonus'><br />";
    		echo "<label>Force +</label><input readonly type='text' name='Account_Strength_Bonus' value='$Account_Strength_Bonus'><br />";
    		echo "<label>Magie +</label><input readonly type='text' name='Account_Magic_Bonus' value='$Account_Magic_Bonus'><br />";
    		echo "<label>Agilité +</label><input readonly type='text' name='Account_Agility_Bonus' value='$Account_Agility_Bonus'><br />";
    		echo "<label>Defense +</label><input readonly type='text' name='Account_Defense_Bonus' value='$Account_Defense_Bonus'><br />";
    **/
    echo "<input type='hidden' name='Account_ID' value='" . $user_record['Account_ID'] . "'>";
    echo '<input type="hidden" name="token" value="' . generer_token("Register-step-bonus") . '"/>';
    echo '<input type="submit" name="Regene" value="' . LanguageValidation::nMsg("btn.register.regene") . '"/>' . LanguageValidation::eMsg("btn.register.regene");
    echo '<input type="submit" name="Confirm" value="' . LanguageValidation::nMsg("btn.register.stats") . '"/>' . LanguageValidation::eMsg("btn.register.stats");
    echo '</form>';
}