mirror of
https://github.com/sigmasternchen/PiSwitch
synced 2025-03-16 00:19:02 +00:00
do not ever echo content before sending headers. this won't work.
This commit is contained in:
parent
b46a0e0994
commit
aa745570ab
1 changed files with 13 additions and 12 deletions
25
index.php
25
index.php
|
@ -1,3 +1,11 @@
|
||||||
|
<?php
|
||||||
|
header("Content-Type: text/html; charset=UTF-8");
|
||||||
|
header("Expires: Mon, 1 Jan 2000 07:00:00 GMT");
|
||||||
|
header("Cache-Control: no-cache, no-store, must-revalidate");
|
||||||
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||||
|
header("Pragma: no-cache");
|
||||||
|
?>
|
||||||
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
@ -5,19 +13,12 @@
|
||||||
<link href="style.css" media="screen" type="text/css" rel="stylesheet">
|
<link href="style.css" media="screen" type="text/css" rel="stylesheet">
|
||||||
<link rel="shotcut icon" type="image/x-icon" href="images/fav00icon.ico">
|
<link rel="shotcut icon" type="image/x-icon" href="images/fav00icon.ico">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<?php
|
|
||||||
header("Content-Type: text/html; charset=UTF-8");
|
|
||||||
header("Expires: Mon, 1 Jan 2000 07:00:00 GMT");
|
|
||||||
header("Cache-Control: no-cache, no-store, must-revalidate");
|
|
||||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
|
||||||
header("Pragma: no-cache");
|
|
||||||
include 'status.php';
|
|
||||||
include 'param.php';
|
|
||||||
include 'name.php';
|
|
||||||
?>
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<?php
|
||||||
|
include 'status.php';
|
||||||
|
include 'param.php';
|
||||||
|
include 'name.php';
|
||||||
|
?>
|
||||||
|
|
||||||
<h1>PiSwitch - Interface
|
<h1>PiSwitch - Interface
|
||||||
<a href="http://raspberrypi.org" target="_blank"><img src="images/pi.png" width="33" height="40"></a>
|
<a href="http://raspberrypi.org" target="_blank"><img src="images/pi.png" width="33" height="40"></a>
|
||||||
|
|
Loading…
Reference in a new issue