<?php
?>
<html>
<head>
<meta http-equiv="Content-Language" content="pl">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title>aaa</title>
</head>
<LINK href="style.css" type=text/css rel=stylesheet>
<body bgcolor="#DED3B9">
<TABLE class=blind cellSpacing=0 id="table1" width="961" height="133">
<TR>
<TD height="133">
<p align="center">
<img border="0" src="logo.jpg" width="957" height="147"></TD></TR></TABLE>
<TABLE class=blind cellSpacing=0 id="table2" width="955" height="544">
<tr>
<TD width="132" height="40" nowrap> </TD>
<TD width="819" height="544" rowspan="8">
<p align="center">
<?php
$login = "$var";
$fp = fopen("user/$login/staty/sila.txt", "r"); $fp1 = fopen("user/$login/staty/zrecznosc.txt", "r"); $zrecznosc =fread($fp1, 4
); $fp2 = fopen("user/$login/staty/zwinnosc.txt", "r"); $zwinnosc =fread($fp2, 4
); $fp3 = fopen("user/$login/staty/inteligencja.txt", "r"); $inteligencja = fread($fp3, 4
); $fp4 = fopen("user/$login/staty/wytrzymalosc.txt", "r"); $wytrzymalosc = fread($fp4, 4
); $fp5 = fopen("user/$login/staty/monety.txt", "r"); $monety = fread($fp5, 25
); $ksila = $sila * 23;
$kzrecznosc = $zrecznosc * 23;
$kzwinnosc = $zwinnosc * 23;
$kinteligencja = $inteligencja * 23;
$kwytrzymalosc = $wytrzymalosc * 23;
?>
<font size="6">Statystyki :</font>
</p>
<p align="center">
</p>
<p align="left">
</p>
<FORM action="postac.php" method="post">
<table border="1" width="100%" id="table3">
<tr>
<td width="98">Siła </td>
<td width="112">
<input type="text" readonly value="
<?php echo $sila; ?>" SIZE=3 class="klasa" width=30 height=30 name="T1" />
</td>
<td width="55">
<input type="button" value="+1" name="si" ></td></td>
</form>
<?php
if ($_POST['si'] == true) {
if ($monety < $ksila)
else
if ($monety > $ksila){
$monety = $monety - $ksila;
$sila = $sila +1;
$file11 = "user/$login/staty/sila.txt";
$fp = fopen($file11, 'w'); $dane=$sila;
$file12 = "user/$login/staty/monety.txt";
$fp = fopen($file12, 'w'); $dane1=$monety;
}
}
?>
<?php
if ($_POST['wy'] == true) {
if ($monety < $kwytrzymalosc)
else
if ($monety > $kwytrzymalosc){
$monety = $monety - $kwytrzymalosc;
$wytrzymalosc= $wytrzymalosc +1;
$file45 = "user/$login/staty/wytrzymalosc.txt";
$fp = fopen($file45, 'w'); $dane45=$wytrzymalosc;
$file45 = "user/$login/staty/monety.txt";
$fp = fopen($file45, 'w'); $dane41=$monety;
}
}
?>
<FORM action="postac.php" method="post">
<td width="80"> Koszt :</td>
<td>
<input type="text" SIZE=6 class="klasa" readonly value="
<?php echo $ksila; ?>" name="T2" /></td>
</tr>
<tr>
<td width="98">Zręcznosc </td>
<td width="112">
<input type="text" SIZE=3 class="klasa" readonly value="
<?php echo $zrecznosc; ?>" name="T3" /></td>
<td width="55">
<input type="button" value="+1" name="zr">
</form>
<?php
if ($_POST['zr'] == true) {
if ($monety < $kzrecznosc)
else
if ($monety > $kzrecznosc){
$monety = $monety - $kzrecznosc;
$zrecznosc = $zrecznosc +1;
$file15 = "user/$login/staty/zrecznosc.txt";
$fp = fopen($file15, 'w'); $dane11=$zrecznosc;
$file16 = "user/$login/staty/monety.txt";
$fp = fopen($file16, 'w'); $dane21=$monety;
}
}
?>
</td>
<td width="80"> Koszt :</td>
<td>
<FORM action="postac.php" method="post">
<input type="text" SIZE=6 class="klasa" readonly value="
<?php echo $kzrecznosc; ?>" name="T4" /></td>
</tr>
<tr>
<td width="98">Zwinnosc</td>
<td width="112">
<input type="text" SIZE=3 class="klasa" readonly value="
<?php echo $zwinnosc; ?>" name="T8" /></td>
<td width="55">
<input type="button" value="+1" name="zw">
</form>
<td width="80"> Koszt :</td>
<?php
if ($_POST['zw'] == true) {
if ($monety < $kzwinnosc)
else
if ($monety > $kzwinnosc){
$monety = $monety - $kzwinnosc;
$zwinnosc = $zwinnosc +1;
$file21 = "user/$login/staty/zwinnosc.txt";
$fp = fopen($file21, 'w'); $dane13=$zwinnosc;
$file22 = "user/$login/staty/monety.txt";
$fp = fopen($file22, 'w'); $dane22=$monety;
}
}
?>
<FORM action="postac.php" method="post">
<td>
<input type="text" SIZE=6 class="klasa" readonly value="
<?php echo $kzwinnosc; ?>" name="T5" /></td>
</tr>
<tr>
<td width="98">Inteligencja</td>
<td width="112">
<input type="text" SIZE=3 class="klasa" readonly value="
<?php echo $inteligencja; ?>" name="T9" ></td>
<td width="55">
<input type="button" value="+1" name="in">
</form>
<?php
if ($_POST['in'] == true) {
if ($monety < $kinteligencja)
else
if ($monety > $kinteligencja){
$monety = $monety - $kinteligencja;
$inteligencja = $inteligencja +1;
$file25 = "user/$login/staty/inteligencja.txt";
$fp = fopen($file25, 'w'); $dane25=$inteligencja;
$file31 = "user/$login/staty/monety.txt";
$fp = fopen($file31, 'w'); $dane31=$monety;
}
}
?>
<td width="80"> Koszt :</td>
<td>
<input type="text" SIZE=6 class="klasa" readonly value="
<?php echo $kinteligencja; ?>" name="T6" /></td>
</tr>
<tr>
<td width="98">Wytrzymałosc</td>
<td width="112">
<input type="text" SIZE=3 class="klasa" readonly value="
<?php echo $wytrzymalosc; ?>" name="T10" ></td>
<td width="55"><input type="button" value="+1" name="wy">
<td width="80"> Koszt :</td>
<td>
<input type="text" SIZE=6 class="klasa" readonly value="
<?php echo $kwytrzymalosc; ?>" name="T7" ></td>
</tr>
</table>
<p align="left">
</p>
<form>
<p>
<br>
</p>
</p>
</TD>
</tr>
<tr>
<TD width="141" height="40" nowrap>
Zlotych monet : <input type="text" readonly value="
<?php echo $monety; ?>" /></TD>
</tr>
<tr>
<TD width="141" height="40" nowrap>
<img src="s.jpg"><a href="postac.php">Postac</a></TD>
</tr>
<tr>
<TD width="141" height="40" nowrap>
<img src="s.jpg"><a href="ekwipunek.php">Ekwipunek</a></TD>
</tr>
<tr>
<TD width="141" height="40" nowrap>
<img src="s.jpg"><a href="polowanie.php">Polowanie</a></TD>
</tr>
<tr>
<TD width="141" height="40" nowrap>
<img src="s.jpg"><a href="sklep.php">Sklep</a></TD>
</tr>
<tr>
<TD width="141" height="40" nowrap>
<img src="s.jpg"><a href="praca.php">Praca</a></TD>
</tr>
<tr>
<TD width="141" height="40" nowrap>
<img src="s.jpg"><a href="index.html">Wyloguj</a></TD>
</tr>
<TR>
<TD width="132" height="384"> </TD></TR></TABLE>
<p>
</p>
<p> </p>
</body>
</html>