Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<?
// falls passwort richtig dann wird dorthin verwiesen
$relink ="geschützt.html";
$pass[0] = "hallo";
$password = $_POST['password']; // Wenn das nicht funktioniert, dann mit $password = $HTTP_POST_VARS['password']; versuchen
for($i=0;$i<count($pass);$i++){
if($pass[$i] == $password){
header("Location: $relink");
exit;
}
}
?>
<html>
<body>
<form method="post" action="<?=$PHP_SELF?>">
<input type="text" "name="password">
<input type="submit" value="submit">
</form>
</body>
</html>
<?
/* Einstellungen */
$granted = "geschützt.html"; // Eingelockt
$denied = "fehler.html"; // Falsches Passwort
$pass[0] = "hallo";
/* Einstellungen */
/* DO NOT TOUCH ANYTHING */
$password = $_POST['password'];
if($_POST['submit']){
foreach($pass as $value){
$relink = $value == $password?$granted:$denied;
header("Location: $relink");
}
}
?>
<html>
<body>
<form method="post" action="<?=$PHP_SELF?>">
<input type="text" name="password">
<input type="submit" name="submit">
</form>
</body>
</html>