New Page
<?php
$send =$_GET['username'];
$von =$_GET['von'];
$zahl1 = file_get_contents("zahl.txt");
$zahl3 = file_get_contents("/home/strato/www/vb/www.vbchat.streamdiscounter.de/htdocs/$send/zahl.txt");
$zahl2 =$_GET['anzahl'];
$date = date("l dS of F Y h:i:s A");
if ($zahl1<1) {
echo "Du hast nicht genügend Punkte!"; } else {
$addition = $zahl1 - $zahl2;
$daten = $addition;
$dateihandle = fopen("zahl.txt","w");
fwrite($dateihandle, $daten);
$addition1 = $zahl3 + $zahl2;
$dateihandle = fopen("/home/strato/www/vb/www.vbchat.streamdiscounter.de/htdocs/$send/zahl.txt","w");
$daten1 = $addition1;
fwrite($dateihandle, $daten1);
if($addition1 < 50){
echo "-"; } else {
unlink("http://vbchat.streamdiscounter.de/verbindet-freunde/User/myprofil/$send/icon_stern.png");
copy("http://vbchat.streamdiscounter.de/verbindet-freunde/User/myprofil/sterne/sterngelb2.png","http://vbchat.streamdiscounter.de/verbindet-freunde/User/myprofil/$send/icon_stern.png");
}
if($addition1 < 100){
echo "-"; } else {
unlink("http://vbchat.streamdiscounter.de/verbindet-freunde/User/myprofil/$send/icon_stern.png");
copy("http://vbchat.streamdiscounter.de/verbindet-freunde/User/myprofil/sterne/sterngelb3.png","http://vbchat.streamdiscounter.de/verbindet-freunde/User/myprofil/$send/icon_stern.png");
}
if($addition1 < 250){
echo "-"; } else {
unlink("http://vbchat.streamdiscounter.de/verbindet-freunde/User/myprofil/$send/icon_stern.png");
copy("http://vbchat.streamdiscounter.de/verbindet-freunde/User/myprofil/sterne/sterngelb4.png","http://vbchat.streamdiscounter.de/verbindet-freunde/User/myprofil/$send/icon_stern.png");
}
if($addition1 < 500){
echo "-"; } else {
unlink("http://vbchat.streamdiscounter.de/verbindet-freunde/User/myprofil/$send/icon_stern.png");
copy("http://vbchat.streamdiscounter.de/verbindet-freunde/User/myprofil/sterne/sterngelb5.png","http://vbchat.streamdiscounter.de/verbindet-freunde/User/myprofil/$send/icon_stern.png");
}
$daten5 = "> User: schickt am $date $send $zahl2 Punkte bekommen! \n";
$dateihandle3 = fopen("/home/strato/www/vb/www.vbchat.streamdiscounter.de/htdocs/.txt","a+");
fwrite($dateihandle3, $daten5);
echo"<p><a href='#'><img alt='' onclick='self.close()' src='http://s3.directupload.net/images/100723/uq3yl3sk.png' /></a></p>
<meta http-equiv='refresh' content='1; URL=http://myprofil.net/profile/$send.html'>
";}
?>

