Parašė edeni· 2010 Bir. 25 20:06:48
#2
<?php
If(empty($_POST['vardas']) || empty($_POST['text'])) {
?>
<SCRIPT LANGUAGE="javascript">
alert('ERROR')
history.go(-1)
</SCRIPT>
<?php
exit;
}
else {
setlocale(LC_ALL, "lt_LT");
$vardas =stripslashes(trim(htmlspecialchars( $_POST['vardas'])));
$text = stripslashes(trim(htmlspecialchars($_POST['text'])));
$dt = date("y-m-d H:i:s");
$informacija = "<center><table width='171' height='82' border='1'>
<tr>
<td width='161'><img src='http:www.status.blackout-gaming.net/status.php?dns=$text&port=$vardas&style=9' width='12' height='13'></td>
</tr>
</table></center><br> ";
$failas = "gg.txt";
$duomenys =fopen($failas, "a");
fwrite($duomenys, "$informacija \n");
fclose($duomenys);
}
?>
gal taip veiks