$mysql_result = DataEngine::sql('UPDATE `SQL_PREFIX_itineraire` SET `Flotte`=\'' . sqlesc($_GET['savefleet']) . '\',`Start`=' . intval($_GET['in']) . ',`End`=' . intval($_GET['out']) . ' where `ID`=' . $ligne['ID'] . ' LIMIT 1'); output::boink('Carte.php?loadfleet=' . $ligne['ID']); } else { // Nouveau parcours $sql = 'INSERT INTO `SQL_PREFIX_itineraire` (`Joueur`,`Flotte`,`Start`,`End`) VALUES (\'' . $_SESSION['_login'] . '\',\'' . sqlesc($_GET['savefleet']) . '\',' . intval($_GET['in']) . ',' . intval($_GET['out']) . ')'; $mysql_result = DataEngine::sql($sql); output::boink('Carte.php?loadfleet=' . mysql_insert_id()); } } if (isset($_GET["delfleet"])) { // suppression $mysql_result = DataEngine::sql('SELECT `ID` from `SQL_PREFIX_itineraire` where `ID`=' . intval($_GET['delfleet']) . ' AND `Joueur`=\'' . $_SESSION['_login'] . '\''); if (mysql_num_rows($mysql_result) > 0) { DataEngine::sql('DELETE FROM `SQL_PREFIX_itineraire` WHERE `ID`=' . intval($_GET['delfleet']) . ' LIMIT 1'); } output::boink("Carte.php"); } $_SESSION['inactif'] = $map->inactif = isset($_POST['inactif']) ? true : false; $_SESSION['emp'] = $_SESSION['jou'] = ''; /// CHARGEMENT PARCOURS /// $title = $map->Parcours_loadfleet(); if ($map->itineraire) { $map->parcours = $map->Parcours()->Do_Parcours($map->IN, $map->OUT); $map->load_prefs('1;0;0;0;' . $map->sc . ';' . $map->taille . ';0;0;0'); } include_once TEMPLATE_PATH . 'carte.tpl.php'; $tpl = tpl_carte::getinstance(); $tpl->page_title = $title != '' ? 'Carte: ' . $title . '' : 'EU2: Carte'; $tpl->navigation(); // menu carte $tpl->maparea();
if (isset($_GET['commande'])) { $t = $_GET['commande']; } elseif (isset($_SESSION['commandmode'])) { $t = $_SESSION['commandmode']; } if (!is_null($t)) { if ($t == 'false' && DataEngine::CheckPerms('ZZZ_COMMERCE_MODULES')) { $modecommande = false; $alldisplay = false; $_SESSION['commandmode'] = 'false'; } elseif ($t == 'full') { $alldisplay = true; $modecommande = true; $_SESSION['commandmode'] = 'full'; } else { output::boink('./index.php'); } } if (isset($_POST['submit'])) { if ($_POST['submit'] == 'Lister') { $_SESSION['up_ActivatedSort'] = $_POST['OwnBuild'] == 'on'; $_SESSION['up_ListSort'] = $_POST['TriPar']; } } $boutonscommande = '<input class="color_row0" type="submit" name="submit" value="Suivant >>"> <input class="color_row0" type="submit" name="submit" value="Vider panier">'; // $boutonscommande = '<input class="color_row0" type="submit" name="submit" value="Vider panier"> <input class="color_row0" type="submit" name="submit" value="Suivant >>">'; $tnbcol = 6; // FIN CODE LIBRE ?> <HTML>
if (isset($_POST['login']) && $_POST['login'] != '' && $_POST['mdp'] != '') { $login = gpc_esc($_POST['login']); $qlogin = sqlesc($_POST['login']); $pass = md5($_POST['mdp']); $query = 'SELECT LOWER(`Login`) as `Login` from `SQL_PREFIX_Users` WHERE LOWER(`Login`)=LOWER(\'' . $qlogin . '\')'; $mysql_result = DataEngine::sql($query); $ligne = mysql_fetch_array($mysql_result); if ($ligne['Login'] == $login) { // joueur existe déjà... $erreur = $lng['user_exists']; } else { if (DE_DEMO) { $axx = AXX_MEMBER; $_SESSION['_login'] = $login; $_SESSION['_pass'] = $pass; $_SESSION['_Perm'] = $axx; $_SESSION['_IP'] = Get_IP(); } else { $axx = AXX_VALIDATING; // TODO: Mail admin on event ? } Members::NewUser($login, $pass, $axx, 0, DataEngine::config_key('config', 'DefaultGrade')); $query = 'INSERT INTO `SQL_PREFIX_Log` (`DATE`,`log`,`IP`) VALUES(NOW(),\'login,new:' . $qlogin . '\',\'' . $_SESSION['_IP'] . '\')'; DataEngine::sql($query); output::boink('./', sprintf($lng['user_created'], $login)); } } require_once TEMPLATE_PATH . 'login.tpl.php'; $tpl = tpl_login::getinstance(); $tpl->page_title = $lng['signin_page_title']; $tpl->DoOutput($erreur, true);