Example #1
0
 /**
  * retourne les valeurs de la guilde
  */
 function guild_data($data = "Guild_ID")
 {
     global $Guild_Data;
     if (empty($Guild_Data)) {
         get_Guild();
     }
     if (has_guild()) {
         if (isset($Guild_Data[$data])) {
             if (!empty($Guild_Data)) {
                 return $Guild_Data[$data];
             }
         }
     }
     return false;
 }
Example #2
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>";
    }
}
Example #3
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'];