* All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * --> NOTICE <-- * This file is part of the core development branch, changing its contents will * make you unable to use the automatic updates manager. Please refer to the * documentation for further information about customizing XNova. * */ define('INSIDE' , true); define('INSTALL' , false); require_once dirname(__FILE__) .'/common.php'; $users = doquery("SELECT * FROM {{table}} WHERE id='".$user['id']."';", 'users'); $annonce = doquery("SELECT * FROM {{table}} ", 'annonce'); $action = $_GET['action']; if ($action == 5) { $metalvendre = $_POST['metalvendre']; $cristalvendre = $_POST['cristalvendre']; $deutvendre = $_POST['deutvendre']; $metalsouhait = $_POST['metalsouhait']; $cristalsouhait = $_POST['cristalsouhait']; $deutsouhait = $_POST['deutsouhait']; while ($v_annonce = $users->fetch(PDO::FETCH_BOTH)) { $user = $v_annonce['username']; $galaxie = $v_annonce['galaxy']; $systeme = $v_annonce['system']; } doquery("INSERT INTO {{table}} SET user='{$user}', galaxie='{$galaxie}', systeme='{$systeme}', metala='{$metalvendre}', cristala='{$cristalvendre}', deuta='{$deutvendre}', metals='{$metalsouhait}', cristals='{$cristalsouhait}', deuts='{$deutsouhait}'" , "annonce"); $page2 .= <<

Votre Annonce a bien été enregistrée !


Retour aux annonces

HTML; display($page2); } if ($action != 5) { $annonce = doquery("SELECT * FROM {{table}} ORDER BY `id` DESC ", "annonce"); $page2 = "

"; while ($b = $annonce->fetch(PDO::FETCH_BOTH)) { $page2 .= '"; } $page2 .= "
Petites Annonces
Infos de livraisonRessources à vendreRessources souhaitéesAction
VendeurGalaxieSystèmeMétalCristalDeuteriumMétalCristalDeuteriumDelet
'; $page2 .= $b["user"] ; $page2 .= ''; $page2 .= $b["galaxie"]; $page2 .= ''; $page2 .= $b["systeme"]; $page2 .= ''; $page2 .= $b["metala"]; $page2 .= ''; $page2 .= $b["gcristala"]; $page2 .= ''; $page2 .= $b["deuta"]; $page2 .= ''; $page2 .= $b["metals"]; $page2 .= ''; $page2 .= $b["cristals"]; $page2 .= ''; $page2 .= $b["deuts"]; $page2 .= ''; $page2 .= "
Ajouter une Annonce
"; display($page2); } // Créer par Tom1991 Copyright 2008 // Merci au site Spacon pour m'avoir donner l'inspiration ?>