<?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>';
echo init_popIn('event-' . $events[$day]['Event_ID'] . '-form', "Ev: " . $events[$day]['Event_Name'], $content, 'event-link'); } else { if (has_guild_acces('evenement')) { $content = '<form method="POST" action="' . get_link("Calendar", "Guild", array('m' => $month, 'y' => $year)) . '">'; $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>
function list_html($List = array(), $table, $page, $header = array(), $add = true, $edit = true, $remove = true, $show = true) { global $db_mapping, $secteur_module; // on recupere le mapping de la table en parametres $table_mapping = $db_mapping[$table]; //echo 'Voici la liste des chapitres du MMORPG<br /><br />'; echo '<table class="Admin list">'; echo '<tr>'; foreach ($table_mapping['champs'] as $champs => $prop) { if (in_array($champs, $header)) { echo '<th>' . $prop['label'] . '</th>'; } if (isset($prop['increment'])) { $primary[] = $champs; } if (isset($prop['Ordering'])) { $orderer = $champs; } } foreach ($table_mapping['key'] as $champs => $r) { if (preg_match('/PRIMARY/i', $r['key'])) { //($r['key']=='PRIMARY') $primary[] = $champs; } } //if(isset($prop['increment'])) echo '<th ' . (isset($orderer) ? "colspan='3'" : "") . '>'; if ($add) { //echo '<form method="POST" action="'.get_link($page,'Admin').'" >'; //echo '<input type="submit" name="Add" value="+"/>'; //echo '</form>'; echo '<a href="' . get_link($page, $secteur_module, array('Add' => 'one')) . '">+</a>'; } echo '</th>'; echo '</tr>'; $ct = count($List); if (!empty($List)) { foreach ($List as $Chapter) { //$Chapter_ID = stripslashes($Chapter[$primary]); $push = array(); echo '<tr>'; foreach ($table_mapping['champs'] as $champs => $prop) { if (in_array($champs, $header)) { echo '<td>'; if (isset($table_mapping['key'][$champs])) { $key = $table_mapping['key'][$champs]; if (preg_match('/FOREIGN/i', $key['key'])) { //( $key['key'] === 'FOREIGN') echo get_foreign_value_db($table, $champs, $Chapter[$champs]); } else { echo $Chapter[$champs]; } } else { echo $Chapter[$champs]; } echo '</td>'; } } foreach ($primary as $_id_) { $push[$_id_] = $Chapter[$_id_]; } if (isset($orderer)) { $push[$orderer] = $Chapter[$orderer]; echo "<td>"; if ($Chapter[$orderer] != 1) { /* echo "<form method='post' action='".get_link($page,'Admin')."'>"; foreach($primary as $_id_) echo '<input type="hidden" name="'.$_id_.'" value="'.$Chapter[$_id_].'"/>'; echo '<input type="hidden" name="'.$orderer.'" value="'.$Chapter[$orderer].'"/>'; echo "<input type='submit' name='up_rank' value='⇑' />"; echo "</form >"; */ $push['up_rank'] = 'one'; echo '<a href="' . get_link($page, $secteur_module, $push) . '">⇑</a>'; unset($push['up_rank']); } echo "</td>"; echo "<td>"; if ($Chapter[$orderer] != $ct) { /* echo "<form method='post' action='".get_link($page,'Admin')."'>"; foreach($primary as $_id_) echo '<input type="hidden" name="'.$_id_.'" value="'.$Chapter[$_id_].'"/>'; echo '<input type="hidden" name="'.$orderer.'" value="'.$Chapter[$orderer].'"/>'; echo "<input type='submit' name='down_rank' value='⇓' />"; echo "</form>"; */ $push['down_rank'] = 'one'; echo '<a href="' . get_link($page, $secteur_module, $push) . '">⇓</a>'; unset($push['down_rank']); } echo "</td>"; } echo '<td>'; /** echo '<form method="POST" action="'.get_link($page,'Admin').'">'; foreach($primary as $_id_) echo '<input type="hidden" name="'.$_id_.'" value="'.$Chapter[$_id_].'"/>'; if($edit) echo '<input type="submit" name="Second_Edit" value="✓"/>'; if($remove) echo '<input type="submit" name="Second_Delete" value="✗"/>'; echo '</form>'; **/ if ($show) { $push['Second_Show'] = 'one'; echo '<a href="' . get_link($page, $secteur_module, $push) . '">♯</a>'; unset($push['Second_Show']); } if ($edit) { $push['Second_Edit'] = 'one'; echo '<a href="' . get_link($page, $secteur_module, $push) . '">✓</a>'; unset($push['Second_Edit']); } if ($remove) { echo init_popIn('remove-' . implode($push, "-") . '-form', "Suppression", confirm_remove_db($table, $page, $push[$_id_]), 'remove-link'); } echo '</td>'; echo '</tr>'; } } echo '<tr><td colspan="">' . $ct . ' résultat(s)</td></tr>'; echo '</table>'; }
/** * * editeur de trad */ static function eMsg() { $args = func_get_args(); $key = $args[0]; $value = ''; if (self::isMessageEditionMode()) { $params = array('key' => $key); //$value .= '<a class="translate-link" href="'.get_Link('translate','edition',$params ).'" ></a>'; //$value .= '<img class="translate-img" src="'.frameValidation::getImagePath('admin/edit.png').'"/>'; //$value .= '<img class="translate-img" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAwBQTFRFAAAA////3d7i1dbVj4+O9c9K9MQx9tue8Z0M7cBxj1kCr4tcy3IK1pJPGhQQq52U8mIT4rOX0qiP2JJvsYRu/9G/zl9J3Dwh5nBZ6ZGA8IBxqXVuAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA37h3pQAAAB10Uk5T/////////////////////////////////////wBZhudqAAAAZElEQVR42oyPQQ6AIAwECaggorWCVtT/v9MQkoIejHubOXS34npFfIgYj4cAWmmvBEhFMxXhpIKTNhau7czQAN9IbBxwS2bLtU4XTgK17pmT8BpxtNXSsKC39fQpePz3XM4twADEFBfbmIX7EgAAAABJRU5ErkJggg=="/>'; //$value .= ''; $content = translateForm::getForm($key); $value = init_popIn('translate-' . $key . '-form', "tranlate {$key}", $content, 'translate-link'); } return $value; }
function mentions() { global $secteur, $page, $_url; if ($page == 'mentions') { ?> <div> <a href="http://www.caranille.fr" hreflang="fr" title="http://www.caranille.fr">Site officiel</a> | <a href="http://mmorpg.caranille.com/" hreflang="fr" title="http://mmorpg.caranille.com/">MMORPG officiel (Démonstration)</a> | <a class="hit_counter" data-hit="86262" href="http://www.gnu.org/licenses" hreflang="fr" title="http://www.gnu.org/licenses">GNU GPL</a> <p> <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"> <img alt="Licence Creative Commons" style="border-width:0" src="http://i.creativecommons.org/l/by/4.0/88x31.png" /></a> <br />Ce(tte) œ œuvre est mise à à disposition selon les termes de la <br/> <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Licence Creative Commons Attribution 4.0 International</a>. </p> <?php echo init_popIn('licence', "lire la licence", '<iframe id="licence" src="' . $_url . 'LICENCE.txt"></iframe>', 'licence-link'); ?> <br /><br /> </div> <?php } }
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>'; foreach ($Player_List as $Account) { $xp_purcent = $Account['Account_Experience'] / $Account['Level_Experience_Required'] * 100; $content_retire = "<a href='" . get_link('Friends', 'User', array('del' => $membre)) . "' >Retirer définitivement de la liste d'amis</a>"; 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;" > </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 "<td>" . init_popIn('del-friend-' . $Account['Account_ID'] . '-form', "Retirer de la liste d'amis", $content_retire, 'del-friend-link') . "</td>"; echo '</tr>'; } echo '</table>'; }
//Cette variable stock le nombre de messages, on la met à jour $totaldesmessages += $Forum_Post; } else { echo "Vous n'avez pas acces au forum !!! "; } } //fin de la boucle } else { echo "<tr><th colspan='5' >Ce forum est vide....</th></tr>"; } ?> <tr> <th colspan='2'><?php if (has_guild_acces('forum')) { echo init_popIn('categorie', "Ajouter Categorie", ajout_cat_form($map_cat), 'categorie-link'); } ?> </th> <th></th> <th colspan='2'><?php if (has_guild_acces('forum')) { echo init_popIn('forum', "Ajouter Forum", ajout_forum_form($map_cat), 'forum-link'); } ?> </th> </tr> </table> <?php } }
<?php if (verif_connect()) { get_ocedar(); menu_character(); //Search and display game Diaries $Resultat = list_db('diary_list', array('Account_ID' => user_data('Account_ID'))); if (!empty($Resultat)) { echo '<table class="newsboard diary" >'; foreach ($Resultat as $Diaries) { $date = new DateTime($Diaries['Diary_Date']); $content = "\n\t\t<form method='post' action='" . get_link('diary', 'game') . "' >\n\t\tRésumé : " . stripslashes(nl2br($Diaries['Diary_Message'])) . "\n\t\t\t<input type='hidden' name='Diary_ID' value ='" . $Diaries['Diary_ID'] . "' />\n\t\t\t" . call_bbcode_editor("roleplay", $Diaries['Diary_Description']) . "\n\t\t\t<input type='submit' name='edit-role-play' value ='✓' />\n\t <input type='hidden' name='token' value='" . generer_token("editor-role-play-" . $Diaries['Diary_ID']) . "'/>\n\t\t</form>\n\t\t"; echo '<tr>'; echo '<th class="date">' . $date->format("d/m/Y à H:i") . '</th>'; echo '<td class="message">'; echo '' . stripslashes(nl2br($Diaries['Diary_Message'])) . ''; echo '</td>'; echo '<td>'; echo init_popIn('roleplay-' . $Diaries['Diary_ID'] . '-form', "RolePlay", $content, 'roleplay-link'); echo '</td>'; echo '</tr>'; echo '<tr>'; echo '<td class="none" colspan="2" >'; echo '</td>'; echo '</tr>'; } echo '</table>'; } }