


<?php <table> <form method=post name=shoutbox action=$PHP_SELF?op=$op> <tr class=text><td align=right>Nick: </td><td><input type=text name="imie" MAXLENGTH=15></td></tr> <tr class=text><td align=right>Tre¶ć: </td><td><input name="tresc" size=40 MAXLENGTH=220></td></tr> <tr class=text><td align=center><input type=hidden name="ip" value="$REMOTE_ADDR"></td></tr> <tr class=text><td align=center colspan=2><input type=submit name="send" value=Wy¶lij></td></tr> </form> </table> "); #------- if ($all=='ok') { $zapytanie = "SELECT * FROM $shoutbox ORDER BY id DESC"; $wiersz['tresc'] = smilies($wiersz['tresc']); $wiersz['imie'] = smilies($wiersz['imie']); echo ("<br>Napisał: <b>".$wiersz['imie']."</b><br>".$wiersz['tresc']."<br>");echo '<hr size="1" noshade>'; } "); } } ?>
<?php <table> <form method=post name=shoutbox action=$PHP_SELF?op=$op> <tr class=text><td align=right>Nick: </td><td><input type=text name="imie" MAXLENGTH=15></td></tr> <tr class=text><td align=right>Tre¶ć: </td><td><input name="tresc" size=40 MAXLENGTH=220></td></tr> <tr class=text><td align=center><input type=hidden name="ip" value="$REMOTE_ADDR"></td></tr> <tr class=text><td align=center colspan=2><input type=submit name="send" value=Wy¶lij></td></tr> </form> </table> "); #------- if ( $_POST['imie'] == 'zastrzezony_nick' ) // zastrzezony nick podmien swoim { if ( $_SERVER['REMOTE_ADDR'] != '127.0.0.1' ) // oczywiscie zamiast 127.0.0.1 wpisz inne ip :) { } } if ($all=='ok') { $zapytanie = "SELECT * FROM $shoutbox ORDER BY id DESC"; $wiersz['tresc'] = smilies($wiersz['tresc']); $wiersz['imie'] = smilies($wiersz['imie']); echo ("<br>Napisał: <b>".$wiersz['imie']."</b><br>".$wiersz['tresc']."<br>");echo '<hr size="1" noshade>'; } "); } } ?>