/* Copyright (c), 1999, 2000 - phpauction 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 (version 2 or later). 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, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ include "./includes/messages.inc.php"; include "./includes/config.inc.php"; // Beim Erstaufruf die Eingabemaske anzeigen: if (empty($action)) { include "header.php"; include "./templates/template_search_art_php.html"; include "footer.php"; } // User hat den Button angeklickt: else { $qu = trim($keyword); $query = "".$qu; $query = "".$query; $searchQuery = $query; $qquery = ereg_replace("%","\\%",$query); $qquery = ereg_replace("_","\\_",$qquery); // Der DAU hat nix eingegeben ;-) if ( strlen($query)==0 ) { include "header.php"; print $tlt_font; include "templates/template_empty_search.html"; include "footer.php"; exit; } $art_query = "select * from auctions where id='$keyword'"; $result = mysql_query($art_query); if ($result) { $row=mysql_fetch_array($result); if ($row > 0) { Header("location:item.php?id=$keyword&mode=1"); } else { include "header.php"; print $err_font."