/* 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_verk_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; } $user_query = "SELECT * FROM users WHERE nick='$qu'"; $user_result = mysql_query($user_query); if ($user_result) { $row = mysql_fetch_array($user_result); if ($row > 0) { $user_id = mysql_result($user_result,0,"id"); Header("location:all_auctions.php?user_id=$user_id&mode=1"); } else { include "header.php"; print $err_font."