} } } 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>'; } } } }
<?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); }
insert_db('Caranille_Chat', array('Chat_Pseudo_ID' => $ID, 'Chat_Guild_ID' => $guild_ID, 'Chat_Message' => $Message)); // } } if (verif_access("Admin", true)) { if (request_confirm('Chat-Clear')) { //if(verifier_token(600, get_link('Chat','Guild') , 'guild-Chat-Send')) //{ delete_db('Caranille_Chat', array('Chat_Guild_ID' => guild_data('Guild_ID'))); echo 'Tous les messages ont bien été supprimé'; //} } } 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 formulaire_input(array(text_input("label.chat.message", "chat_Message", null, null, null, "placeholder.chat.message"), submit_input("Chat-Send", "btn.chat.send"), verif_access("Admin", true) ? submit_input("Chat-Clear", "btn.chat.clear") : null), "guild-Chat-Send", null, "post", null); /** 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>"; } }
if (empty($_POST['Delete']) && empty($_POST['Second_Delete'])) { echo '<div id="login">'; /** echo '<form method="POST" action="'.get_link('Delete_Account','User').'"><br />'; echo '<label for="Pseudo">Pseudo</label><input placeholder="Pseudo" type="text" name="Pseudo"><br /><br />'; echo '<label for="Password">Password</label><input placeholder="Mot de passe" type="password" name="Password"><br /><br />'; echo '<input type="submit" name="Second_Delete" value="Suppression">'; echo '<input type="hidden" name="token" value="'.generer_token("Delete_Account-step-1").'"/>'; echo '</form>'; **/ echo formulaire_input(array(text_input("label.login.pseudo", "Pseudo", null, null, null, "placeholder.login.pseudo"), password_input("label.login.password", "Password", null, null, null, "placeholder.login.password"), submit_input("Second_Delete", "btn.delete.account")), "Delete_Account-step-1", get_link('Delete', 'User'), "post", null); echo '</div>'; } if (request_confirm('Second_Delete')) { // $Pseudo = htmlspecialchars(addslashes($_POST['Pseudo'])); // $Password = md5(htmlspecialchars(addslashes($_POST['Password']))); if (verifier_token(600, get_link('Delete_Account'), 'Delete_Account-step-1')) { extract(addslashes_r($_POST)); echo "Sans Regret ?<br />"; /** echo '<form method="POST" action="'.get_link('Delete','User').'">'; echo '<input type="hidden" name="Pseudo" value="'.$Pseudo.'"/>'; echo '<input type="hidden" name="Password" value="'.$Password.'"/>'; echo '<input type="submit" name="Back" value="Renoncer">'; echo '<input type="hidden" name="token" value="'.generer_token("Delete_Account-step-2").'"/>'; echo '<input type="submit" name="Delete" value="Suppression">'; echo '</form>'; **/ echo formulaire_input(array(hidden_input("Pseudo", $Pseudo), hidden_input("Password", $Password), submit_input("Back", "btn.back.account"), submit_input("Delete", "btn.delete.account")), "Delete_Account-step-2", get_link('Delete', 'User'), "post", null); } }
<?php if (empty($_POST['Login'])) { /** //echo '<div id="login">'; echo '<form method="POST" action="'.get_link('Login','User').'"><br />'; echo '<label for="Pseudo">'.LanguageValidation::iMsg("label.login.pseudo").'</label><input placeholder="'.LanguageValidation::nMsg("placeholder.login.pseudo").'" type="text" name="Pseudo">'.LanguageValidation::eMsg("placeholder.login.pseudo").'<br /><br />'; echo '<label for="Password">'.LanguageValidation::iMsg("label.login.password").'</label><input placeholder="'.LanguageValidation::nMsg("placeholder.login.password").'" type="password" name="Password">'.LanguageValidation::eMsg("placeholder.login.password").'<br /><br />'; echo '<input type="hidden" name="token" value="'.generer_token('Login').'" />'; //echo '<input type="submit" name="Login" value="Se connecter">'; echo '<input type="submit" name="Login" value="'.LanguageValidation::nMsg("btn.login.init").'"/>'.LanguageValidation::eMsg("btn.login.init"); echo '</form>'; //echo '</div>'; **/ echo formulaire_input(array(text_input("label.login.pseudo", "Pseudo", null, null, null, "placeholder.login.pseudo"), password_input("label.login.password", "Password", null, null, null, "placeholder.login.password"), submit_input("Login", "btn.login.init")), "Login", get_link('Login', 'User'), "post", null); } if (isset($message) && $message !== '') { echo nl2br($message); }