Commit 09ca28b2 authored by Leigh Stoller's avatar Leigh Stoller

Revert to still images for the webcams until I have a solution.

parent 2a38a715
......@@ -53,6 +53,18 @@ if (!$query_result || !mysql_num_rows($query_result)) {
MyError("There are no webcams to view!");
}
if (isset($refreshrate)) {
echo "<center>
<a href=webcam.php3>Stop Auto-refresh.</a>
</center>\n";
}
else {
echo "<center>
<a href=webcam.php3?refreshrate=1>Auto-refresh</a> images at one
second interval.
</center>\n";
}
echo "<table cellpadding='0' cellspacing='0' border='0' class='stealth'>\n";
while ($row = mysql_fetch_array($query_result)) {
......
......@@ -50,7 +50,7 @@ if (!$query_result || !mysql_num_rows($query_result)) {
MyError("No such webcam ID: '$webcamid'");
}
$row = mysql_fetch_array($query_result);
$URL = $row["URL"];
$URL = $row["stillimage_URL"];
#
# Check sitevar to make sure mere users are allowed to peek at us.
......@@ -81,10 +81,9 @@ if (!$socket) {
# of the interface we are using (fopen). No biggie, but we have to
# spit them out ourselves so the client knows what to do.
#
header("Content-type: multipart/x-mixed-replace; boundary=--myboundary");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
#header("Content-type: multipart/x-mixed-replace;boundary=--myboundary");
#TBERROR(print_r($http_response_header, TRUE) . "\n\n", 0);
#
# Clean up when the remote user disconnects
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment