Code: Select all
<?
if ($_GETї'pass'] == "getsum") {
$fp = fopen("win.txt","a");
if(!$fp) {
print "There was an error while attempting to open the file!";
exit;
} else {
echo "Wrong!";
}
$fp = fopen("win.txt","a");
if(!$fp) {
print "There was an error while attempting to open the file!";
exit;
}
$stringtowrite="<font color=white><b>".$name."</b></font> <font color=white>has beaten this challenge!</font><div><br>";
fwrite($fp, $stringtowrite);
fclose($fp);
$sp = readfile("win.txt","r");
if(!$sp) {
print "There was an error while attempting to print the file!";
exit;
}
?>Code: Select all
<form action="http://newb.t35.com/nixwin.php">
<font size=2 color=white>Users who have beaten this challenge
<div style="border:#FFFFFF 1px solid;width:300;height:100;" name="winners">
</div>
</font>