Skip to content
Snippets Groups Projects
Commit 8e85fc32 authored by mpomery's avatar mpomery
Browse files

camera.php works now

Needs to have right owner on the server
parent e56339ce
No related merge requests found
<?php
$camera = ($_GET['camera']?$_GET['camera']:'nocamera');
$camera = 'nocamera';
if (isset($_GET['camera']))
$camera=$_GET['camera'];
$imagelocation="../";
$file = $imagelocation.strtolower($camera).".jpg";
header("Expires: ".gmdate("D, d M Y H:i:s", time())." GMT");
if (!is_readable($file)) {
if (!is_readable($file))
$file="nocamera.jpg";
}
header("Content-Type: image/jpeg");
header("Content-Length: ".filesize($file));
header("Last-Modified: ".gmdate("D, d M Y H:i:s", filectime($file))." GMT");
......
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