<html> <center> <font color=red><b>Szukaj bana:</b></font><br> <table cellspacing='1' class='szukaj'> <tr> <form name="searchnick" method="post" action="ban_search.php"> <td height='16' class='szukaj'>Nick:</td> <td height='16' class='szukaj'><input type='text' name='nick' value='' id="head_search_field"></td> <td height='16' class='szukaj'><input type='image' name='submit' src="http://www.freebuttons.com/freebuttons/ShipControl/ShipControlLj4.gif"></td> </form> </tr> <tr> <form name="searchnick" method="post" action="ban_search.php"> <td height='16' class='szukaj'>IP:</td> <td height='16' class='szukaj'><input type='text' name='steamid' value='' id="head_search_field"></td> <td height='16' class='szukaj'><input type='image' name='submit' src="http://www.freebuttons.com/freebuttons/ShipControl/ShipControlLj4.gif"></td> </form> </tr> </center> </table> </html> <? /* * * AMXBans, managing bans for Half-Life modifications * Copyright (C) 2003, 2004 Ronald Renes / Jeroen de Rover * * web : <a href=\"http://www.xs4all.nl/~yomama/amxbans/\" target=\"_blank\">http://www.xs4all.nl/~yomama/amxbans/</a> * mail : yomama@xs4all.nl * ICQ : 104115504 * * This file is part of AMXBans. * * AMXBans 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 2 of the License, or * (at your option) any later version. * * AMXBans 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 AMXBans; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // Added by Geesu { . "/" . "admin/setup.php"); } $previous_button = NULL; $next_button = NULL; // End Added by Geesu // Start session session_start(); // Require basic site files require("include/config.inc.php"); if ($config->error_handler == "enabled") { include("$config->error_handler_path"); } if ($config->geoip == "enabled") { include("$config->path_root/include/geoip.inc"); } require("$config->path_root/include/functions.lang.php"); require("$config->path_root/include/functions.inc.php"); // First we get the total number of bans in the date base. $resource = mysql_query("SELECT COUNT(bid) AS all_bans FROM $config->bans") or die(mysql_error()); $result = mysql_fetch_object($resource); // Get the page number, if no number is defined make default 1 if(isset($_GET["page"]) AND is_numeric($_GET["page"])) { $page = $_GET["page"]; if($page < 1) { trigger_error("Pagenumbers need to be >= 1.", E_USER_NOTICE); } } else { $page = 1; } ... ... ... ... $smarty->display('main_header.tpl'); $smarty->display('ban_list.tpl'); $smarty->display('main_footer.tpl); ?>
Mam taki kod, doda³em html na góre i wyrzuca mi b³±d co jest ¼le ?