Był to tylko fragment skryptu, podaję teraz cały:
<?php
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<title>Powered by Dark Cms - <a href="http://www.darkcms.xt.pl" target="_blank">http://www.darkcms.xt.pl</a> </title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<?php
include("to.php");
?>
<div class="pds">
<div><img src="images/t1.jpg" alt="" /></div>
<div><img src="images/t2.jpg" alt="" /></div>
<div class="sr">
<table cellpadding="0" cellspacing="0" width="750">
<tr>
<td width="158" valign="top">
<!-- Lewe menu -->
<div class="ng1">Menu</div>
<div class="mtxt1">
<ul class="menu">
<li><a href="wyswietl.php?pokaz=menu1"><? czytaj("options/menu1.txt") ?></a></li>
<li><a href="wyswietl.php?pokaz=menu2"><? czytaj("options/menu2.txt") ?></a></li>
<li><a href="wyswietl.php?pokaz=menu3"><? czytaj("options/menu3.txt") ?></a></li>
<li><a href="wyswietl.php?pokaz=menu4"><? czytaj("options/menu4.txt") ?></a></li>
<li><a href="wyswietl.php?pokaz=menu5"><? czytaj("options/menu5.txt") ?></a></li>
<li><a href="wyswietl.php?pokaz=menu6"><? czytaj("options/menu6.txt") ?></a></li>
</ul>
</div><div><img src="images/m_dol.gif" alt="" /></div>
<div class="ng1">Shoutbox</div>
<div class="mtxt1"><iframe color="silver" width="140" height="auto" scrolling="auto" src="swyswietl.php">Twoja przeglšdarka nie obsługuje ramek iframe!</iframe>
<br><center><a href="shoutbox.php" target="blank">Dopisz się!</a></center></div><div><img src="images/m_dol.gif" alt="" />
</div>
</td>
<td width="432" valign="top">
<!-- ?rodek -->
<div><img src="images/s_top.gif" alt="" /></div>
<div class="srodek">
<?php
$pokaz = $_GET["pokaz"];
if($pokaz == "menu1"){
include($link1);
}
if($pokaz == "menu2"){
include($link2);
}
if($pokaz == "menu3"){
include($link3);
}
if($pokaz == "menu4"){
include($link4);
}
if($pokaz == "menu5"){
include($link5);
}
if($pokaz == "menu6"){
include($link6);
}
?>
</td>
<td width="160" valign="top">
<!-- Prawe menu -->
<div class="ng1">Reklama</div>
<div class="mtxt1">
<ul class="menu">
<li><a href="<?php czytaj("options/reklama1_l.txt"); ?>"><?php czytaj("options/reklama1.txt"); ?></a></li>
<li><a href="<?php czytaj("options/reklama2_l.txt"); ?>"><?php czytaj("options/reklama2.txt"); ?></a></li>
<li><a href="<?php czytaj("options/reklama3_l.txt"); ?>"><?php czytaj("options/reklama3.txt"); ?></a></li>
</ul>
</div><div><img src="images/m_dol.gif" alt="" /></div>
<div class="ng1">Logowanie</div>
<div class="mtxt1"><center>
<?php
if($_SESSION["logon"] == "ok"){
echo("<a href=tunlogon.php target=blank>Wyloguj się!</a>"); }
else
{
echo("<a href=logon.php>Zaloguj się!</a>"); echo("<br><a href=registration.php>Zarejstruj się!</a>"); }
?>
</div><div><img src="images/m_dol.gif" alt="" /></div>
</center>
<div class="ng1">Forum</div>
<div class="mtxt1">
Serdecznie zapraszamy
<br><center>na nasze
<br><a href="forum/">forum</a></center>
<p align="center">
</p>
</div><div><img src="images/m_dol.gif" alt="" /></div>
</td>
</tr>
</table>
</div>
<div><img src="images/dol1.gif" alt="" /></div>
<div><img src="images/dol2.gif" alt="" border="0" usemap="#stopka" /></div>
</div>
<map name="stopka" id="stopka"><area shape="rect" coords="21,9,140,41" href="http://d4u.pl" target="_blank" alt="szablony stron" />
</map>
<map name="menu" id="menu"><area shape="rect" coords="34,4,156,33" href="#stronaglowna" alt="" />
<area shape="rect" coords="163,4,238,33" href="#forum" alt="" />
<area shape="rect" coords="244,3,343,34" href="#ksiegagosci" alt="" />
<area shape="rect" coords="350,3,454,33" href="#katalogstron" alt="" />
<area shape="rect" coords="459,4,559,33" href="#wspolpraca" alt="" />
<area shape="rect" coords="568,4,658,34" href="#reklama" alt="" />
<area shape="rect" coords="663,3,761,34" href="#kontakt" alt="" />
</map>
</body>
</html>
I wyskakuje mi błąd:
Cytat
Fatal error: Cannot redeclare tworzplik() (previously declared in c:\usr\krasnal\www\ja\dark cms-testy\to.php:2) in c:\usr\krasnal\www\ja\dark cms-testy\to.php on line 2