aus dem "Buch" entnommen:
PHP-Code:
<html>
<head>
<title>Kennen Sie das Passwort?</title>
</head>
<body>
<h1>Bitte geben Sie das Passwort ein!</h1>
<form action="<?php echo $PHP_SELF; ?>" method="post">
<input type="text" name="passwort">
<input type="submit" value="Senden">
<?php
if (isset($passwort)) {
switch ($passwort) {
case "irgendeinpasswortambestenalphanummerisch2416256":
?>
<h3> PW geschützter Bereich</h3>
INFO INFO INFO </p>
<?php
break;
default:
?>
<h3> Ohne korrektes Passwort keine Infos... </h3>
<?php
}
}
?>
PHP Unterstützung von deinem Server muss schon vorhanden sein.
____________________________________
GNU/Linux, die süßeste Verführung seit es Computer gibt.
Programmieren ist eine Wissenschaft sowie Kunst...
Software-Patente sind wie in Kunst, jeden Pinselstrich zu patentieren.
Windows: A 64-bit rewrite of a 32-bit extension and GUI shell to 16-bit patch to an 8-bit operating system originally coded for a 4-bit microprocessor and sold by a 2-bit company that can\'t stand one bit of competition.
|