index.php :
<?php
#===============================================================
include('funkcje.php');
#===============================================================
# tytuł strony
$title = 'eM-Pe-3.cba.pl - tysišce mp3 !!';
# nagłówki 1, 2, 3 i 4
$naglowek1 = 'Info';
$naglowek2 = 'Najnowsze mp3';
$naglowek3 = 'ShoutBox';
$naglowek4 = 'Newsy na stronie';
$s = ' ';
# tre?ć przypisywana do danego nagłówka, np. $naglowek1 i $tresc1 tworzš jedno z 4 pól
na stronie
$tresc1 = 'Witam na stronie z której można pobrać ogromne ilości mp3!! Chyba wiecej Info wa
m nie potrzeba ;-). ';
$t2='Narazie na stronie trwajš testy i aktualizacje, wieksza część strony nie jest ud
ostepniona...
<a href="index.php">[Czekaj...]</a><br>';
$tresc2 = ($t2).($s);
$tresc3 = '
<html>
<head>
<style type="text/css">
table {background: #FFFFFF; border:solid 0px #9200F2;}
td {font-family: Arial; font-size: 12px;}
li {list-style-type: none; }
li:hover {list-style-type: none; background: #C564FF;}
.tekst {}
input {background: #D3B3FF; border:solid 1px #9200F2; }
hr { border:solid 1px #000000;}
.ostatni {font-size: 10px;}
.ostatniwyraz {font-size: 20px;}
.ostatnitlo {background: #000000; border:solid 1px #000000;}
</style>
echo (
echo "<center><table border="0" width="33%"><tr><td>";
$polenr1 = trim($weq);
$polenr2 = trim($weq2);
if(empty($polenr1) and empty($polenr1)) {
echo "<center><form action="" method="post">
Nick: <input class="tekst" type="text" name="$weq2" value="" size="" /><br>
Treść: <input class="tekst" type="text" name="$weq" value="" size="" /><br>
<input type="submit" value="Dopisz"/></form></center>";
} else {
echo "<center><form action="" method="post">
Nick: <input class="tekst" type="text" name="weq2" value="" size="" /><br>
Treść: <input class="tekst" type="text" name="weq" value="" size="" /><br>
<input type="submit" value="Dopisz"/></form></center>";
$filtr = ($polenr1);
$filtr = str_replace("0","",$filtr);
$filtr = str_replace("1","",$filtr);
$filtr = str_replace("2","",$filtr);
$filtr = str_replace("3","",$filtr);
$filtr = str_replace("4","",$filtr);
$filtr = str_replace("5","",$filtr);
$filtr = str_replace("6","",$filtr);
$filtr = str_replace("7","",$filtr);
$filtr = str_replace("8","",$filtr);
$filtr = str_replace("9","",$filtr);
$filtr = str_replace("<","",$filtr);
$filtr = str_replace(">","",$filtr);
$filtr = str_replace("."," ",$filtr);
$filtr = str_replace("="," ",$filtr);
$filtr = str_replace("kurw","",$filtr);
$filtr = str_replace("huj","",$filtr);
$filtr = str_replace("dup","",$filtr);
$filtr = str_replace("jeb","",$filtr);
$filtr = str_replace("cip","",$filtr);
$filtr = str_replace("kuta","",$filtr);
$filtr = str_replace("www","",$filtr);
$filtr = str_replace("pl","",$filtr);
$filtr = str_replace("PL","",$filtr);
$filtr = str_replace("com","",$filtr);
$filtr = str_replace("COM","",$filtr);
$filtr = str_replace("photoblog","",$filtr);
$filtr = str_replace("blog","",$filtr);
$filtr = str_replace("onet","",$filtr);
$filtr = str_replace("ONET","",$filtr);
$filtr = str_replace("http://","",$filtr);
$old_content = file("box.txt");
$lines = count($old_content);
$new = fopen("box.txt", "w");
flock($new, 2);
fwrite($new, "<b>$polenr2: </b>$filtr<br>\n");
for($i=0; $i<$lines;$i++) {
fwrite($new, $old_content[$i]);
}
flock($new, 3);
fclose($new);}
include ("box.txt");
echo </td></tr></table>;
</head>
</html>
);
';
$tresc4 = '
MaciekDZN | 01.01.2008<br>
Witam ! ';
head($title, $naglowek1, $naglowek2, $naglowek3, $naglowek4, $tresc1, $tresc2, $tresc3, $tresc4);
footer();
?>
funkcje.php :
<?php
#################################################################
function head($title, $naglowek1, $naglowek2, $naglowek3, $naglowek4, $tresc1, $tresc2, $tresc3, $tresc4) {
<html>
<head>
<meta http-equiv="Content-Language" content="pl">
<link rel="stylesheet" href="style.css" type="text/css">
<title>'.$title.'</title>
<META name="robots" content="index,follow,all">
<META name="description" content="tysiące mp3 download">
<META name="keywords" content="tysiące mp3 download">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
</head>
<body>
<center>
<table width="900" border="0" cellpadding="0" cellspacing="0">
<!-- LOGO -->
<tr>
<td background="images/gradient_l.png" width="900" height="133" colspan="2">
<a href="index.php"><img src="images/logo.png" align="left" border="0"></a></td>
</tr>
<!-- MENU GÓRNE -->
<tr>
<td background="images/gradient_m.png" width="900" height="36" colspan="2">
<a href="index.php" class="menu">Home</a>
<a href="download.php" class="menu">Download</a>
<a href="add1.php" class="menu">Dodaj...</a>
<a href="kontakt.php" class="menu">Kontakt</a>
<a href="/ksiega/" class="menu">Księga Gości</a>
</td>
</tr>
<!-- TŁO tlo_news_gl.png -->
<tr>
<td width="330" height="200" valign="top" class="tlo_news_gl">
<div class="tytul">'.$naglowek1.'</div>
<div class="news">'.$tresc1.'</div>
<!-- TŁO tlo_news_gr.png -->
<td width="570" height="200" valign="top" class="tlo_news_gr">
<div class="tytul" style="color: #ffffff;">'.$naglowek2.'</div><div class="news" style="color: #ffffff;">'.$tresc2.'</div>
</td>
</td>
</tr>
<!-- CZYSTE BG -->
<tr>
<td width="330" valign="top">
<div class="tytul">'.$naglowek3.'</div>
<img src="images/linia.png"><br>
<div class="news">'.$tresc3.'</div>
<!-- TŁO tlo_news.png -->
<td width="570" height="215" valign="top" class="tlo_news">
<div class="tytul">'.$naglowek4.'</div><div class="news">'.$tresc4.'</td>
</td>
</tr>
';
}
#################################################################
function footer() {
<!-- STOPKA -->
<tr>
<td background="images/gradient_s.png" width="900" height="35" align="center" colspan="2" class="stopka">
Š 2007 Website design by <a href="http://www.yoyo.pl">eM-Pe-3 - tysiące mp3 !!!</a>
</td>
</tr>
<!-- ODBICIE -->
<tr>
<td background="images/odbicie_s.png" width="900" height="88" colspan="2"></td>
</tr>
<!-- RESZTA -->
</table>
</center>
</body>
</html>
';
}
#################################################################
?>
chodzi mi o shoutbox
tak wyświetla mi tą strone:
(IMG:
http://em-pe-3.yoyo.pl/obrazek.jpg)