function get_formulaire($M = array()) { global $array_magic_type; extract(stripslashes_r($M)); ?> <form method="POST" action="<?php echo get_link("Magics", "Admin"); ?> "> <?php echo forumulaire_db('Caranille_Magics', $M); ?> <br/> <input type="submit" name="Back" value="Annuler" /> <input type="submit" name="End_<?php echo request_confirm('Add') ? 'Add' : 'Edit'; ?> " value="Terminer"/> <?php if (request_confirm('Second_Edit')) { ?> <input type="submit" name="Second_Delete" value="Supprimer"><?php } ?> </form> <?php }
function get_formulaire_Caracteristique($Caracteristique = array()) { extract(stripslashes_r($Caracteristique)); ?> <form method="POST" action="<?php echo get_link("Caracteristiques", "Admin"); ?> "> <h2><?php echo request_confirm('Add') ? 'Ajout' : 'Modification'; ?> du Caracteristique</h2> <?php echo forumulaire_db('Caranille_Caracteristiques', $Caracteristique); ?> <br/> <input type="submit" name="Back" value="Annuler" /> <input type="submit" name="End_<?php echo request_confirm('Add') ? 'Add' : 'Edit'; ?> " value="Terminer"/> <?php if (request_confirm('Second_Edit')) { ?> <input type="submit" name="Second_Delete" value="Supprimer"><?php } ?> </form> <?php }
function get_formulaire_Menu($Menu = array()) { extract(stripslashes_r($Menu)); if (isset($Menu_Module)) { set_values_db('Caranille_Menus', 'Menu_Link', list_menu($Menu_Module)); } ?> <form method="POST" action="<?php echo get_link("Menus", "Admin"); ?> "> <h2><?php echo request_confirm('Add') ? 'Ajout' : 'Modification'; ?> du Menu</h2> <?php echo forumulaire_db('Caranille_Menus', $Menu); ?> <br/> <input type="submit" name="Back" value="Annuler" /> <input type="submit" name="End_<?php echo request_confirm('Add') ? 'Add' : 'Edit'; ?> " value="Terminer"/> <?php if (request_confirm('Second_Edit')) { ?> <input type="submit" name="Second_Delete" value="Supprimer"><?php } ?> </form> <?php }
function stripslashes_arr($arr) { $newArr = array(); foreach ($arr as $key => $value) { $newArr[$key] = is_array($value) ? stripslashes_r($value) : stripslashes($value); } return $newArr; }
function stripslashes_r(&$Array) { foreach ($Array as $Key => $Value) { if (is_array($Value)) { stripslashes_r($Array[$Key]); } else { $Array[$Key] = stripslashes($Value); } } return $Array; }
function register_request() { global $prefixe_salt, $suffixe_salt; extract(addslashes_r(stripslashes_r($_POST))); $Date = date('Y-m-d H:i:s'); $IP = getRealIpAddr(); $filter = uniqid(); $pswd = password_encode($prefixe_salt . $filter . $suffixe_salt, $Password); $key = uniqid(); insert_db('Caranille_Accounts', array('Account_Pseudo' => strip_tags($Pseudo), 'Account_Password' => strip_tags($pswd), 'Account_Salt' => $filter, 'Account_Email' => $Email, 'Account_Sexe' => $Sexe, 'Account_Inscription' => $Date, 'Account_Last_IP' => $IP, 'Account_HP_Remaining' => 100, 'Account_Key' => $key, 'Account_valid' => 0, 'Account_Level' => 1, 'Account_Order' => 1, 'Account_Reason' => 'None', 'Account_Status' => "Authorized", 'Account_Access' => "Member", 'Account_Guild_ID' => 0, 'Account_HP_Bonus' => 0, 'Account_MP_Remaining' => 10, 'Account_MP_Bonus' => 0, 'Account_Strength_Bonus' => 0, 'Account_Magic_Bonus' => 0, 'Account_Agility_Bonus' => 0, 'Account_Defense_Bonus' => 0, 'Account_Experience' => 0, 'Account_Golds' => 0, 'Account_Notoriety' => 0, 'Account_Chapter' => 1, 'Account_Mission' => 1, 'Account_Step' => 2)); $user_record = get_db('request_account', $_POST); return $user_record; }
function news_comment_form($News) { $form = '<form method="POST" action="' . get_link('Comments', 'Public') . '">'; $form .= call_bbcode_editor("Comment_Message"); //$form .= '<textarea name="Comment_Message" ID="message" rows="10" cols="50"></textarea><br/><br/>'; $form .= '<input type="hidden" name="Comment_News_ID" value="' . stripslashes_r($News['News_ID']) . '"/>'; $form .= '<input type="hidden" name="News_ID" value="' . stripslashes_r($News['News_ID']) . '"/>'; $form .= '<input type="hidden" name="Comment_Date" value="' . date('Y-m-d H:i:s') . '"/>'; $form .= '<input type="hidden" name="Comment_Account_Pseudo" value="' . user_data('Account_Pseudo') . '"/>'; $form .= '<input type="hidden" name="token" value="' . generer_token('Comment-' . $News['News_ID']) . '" />'; $form .= '<input type="submit" name="End_Add" value="Terminer">'; $form .= '</form>'; return $form; }
function get_formulaire_Landing($Landings = array()) { global $rayon_city, $array_landing_type, $_path; extract(stripslashes_r($Landings)); ?> <form method="POST" action="<?php echo get_link("Landing", "Admin"); ?> "> <table> <tr><th colspan="2">Coordonnées de la terrain</th></tr> <tr><td><?php echo line_db("Caranille_Landings", "Landing_PosX", isset($Landing_PosX) ? $Landing_PosX : $_POST['PosX']); echo line_db("Caranille_Landings", "Landing_PosY", isset($Landing_PosX) ? $Landing_PosY : $_POST['PosY']); echo line_db("Caranille_Landings", "Landing_Type", isset($Landing_Type) ? $Landing_Type : 0); ?> </td></tr> <tr><td class="none" colspan="2"> <input type="hidden" name="Landing_ID" value="<?php echo isset($Landing_ID) ? $Landing_ID : ''; ?> "/> <input type="submit" name="Back" value="Annuler" /> <input type="submit" name="End_<?php echo request_confirm('Add') ? 'Add' : 'Edit'; ?> " value="Terminer"> <?php if (request_confirm('Second_Edit')) { ?> <input type="submit" name="Second_Delete" value="Supprimer"><?php } ?> </td></tr> </table> </form> <?php }
public function GetModule($ModuleId, $Fields = array("id", "name", "author", "version", "classname", "filename", "classfilename", "action", "menu", "active")) { global $objDb; $Data = NULL; if ($ModuleId != NULL) { $Rows = $objDb->Select($Fields, "modules", "WHERE `id` = '{$ModuleId}'"); if ($Rows == 0) { return false; } $Data = $objDb->FetchArray(); stripslashes_r($Data); } else { $Rows = $objDb->Select($Fields, "modules"); if ($Rows == 0) { return false; } while ($x = $objDb->FetchArray()) { $Data[] = stripslashes_r($x); } } return $Data; }
/** * retrouve le joueur * utilisé dans refresh.php * utilisé dans login.php */ function get_perso($Pseudo) { global $Account_Data, $already_get_perso; if (!$already_get_perso) { debug_log("function get_perso({$Pseudo})"); $user_record = get_db('perso_account', array('Pseudo' => $Pseudo)); if (!empty($user_record)) { $Account_Data = stripslashes_r($user_record); } debug_log("Account_Data =><" . print_r($Account_Data, 1) . ">"); $already_get_perso = true; } }
//$email_webmaster = "*****@*****.**"; // utile en cas de perte du mot de passe // entrer les parametres pour la connexion $dbUser = "******"; $dbPass = ""; $dbHote = "localhost"; //nom de la base � laquelle on se connecte $dbName = "chiricahuasv1"; global $connexion; //-----------------------------------------------------------------------------// // !!! Ne rien changer sous cette ligne !!! /*function stripslashes_r($var) {// Fonction qui supprime l'effet des magic quotes if (is_array($var)) { // Si la variable pass�e en argument est un array, on appelle la fonction stripslashes_r dessus return array_map('stripslashes_r', $var); } else { // Sinon stripslashes return stripslashes($var); } }*/ if (get_magic_quotes_gpc()) { // Si les magic quotes sont activ�s on les d�sactive $_GET = stripslashes_r($_GET); $_POST = stripslashes_r($_POST); $_COOKIE = stripslashes_r($_COOKIE); } // connexion et choix de la base try { $connexion = mysqli_connect($dbHote, $dbUser, $dbPass, $dbName) or die("Error " . mysqli_error($connexion)); $GLOBALS['connexion'] = mysqli_connect($dbHote, $dbUser, $dbPass, $dbName) or die("Error " . mysqli_error($connexion)); } catch (Exception $e) { // message en cas d'erreur die('Erreur : ' . $e->getMessage()); }
* * Nickolay Shestakov <*****@*****.**> * * This program is free software, distributed under the terms of * the GNU General Public License Version 2. See the LICENSE file * at the top of the source tree. */ session_start(); if (!$_SESSION['fm_entry']) { die('Not a Valid Entry'); } include_once "../lang/" . $_SESSION['lang'] . ".lang.php"; include_once "../config.php"; include_once "../lib/func.php"; include_once "../lib/pclzip/pclzip.lib.php"; $files = stripslashes_r($_POST['par']); if (empty($files)) { exit; } $files = explode(",", $files); function send_file($path) { session_write_close(); ob_end_clean(); if (!is_file($path) || connection_status() != 0) { return false; } //to prevent long file from getting cut off from //max_execution_time set_time_limit(0); $name = basename($path); //filenames in IE containing dots will screw up the
echo formulaire_input(array(select_input("label.message.destinataire", "Receiver", $Players, null, null, "Receiver"), text_input("label.message.subject", "Message_Subject", null, null, null, "placeholder.message.subject"), call_bbcode_editor("Message"), submit_input("Send", "btn.message.send")), "Mailbox-Send", get_link('Mailbox', 'User'), "post", null); } else { if (request_confirm('Read')) { $Messages = list_db('request_mailbox', user_data()); echo "<table class='newsboard email' >"; echo "<tr><th><div class='important'>" . LanguageValidation::iMsg("label.message.emetteur") . "</div></th>"; echo "<th><div class='important'>" . LanguageValidation::iMsg("label.message.subject") . "</div></th>"; echo "<th>" . LanguageValidation::iMsg("label.message.content") . "</th>"; echo '<th></th></tr>'; echo '<tr>'; echo '<td class="none" colspan="4" >'; echo '</td>'; echo '</tr>'; if (!empty($Messages)) { foreach ($Messages as $Message) { extract(stripslashes_r($Message)); $ID = get_db('request_mail', $Message); if (!empty($ID)) { $Transmitter = $ID['Account_Pseudo']; echo "<tr><td>{$Transmitter}</td>"; echo "<td>{$Private_Message_Subject}</td>"; echo "<td>" . bb_code($Private_Message_Message) . "</td>"; echo '<td>'; echo formulaire_input(array(hidden_input("Private_Message_ID", $Private_Message_ID), hidden_input("Private_Message_Conversation", $Private_Message_Conversation), hidden_input("Transmitter", $Transmitter), hidden_input("Message_Subject", $Private_Message_Subject), hidden_input("Message", nl2br($Private_Message_Message)), submit_input("Reply", "btn.message.reply"), submit_input("Delete", "btn.message.delete")), "Mailbox-Send-{$Private_Message_ID}", get_link('Mailbox', 'User'), "post", null); echo '</td></tr>'; echo '<tr>'; echo '<td class="none" colspan="4" >'; echo '</td>'; echo '</tr>'; } }
* Copyright (C) 2006 - 2007, West-Web Limited. * * Nickolay Shestakov <*****@*****.**> * * This program is free software, distributed under the terms of * the GNU General Public License Version 2. See the LICENSE file * at the top of the source tree. */ session_start(); if (!$_SESSION['fm_entry']) { die('Not a Valid Entry'); } include_once "../config.php"; include_once "../lib/func.php"; include_once "../lang/" . $_SESSION['lang'] . ".lang.php"; $file = stripslashes_r($_GET['file']); $theme = $_SESSION['theme']; if (empty($file) || !is_file($file)) { exit; } $fp = @fopen($file, "rb"); if (!$fp) { echo $strCantOpenFile; exit; } $bn = substr(strrchr($file, '/'), 1); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Script-Type" content="text/javascript">
* Copyright (C) 2006 - 2007, West-Web Limited. * * Nickolay Shestakov <*****@*****.**> * * This program is free software, distributed under the terms of * the GNU General Public License Version 2. See the LICENSE file * at the top of the source tree. */ session_start(); if (!$_SESSION['fm_entry']) { die('Not a Valid Entry'); } include_once "../../lang/" . $_SESSION['lang'] . ".lang.php"; include_once "../../lib/func.php"; include_once "func.php"; extract(stripslashes_r($_POST)); $theme = $_SESSION['theme']; $archive = $par[0]; list($ar_basename, $bname, $type) = get_ar_type($archive); /* $ar_basename=substr(strrchr($archive,'/'),1); $ext = strtolower(substr(strrchr($archive,'.'),1)); $bname=substr($archive,0,strrpos($archive,'.')); $ext2 = strtolower(substr(strrchr($bname,'.'),1)); if($ext2 == "tar") { if($ext == "gz") $type="targz"; elseif($ext == "bz2") $type="tarbz2"; $bname=substr($archive,0,strrpos($bname,'.'));
<br/> <?php //On vérifie que la requête a bien retourné des messages if (count($query) < 1) { echo '<p>Il n y a aucun post sur ce topic, vérifiez l url et reessayez</p>'; } else { //Si tout roule on affiche notre tableau puis on remplit avec une boucle ?> <table> <tr> <th class="vt_auteur"><strong>Auteurs</strong></th> <th class="vt_mess"><strong>Messages</strong></th> </tr> <?php foreach ($query as $data) { extract(stripslashes_r($data)); //On commence à afficher le pseudo du créateur du message : //On vérifie les droits du Account //(partie du code commentée plus tard) echo '<tr><td><strong> <a href="./voirprofil.php?m=' . $Account_ID . '&action=consulter"> ' . $Account_pseudo . '</a></strong></td>'; /* Si on est l'auteur du message, on affiche des liens pour Modérer celui-ci. Les modérateurs pourront aussi le faire, il faudra donc revenir sur ce code un peu plus tard ! */ $d = new datetime($Post_Time); if (user_data('Account_ID') == $Post_Createur) { echo '<td id=p_' . $Post_ID . '>Posté à ' . $d->format('H\\hi \\l\\e d M y') . ' <a href="' . get_link('Poster', 'Guild', array('action' => 'delete', 'p' => $Post_ID)) . '"><span alt="Supprimer" title="Supprimer ce message" >✗</span></a> <a href="' . get_link('Poster', 'Guild', array('action' => 'edit', 'p' => $Post_ID)) . '"><span alt="Editer" title="Editer ce message" >✓</span></a></td></tr>';
<?php /* * Copyright (C) 2006 - 2007, West-Web Limited. * * Nickolay Shestakov <*****@*****.**> * * This program is free software, distributed under the terms of * the GNU General Public License Version 2. See the LICENSE file * at the top of the source tree. */ include_once "func.php"; extract(stripslashes_r($_GET)); $size = filesize($file); if (empty($file) || !is_file($file) || !$size) { exit; } $bn = substr(strrchr($file, '/'), 1); if (!($fp = @fopen($file, "rb"))) { exit; } if ($type == 'txt') { ?> <html> <head> <title><?php echo $title; ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head>
/** * * Fonction recursive qui supprime l'effet des magic quotes * à utiliser pour l'affichage des données * il faut la retravailler. j'ai quelques cas où ça suprrime aussi les retour chariot * @param $var */ function stripslashes_r($var) { //print_array($var, 'stripslashes_r'); if (is_array($var)) { // Si la variable passée en argument est un array, on appelle la fonction stripslashes_r dessus foreach ($var as $champs => $value) { $var[$champs] = stripslashes_r($value); } } else { if (is_object($var)) { // Si la variable passée en argument est un object, on appelle la fonction stripslashes_r dessus foreach ($var as $champs => $value) { $var->{$champs} = stripslashes_r($value); } } else { //$var = str_replace("\\", '\ ', $var); //$var = str_replace("\'", "'", $var); $var = stripslashes($var); $var = trim($var); } } return $var; }
echo '</table>'; } if (request_confirm('Craft')) { echo 'Voici vos Fragments<br /><br />'; 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>";
<?php if (isset($race) && $race == true) { $Race_list = list_db('list_races'); $token = generer_token("Register-step-race"); if (!empty($Race_list)) { foreach ($Race_list as $Race) { extract(stripslashes_r($Race)); echo '<h2>' . $Race_Name . '</h2>'; echo '<p>' . nl2br($Race_Description) . '</p>'; echo '<form method="POST" action="' . get_link('Race', 'Register') . '">'; echo "<input type='hidden' name='Race_ID' value='{$Race_ID}' />"; echo "<input type='hidden' name='Account_ID' value='" . $user_record['Account_ID'] . "' />"; echo '<input type="hidden" name="token" value="' . $token . '"/>'; echo '<input type="submit" name="Race" value="' . LanguageValidation::nMsg("btn.register.race") . '"/>' . LanguageValidation::eMsg("btn.register.race"); echo '</form>'; } echo '<p>ATTENTION, ce choix est irréversible, choisissez donc bien</p>'; } else { echo '<form method="POST" action="' . get_link('Race', 'Register') . '">'; echo "<input type='hidden' name='Race_ID' value='0' />"; echo "<input type='hidden' name='Account_ID' value='" . $user_record['Account_ID'] . "' />"; echo '<input type="hidden" name="token" value="' . $token . '"/>'; echo '<input type="submit" name="Race" value="' . LanguageValidation::nMsg("btn.register.pass") . '"/>' . LanguageValidation::eMsg("btn.register.pass"); echo '</form>'; } }
<?php if (verif_connect()) { load_css('guild.css', 'guild'); if (has_guild()) { if (has_guild_acces('recrutement')) { if (request_confirm('guild-engage') || request_confirm('guild-refuse')) { if (verifier_token(60, get_link('Recrutement', 'Guild'), 'guild-candidat-' . $_POST['Account_ID'])) { $Account_Query = get_db("candidat_guild_confirm", array('Guild_ID' => guild_data('Guild_ID'), 'Account_ID' => request_post('Account_ID'))); if (!empty($Account_Query)) { if (request_confirm('guild-engage')) { update_db('Caranille_Accounts', stripslashes_r($_POST)); $message = "Vous avez été accepté dans la guilde " . guild_data('Guild_Name') . "."; } else { update_db('Caranille_Accounts', array('Account_ID' => $Account_Query['Account_ID'], 'Account_Guild_ID' => 0, 'Account_Guild_Accept' => 0)); $message = "Votre candidature dans la guilde " . guild_data('Guild_Name') . " a été refusé."; } add_diary($message, $Account_Query['Account_ID']); insert_db('Caranille_Private_Messages', array('Private_Message_Transmitter' => logged_data('Account_ID'), 'Private_Message_Receiver' => $Account_Query['Account_Pseudo'], 'Private_Message_Subject' => "Votre candidature dans la guilde " . guild_data('Guild_Name'), 'Private_Message_Message' => $message, 'Private_Message_Conversation' => null)); } } } } } }
* Copyright (C) 2006 - 2007, West-Web Limited. * * Nickolay Shestakov <*****@*****.**> * * This program is free software, distributed under the terms of * the GNU General Public License Version 2. See the LICENSE file * at the top of the source tree. */ session_start(); if (!$_SESSION['fm_entry']) { die('Not a Valid Entry'); } include_once "../lang/" . $_SESSION['lang'] . ".lang.php"; include_once "../lib/func.php"; include_once "../lib/sysfunc.php"; $file = stripslashes_r($_POST['file']); $isfile = is_file($file); $isdir = is_dir($file); if (!$isfile && !$isdir) { echo "<center><br><font color=red>{$strCantGetFileInfo}...</font><br><br></center>"; exit; } echo "<table cellspacing=1 cellpadding=0 style=\"margin: 3px;font-size: 10px; font-family: verdana,sans;\">"; if ($isdir) { echo "<tr><td>" . $strFileType . ":</td><td> Directory </td></tr>"; } else { $res = execute(which("file") . " " . escapeshellarg($file)); $res = explode(":", $res); echo "<tr><td valign=\"top\">" . $strFileType . ":</td><td> " . array_pop($res) . "</td></tr>"; } $stat = @stat($file);
function verif_defcon($f) { $f = http_domain($f); $base = rstr(18) ? 'public' : $_SESSION['qb']; $r = msql_read('', $base . '_defcons', ''); if ($r) { foreach ($r as $k => $v) { if ($f == $k) { return array($k, stripslashes_r($v)); } } } }
<?php load_css('forum.css', 'forum'); if (verif_connect()) { //Si l'utilisateur ne possède pas de Guilde if (has_guild()) { $titre = "Voir un sujet"; //On récupère la valeur de t $Topic_ID = intval(request_get('t')); //Nombre de pages $numpage = request_confirm('page') ? intval(request_get('page')) : 1; //A partir d'ici, on va compter le nombre de messages pour n'afficher que les 15 premiers $query = get_db('request_guild_topic', array('topic' => $Topic_ID, 'Guild_ID' => guild_data('Guild_ID'))); extract(stripslashes_r($query)); //On ajoute 1 au nombre de visites de ce topic update_db('Caranille_Topics', array('Topic_ID' => $Topic_ID, 'Topic_Vu' => $Topic_Vu + 1)); $Forum_ID = $Forum_ID; $baseline = '<i>Vous êtes ici</i> : <a href="' . get_link('Main', 'Guild') . '">Index du forum</a> » <a href="' . get_link('Forum', 'Guild', array('f' => $Forum_ID)) . '">' . $Forum_Name . '</a> » <a href="' . get_link('Topic', 'Guild', array('t' => $Topic_ID)) . '">' . $Topic_Titre . '</a>'; } }
<?php if (isset($order) && $order == true) { extract($_POST); $Order_list = list_db('list_ordres'); $token = generer_token("Register-step-order"); if (!empty($Order_list)) { foreach ($Order_list as $Order) { extract(stripslashes_r($Order)); $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', 'Register') . '">'; $html_order[$Order_ID] .= "<input type='hidden' name='Order_ID' value='{$Order_ID}' />"; $html_order[$Order_ID] .= "<input type='hidden' name='Account_ID' value='" . $user_record['Account_ID'] . "' />"; //$html_order[$Order_ID] .= '<input type="submit" name="Confirm" value="Rejoindre" />'; $html_order[$Order_ID] .= '<input type="hidden" name="token" value="' . $token . '"/>'; $html_order[$Order_ID] .= '<input type="submit" name="Order" value="' . LanguageValidation::nMsg("btn.register.order") . '"/>' . LanguageValidation::eMsg("btn.register.order"); $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 '<p>Bienvenue sur la page des ordres</p>'; echo '<p>Vous êtes actuellement neutre. Pour participer au PVP dans le champs de batailles vous devez choisir un odre à servir</p>'; echo '<p>ATTENTION, ce choix est irréversible, choisissez donc bien</p>'; } else { echo '<form method="POST" action="' . get_link('Order', 'Register') . '">'; echo "<input type='hidden' name='Order_ID' value='0' />"; echo "<input type='hidden' name='Account_ID' value='" . $user_record['Account_ID'] . "' />"; //echo '<input type="submit" name="Confirm" value="Rejoindre" />'; echo '<input type="hidden" name="token" value="' . $token . '"/>'; echo '<input type="submit" name="Race" value="' . LanguageValidation::nMsg("btn.register.pass") . '"/>' . LanguageValidation::eMsg("btn.register.pass");
/* * Copyright (C) 2006 - 2007, West-Web Limited. * * Nickolay Shestakov <*****@*****.**> * * This program is free software, distributed under the terms of * the GNU General Public License Version 2. See the LICENSE file * at the top of the source tree. */ session_start(); if (!$_SESSION['ams_entry']) { die('Not a Valid Entry'); } include_once "func.php"; extract(stripslashes_r($_REQUEST)); if (empty($file)) { exit; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body onload=" if(parent.isIE || parent.isOpera){ try {document.execCommand('print',false);} catch (e) {}; }else { try {window.print()} catch (e) {}; }" style="font-size: 11px; font-family: verdana,sans;">
* * Nickolay Shestakov <*****@*****.**> * * This program is free software, distributed under the terms of * the GNU General Public License Version 2. See the LICENSE file * at the top of the source tree. */ session_start(); if (!$_SESSION['fm_entry']) { die('Not a Valid Entry'); } include_once "../lang/" . $_SESSION['lang'] . ".lang.php"; include_once "../lib/func.php"; include_once "../lib/sysfunc.php"; $oldname = stripslashes_r($_POST['oldname']); $newname = stripslashes_r($_POST['newname']); if (is_file($newname) || is_dir($newname)) { echo $strRenameFailed . ": " . $strFileExists . ": " . hc($newname); exit; } setenvlang(); $com = which("mv"); if ($com) { exec($com . " -f " . escapeshellarg($oldname) . " " . escapeshellarg($newname) . " 2>&1", $out); if (!empty($out)) { echo $strRenameFailed . "...<br>" . hs($out[0]) . "..."; } else { echo "success"; } exit; }
$ID = user_data('Account_ID'); $Date = date('Y-m-d H:i:s'); $IP = getRealIpAddr(); $Pseudo = logged_data('Account_Pseudo'); init_stat_session(); clear_token(); // => trop brutal... clear_battle(); debug_log('Account_ID::' . logged_data('Account_ID')); debug_log('Account_Pseudo::' . logged_data('Account_Pseudo')); /** * Vérification des sanctions pour l'utilisateur */ $Warning_List = get_db("get_sanction_user", array('Account_ID' => logged_data('Account_ID'))); if (!empty($Warning_List)) { extract(stripslashes_r($Warning_List)); $message = "Vous avez recu un(e) {$Sanction_Type} de la part de {$Sanction_Transmitter}\\n\\n{$Sanction_Message}"; delete_db('Caranille_Sanctions', array('Sanction_ID' => $Sanction_ID)); } /* Mise à jour du compte en temps réel */ //get_user($Pseudo); if (verif_auth()) { init_equipement_session(); get_perso($Pseudo); get_equipement($Pseudo); get_Guild($Pseudo); $Next_Level = get_new_level(); updateConnected(); } else {
* * Nickolay Shestakov <*****@*****.**> * * This program is free software, distributed under the terms of * the GNU General Public License Version 2. See the LICENSE file * at the top of the source tree. */ session_start(); if (!$_SESSION['fm_entry']) { die('Not a Valid Entry'); } include_once "../lang/" . $_SESSION['lang'] . ".lang.php"; include_once "../config.php"; include_once "../lib/func.php"; include_once "../lib/sysfunc.php"; $dir = stripslashes_r($_POST['dir']); $theme = $_SESSION['theme']; if ($prog = which('wget')) { $progtype = "wget"; } elseif ($prog = which('curl')) { $progtype = "curl"; } elseif (@ini_get('allow_url_fopen')) { $progtype = "copy"; } elseif ($prog = which('links')) { $progtype = "links"; } elseif ($prog = which('lynx')) { $progtype = "lynx"; } ?> <script> fm.uploadRemoteFile = function() {
<?php if (isset($classe) && $classe == true) { $classe_list = list_db('list_classes'); $token = generer_token("Register-step-classe"); if (!empty($classe_list)) { foreach ($classe_list as $class) { extract(stripslashes_r($class)); echo '<h2>' . $Classe_Name . '</h2>'; echo '<p>' . nl2br($Classe_Description) . '</p>'; echo '<form method="POST" action="' . get_link('Classe', 'Register') . '">'; echo "<input type='hidden' name='Classe_ID' value='{$Classe_ID}' />"; echo "<input type='hidden' name='Account_ID' value='" . $user_record['Account_ID'] . "' />"; echo '<input type="hidden" name="token" value="' . $token . '"/>'; echo '<input type="submit" name="Classe" value="' . LanguageValidation::nMsg("btn.register.classe") . '"/>' . LanguageValidation::eMsg("btn.register.classe"); echo '</form>'; } echo '<p>ATTENTION, ce choix est irréversible, choisissez donc bien</p>'; } else { echo '<form method="POST" action="' . get_link('Classe', 'Register') . '">'; echo "<input type='hidden' name='Classe_ID' value='0' />"; echo "<input type='hidden' name='Account_ID' value='" . $user_record['Account_ID'] . "' />"; //echo '<input type="submit" name="Confirm" value="Rejoindre" />'; echo '<input type="hidden" name="token" value="' . $token . '"/>'; echo '<input type="submit" name="Race" value="' . LanguageValidation::nMsg("btn.register.pass") . '"/>' . LanguageValidation::eMsg("btn.register.pass"); echo '</form>'; } }