Tak dobře napsal jsem si svuj banlist jo funguje mi ale když jdu na stranku tak vše jde jak má jen jse mi nad balistem ukazuje chyba a pod nim taky 4 chyby mi to píše tod je Index protože všechny chyby směrují do indexu
a píše mi to chyby toty ......................................Notice: Undefined index: action in C:\Apachefriends\xampp\htdocs\ban\index.php on line 6
Notice: Undefined index: ip in C:\Apachefriends\xampp\htdocs\ban\index.php on line 8
Notice: Undefined index: acc in C:\Apachefriends\xampp\htdocs\ban\index.php on line 9
když jsem to hledal tak jsem nic nenašel nevím no asi jsem to bude přehlidl .
<?php
/* Banlist by © asd */
/* asd */
// Proměnné
$form_action = htmlspecialchars(trim($_POST['action']));
// FORM
$form_ip = htmlspecialchars(trim($_POST['ip']));
$form_acc = htmlspecialchars(trim($_POST['acc']));
// Vložíme funkce a nastavení configu
require "data/functions.php";
// Zavoláme základní funkce zjistíme IP a vypíšeme základní výpis na Board
$choice_bg = choice_background();
$hypothetic = hypothetic_info();
// Provedeme kontrolu udaju z Formulare!
$form_ip_checked = control_form_signs($form_ip, "ip");
$form_acc_checked = control_form_signs($form_acc, "acc");
// GET ACTIONs
if ($form_action == "check" AND ($form_ip_checked != "" OR $form_acc_checked != ""))
{
// Zavolej funkci pro kontrolu zadané IP a ACC
$result_msg_box = ban_verification($form_ip_checked, $form_acc_checked);
}
?><!--
Banlist © asd
asd
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="generator" content="sad" />
<meta name="author" content="asd" />
<meta http-equiv="Content-Language" content="cs" />
<meta name="dc.language" content="cs" />
<meta name="geo.country" content="CZ" />
<meta name="copyright" content="© asd" />
<title>Banlist</title>
<link rel="stylesheet" type="text/css" href="css/_ff.css?<?php echo date('dmY', time()); ?>" />
<link rel="shortcut icon" href="http://posterus.cz/favicon.ico" type="image/x-icon" />
<!--[if gte IE 7]>
<link rel="stylesheet" type="text/css" href="css/_ie.css?<?php echo date('dmY', time()); ?>" />
<![endif]-->
</head>
<body>
<div id="mycontent" style="background: #101010 url(images/template_<?php echo $choice_bg; ?>/bg.jpg) top center no-repeat;">
<div id="formular">
<form id="form" method="post" action="">
<div>
<input type="hidden" name="action" value="check" />
<input type="text" name="ip" id="ip_pole" size="15" maxlength="15" value="<?php echo $form_ip_checked; ?>" style="background: #000 url(images/template_<?php echo $choice_bg; ?>/input_bg.gif) top center no-repeat;" />
<br />
<input type="text" name="acc" id="acc_pole" size="15" maxlength="30" value="<?php echo $form_acc_checked; ?>" style="background: #000 url(images/template_<?php echo $choice_bg; ?>/input_bg.gif) top center no-repeat;" />
<br />
<input type="image" name="submit_pole" id="in_submit" value="Zkontroluj" alt="Zkontroluj" src="images/template_<?php echo $choice_bg; ?>/button.gif" />
</div>
</form>
</div>
<div id="infoboxip"><span id="yourip"><?php echo $hypothetic["user_ip"]; ?></span></div>
<div id="infoboxacc"><span id="youracc"><?php echo $hypothetic["user_account"]; ?></span></div>
<?php
if ($result_msg_box["window"] == "show")
{
?>
<div id="infoboxmsg" style="background: url(images/template_<?php echo $choice_bg; ?>/msg_bg.gif) top center no-repeat;">
<span id="headmsg"><br /></span>
<p id="bodymsg">
<?php
if ($result_msg_box["msg_box_ip_show"] == "show")
{
?>
<span class="darkblue">IP Adresa:</span> <?php echo $result_msg_box["user_ip"];?><br />
<span class="lightdarkblue">Status:</span> <?php echo $result_msg_box["msg_box_ip_status"];?><br />
<?php
}
if ($result_msg_box["msg_box_acc_show"] == "show")
{
?>
<span class="darkblue">ACCount:</span> <?php echo $result_msg_box["user_acc"];?><br />
<span class="lightdarkblue">Status:</span> <?php echo $result_msg_box["msg_box_acc_status"]; ?><br />
</p>
</div>
<?php
}
}
?>
</div>
<?php version_board(3, 0); ?>
</body>
</html>