1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>geldeintr</title>
</head>
<body>
<?php
0 and is_numeric($Wert)){
$datei = fopen("konto_$usname.txt","a+");
$kstand = fgets($datei);
$neukstand = $kstand +$geld;
$dateix = fopen("konto_$usname.txt","w+");
fwrite($dateix, $neukstand);
fclose($dateix);
$datei = fopen("konto_$uname.txt","a+");
$kstand = fgets($datei);
$neukstand = $kstand -$geld;
$dateix = fopen("konto_$uname.txt","w+");
fwrite($dateix, $neukstand);
fclose($dateix);
}
else
{
$reak="<b>Du hast einen ungültigen Geldbetrag
eingegeben, die Überweisung ist ungültig</b>";
}
$time = time();
$datum = date("d.m.Y", $time);
$datei = fopen("abrechnung_$usname.htm","a+");
$inhalt="<br>
$datum | <b>$geld V€</b> | <i>$grund</i>
| überwiesen von $usname";
fwrite($datei, $inhalt);
fclose($datei);
$geldneu = -$geld;
$datei = fopen("abrechnung_$uname.htm","a+");
$inhalt="<br>
$datum | <b>$geldneu V€</b> | <i>$grund</i>
| überwiesen an $uname";
fwrite($datei, $inhalt);
fclose($datei);
<table style="border-style: dotted; border-width: 1px; font-family: Verdana; font-size: 12px;" border="0" cellpadding="5" cellspacing="0" width="424">
<tbody>
<tr>
<td align="center">Das Geld wurde
überwiesen. Der User hatte vorher V€
und nun V€ </td>
?>
</tr>
</tbody>
</table>
</body>
</html> |