koden er:
<html><head><title>Restaurant Kolding - Partnership</title></head>
<table cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"Gray\" width=\"740\" align=\"center\" height=_ border-top: 1 solid #000000\">
<img src=logo.jpg alt=\'Restaurant Kolding-Partnership\'><?php include \"
http://users.theroom.dk/mnv/banner.php\"; ?>
<table cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"Gray\" width=\"740\" align=\"center\" height=\"15\" border=\"0\" style=\"border-right: 1 solid #000000; border-left: 1 solid #000000; border-bottom: 1 solid #000000; border-top: 1 solid #000000\">
<tr bgcolor=\"#FFFFFF\">
<td width=\"150\" height=\"400\" bgcolor=\"#B7C6D6\" valign=\"top\" align=\"left\">
<div align=> <font face=\"Verdana\" size=\"1\">
<?php include \"menu.php\"; ?>
</div>
</td>
<td width=\"466\" height=\"400\" bgcolor=\"#FFFFFF\" valign=\"top\">
<div ><center><img src=opret.jpg></center>
<?
$fp = fopen(\"users.inf\",\"r\");
while ($input = fgetcsv($fp,4096,\"|\")) {
$users[] = $input[0];
$passwords[] = $input[1];
}
fclose($fp);
for ($i = 0; $i < sizeof($users); $i++) {
if ($action && $navn == $users[$i]) {
?>
<html>
<head>
<title>Brugersystem - Bruger allerede oprettet</title>
</head>
<body bgcolor=\"#ffffff\">
<font face=\"arial, helvetica, sans-serif\" size=\"2\">
<br><br> Dette navn er allerede brugt! Du kan vælge f.eks <? echo(\"$navn\") ?>28.</div>
</td>
<td width=\"150\" height=\"400\" valign=\"top\" bgcolor=\"#B7C6D6\">
<div align=\"center\"></div>
<div align=\"center\"><font face=\"Verdana\" size=\"1\">
<?php
include \"options.php\";
?>
<br>
<br>
<br>
<br>
<br>
</font> <font face=\"Verdana\" size=\"1\"> </font></div>
</td>
</tr>
<tr bgcolor=\"#FFFFFF\" valign=\"middle\" align=\"center\">
<td colspan=\"3\" height=\"20\" style=\"border-top: 1 solid #000000\">
<div align=\"center\"><font face=\"Verdana\" size=\"1\"><i>© All rigths reserved by <a href=http://mnv.whitehat.dk>MNV-Design Solutions!</a> 2000-2001</i><br><a target=\"_blank\" href=\"
http://www.chart.dk/ref.asp?id=48029\"><img alt=\"chart.dk\" border=\"0\" src=\"
http://cluster.chart.dk/chart.asp?id=48029&style=3\"></a></div>
</td>
</tr>
</table>
</font>
</body>
</html>
<?
exit;
}}
if($pass1 == $pass2)
{
$fp = fopen(users.\".inf\",\"a\");
fputs($fp,htmlentities(\"\\n\".stripslashes($navn).\"|\".stripslashes($nicknavn).\"|\".stripslashes($pass1).\"|\".stripslashes($adresse).\"|\".stripslashes($postnr).\"|\".stripslashes($by).\"|\".stripslashes($tlf).\"|\".stripslashes($email)));
fclose($fp);
}
else
{
?>
<html>
<head>
<title>Brugersystem - Du mangler nogle af felterne!</title>
</head>
<body bgcolor=\"#ffffff\">
<font face=\"arial, helvetica, sans-serif\" size=\"2\">
<br><br> Du skal udfylde alle felterne!</div>
</td>
<td width=\"150\" height=\"400\" valign=\"top\" bgcolor=\"#B7C6D6\">
<div align=\"center\"></div>
<div align=\"center\"><font face=\"Verdana\" size=\"1\">
<?php
include \"options.php\";
?>
<br>
<br>
<br>
<br>
<br>
</font> <font face=\"Verdana\" size=\"1\"> </font></div>
</td>
</tr>
<tr bgcolor=\"#FFFFFF\" valign=\"middle\" align=\"center\">
<td colspan=\"3\" height=\"20\" style=\"border-top: 1 solid #000000\">
<div align=\"center\"><font face=\"Verdana\" size=\"1\"><i>© All rigths reserved by <a href=http://mnv.whitehat.dk>MNV-Design Solutions!</a> 2000-2001</i><br><a target=\"_blank\" href=\"
http://www.chart.dk/ref.asp?id=48029\"><img alt=\"chart.dk\" border=\"0\" src=\"
http://cluster.chart.dk/chart.asp?id=48029&style=3\"></a></div>
</td>
</tr>
</table>
</font>
</body>
</html>
<?
exit;
}
?>
<html>
<body bgcolor=\"#ffffff\">
<?
$cookie = ja; // Hvis counteren kun skal én gang pr. computer, skal der stå \"ja\", ellers \"nej\"
$tid = 36288000; // Tid der skal gå, før counteren tæller igen (hvis man bruger cookie)
$file = \"count.txt\"; // Fil, som den skal gemme countertallet i
if($count == \"yeps\") {
} else {
if(file_exists($file)) {
$fil = fopen($file, \"r\");
$count = fread($fil, 8);
fclose($fil);
} else
$count=0;
$count++;
$fil = fopen($file, \"w\");
fwrite($fil, $count);
fclose($fil);
if($cookie == \"ja\") {
setcookie(\"count\",\"yeps\",time()+$tid);
}
}
?>
<font face=\"verdana\" size=\"1\">
Velkommen til vores system <? print(\"$nicknavn\") ?>, du er nu oprettet. Og du kan begynde at bruge systemet nu!<br><br>
Følgende oplysninger er indtastet:<br><br>
Brugernavn: <? print(\"$navn\") ?><br>
Rigtige navn: <? print(\"$nicknavn\") ?><br>
Password:<? print(\"$pass1\") ?><br><br><br>Første gang nu du bruger systemet vil du dog ikke kunne se dit aktuelle tilbud!
</font>
</body>
</html>
</div>
</td>
<td width=\"150\" height=\"400\" valign=\"top\" bgcolor=\"#B7C6D6\">
<div align=\"center\"></div>
<div align=\"center\"><font face=\"Verdana\" size=\"1\">
<?php
include \"options.php\";
?>
<br>
<br>
<br>
<br>
<br>
</font> <font face=\"Verdana\" size=\"1\"> </font></div>
</td>
</tr>
<tr bgcolor=\"#FFFFFF\" valign=\"middle\" align=\"center\">
<td colspan=\"3\" height=\"20\" style=\"border-top: 1 solid #000000\">
<div align=\"center\"><font face=\"Verdana\" size=\"1\"><i>© All rigths reserved by <a href=http://mnv.whitehat.dk>MNV-Design Solutions!</a> 2000-2001</i><br><a target=\"_blank\" href=\"
http://www.chart.dk/ref.asp?id=48029\"><img alt=\"chart.dk\" border=\"0\" src=\"
http://cluster.chart.dk/chart.asp?id=48029&style=3\"></a></div>
</td>
</tr>
</table>