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.
<script language="JavaScript">
function reloadFrame() {
parent.FRAMENAME.reload();
}
</script>
<input type="button" value="blub" onClick="reloadFrame()">
<HTML>
<Head>
<Title>shoutbox</title>
</head>
<frameset rows="20%,80%" frameborder="0">
<Frame name="top" src="sbox0.php" noresize scrolling="no">
<Frame name="bottom" src="sbox1.php" noresize>
</frameset>
</HTML>
<HTML>
<head>
<title>akmachoez - home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="akm.css" type="text/css">
<script language="JavaScript">
function reloadFrame() {
parent.bottom.reload();
}
</script>
</head>
<Body>
<?
echo "<form action='sbox0.php' method='get' enctype='text/plain' name='shoutit'>";
echo "<div align='center'><Font face='arial' size='-2'>Name:</font><br><input type='text' name='name' size='17'><br>";
echo "<Font face='arial' size='-2'>Message:</font><br><input type='text' name='message' size='17'>";
echo "</input>";
echo "<BR><input type='hidden' name='sent' value='true'><input type='submit' value='Up-Chicken' onClick='reloadFrame()'></div>";
$shoutsdatei = "shouts.txt";
if ($sent == true)
{
$sent = false;
//Zeit bestimmen
$Timestamp = time();
$Hour = date("H");
settype($Hour,"integer");
$Hour++;
$time = date("l d/m/Y ").$Hour.date(":i ");
$ip=getenv("REMOTE_ADDR");
$array1 = file($shoutsdatei);
if ($name == "") { $name = "Feige Sau";}
if ($message == "") { $message = " .oO AKM rulez Oo.";}
$name_replaced = str_replace("|","!",$name);
$message_replaced = str_replace("|","!",$message);
array_unshift($array1,$time."|".$name_replaced."|".$message_replaced."|".$ip."\n");
$inhalt = fopen($shoutsdatei,"w+");
foreach($array1 as $var)
{
fwrite($inhalt,$var);
}
fclose($inhalt);
}
?>
</Body>
</HTML>
<HTML>
<head>
<title>akmachoez - home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="20">
<link rel="stylesheet" href="akm.css" type="text/css">
</head>
<Body>
<?
$break_zeichen = 25;
$shoutsdatei = "shouts.txt";
$howmuch_entrys =15;
$lines =0;
$shoutsdat = fopen($shoutsdatei,"r");
while($zeile = fgetcsv($shoutsdat,10000,"|"))
{
for($x=0;$x<count($zeile);$x++)
{
if ($zeilencount == 0) echo "<font face='arial' size='-2'>".$zeile[$x]."</font>";
if ($zeilencount == 1) echo "<font face='arial' size='-1'><b>".$zeile[$x]."</b></font>";
if ($zeilencount == 2) {
$wrap_zeile = wordwrap($zeile[$x],$break_zeichen,"<br>",1);
echo "<font face='arial' size='-2'>".$wrap_zeile;
}
if ($zeilencount == 3) echo "<font face='arial' size='-2'>".$zeile[$x]."</font>";
echo "<br>";
$zeilencount++;
} $lines++;
if ($lines==$howmuch_entrys+1) break;
$zeilencount = 0;
echo "<BR>";
}
?>
</Body>
</HTML>