Webcam-Refresh

[insert_php]
date_default_timezone_set(‘America/New_York’);
$now = time(); // or your date as well
$maxmin = 15;
$maxtime = 60*$maxmin;
//echo ‘now = ‘ . $now . ‘
‘;
//echo ‘imagedate = ‘ . $imagedate . ‘
‘;
//echo ‘datediff = ‘ . $datediff . ‘
‘;
[/insert_php]

 

Roemer Storage Tanks [insert_php]echo ” – ” . date (“F d, Y – g:i a”, filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-Home-Tanks.jpg’));[/insert_php]

[insert_php]
$imagedate =filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-Home-Tanks.jpg’);
$datediff = $now – $imagedate;
if ($datediff > $maxtime) {
echo ‘

PHOTO IS > ‘ . $maxmin . ‘ MINUTES OUT OF DATE

‘;
}
[/insert_php]

 Roemer Reverse Osmosis (RO) Room[insert_php]echo ” – ” . date (“F d, Y – g:i a”, filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-Home-RO.jpg’));[/insert_php]
[insert_php]
$imagedate =filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-Home-RO.jpg’);
$datediff = $now – $imagedate;
if ($datediff > $maxtime) {
echo ‘

PHOTO IS > ‘ . $maxmin . ‘ MINUTES OUT OF DATE

‘;
}
[/insert_php]

 RoemerRoemer Releaser[insert_php]echo ” – ” . date (“F d, Y – g:i a”, filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-0d.jpg’));[/insert_php]
[insert_php]
$imagedate =filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-0d.jpg’);
$datediff = $now – $imagedate;
if ($datediff > $maxtime) {
echo ‘

PHOTO IS > ‘ . $maxmin . ‘ MINUTES OUT OF DATE

‘;
}
[/insert_php]

  Evaporator Feeder Tank[insert_php]echo ” – ” . date (“F d, Y – g:i a”, filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-0c.jpg’));[/insert_php]
[insert_php]
$imagedate =filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-0c.jpg’);
$datediff = $now – $imagedate;
if ($datediff > $maxtime) {
echo ‘

PHOTO IS > ‘ . $maxmin . ‘ MINUTES OUT OF DATE

‘;
}
[/insert_php]

 Faust Road Releaser[insert_php]echo ” – ” . date (“F d, Y – g:i a”, filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-1a.jpg’));[/insert_php]
[insert_php]
$imagedate =filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-1a.jpg’);
$datediff = $now – $imagedate;
if ($datediff > $maxtime) {
echo ‘

PHOTO IS > ‘ . $maxmin . ‘ MINUTES OUT OF DATE

‘;
}
[/insert_php]

 Faust Road Storage Tanks[insert_php]echo ” – ” . date (“F d, Y – g:i a”, filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-1b.jpg’));[/insert_php]
[insert_php]
$imagedate =filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-1b.jpg’);
$datediff = $now – $imagedate;
if ($datediff > $maxtime) {
echo ‘

PHOTO IS > ‘ . $maxmin . ‘ MINUTES OUT OF DATE

‘;
}
[/insert_php]

Robinson Road Releaser[insert_php]echo ” – ” . date (“F d, Y – g:i a”, filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-2a.jpg’));[/insert_php]
[insert_php]
$imagedate =filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-2a.jpg’);
$datediff = $now – $imagedate;
if ($datediff > $maxtime) {
echo ‘

PHOTO IS > ‘ . $maxmin . ‘ MINUTES OUT OF DATE

‘;
}
[/insert_php]

 Robinson Road East Storage Tanks[insert_php]echo ” – ” . date (“F d, Y – g:i a”, filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-2b.jpg’));[/insert_php]
[insert_php]
$imagedate =filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-2b.jpg’);
$datediff = $now – $imagedate;
if ($datediff > $maxtime) {
echo ‘

PHOTO IS > ‘ . $maxmin . ‘ MINUTES OUT OF DATE

‘;
}
[/insert_php]

 Robinson Road West Storage Tanks[insert_php]echo ” – ” . date (“F d, Y – g:i a”, filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-2c.jpg’));[/insert_php]
[insert_php]
$imagedate =filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-2c.jpg’);
$datediff = $now – $imagedate;
if ($datediff > $maxtime) {
echo ‘

PHOTO IS > ‘ . $maxmin . ‘ MINUTES OUT OF DATE

‘;
}
[/insert_php]

 Brass Road Releaser[insert_php]echo ” – ” . date (“F d, Y – g:i a”, filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-3a.jpg’));[/insert_php]
[insert_php]
$imagedate =filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-3a.jpg’);
$datediff = $now – $imagedate;
if ($datediff > $maxtime) {
echo ‘

PHOTO IS > ‘ . $maxmin . ‘ MINUTES OUT OF DATE

‘;
}
[/insert_php]

Brass Road Storage Tanks[insert_php]echo ” – ” . date (“F d, Y – g:i a”, filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-3b.jpg’));[/insert_php]
[insert_php]
$imagedate =filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-3b.jpg’);
$datediff = $now – $imagedate;
if ($datediff > $maxtime) {
echo ‘

PHOTO IS > ‘ . $maxmin . ‘ MINUTES OUT OF DATE

‘;
}
[/insert_php]

[insert_php]$files = array();

$dir = ‘/home/jake/public_html/novamaple.com/webcam/coop/’;

if ($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
$truefile = $dir . $file;
//echo ‘location = ‘ . $truefile . ”;
//echo ‘isfile = ‘ . is_file($truefile) . ”;

if (is_file($truefile)) {
$modified = filemtime($truefile);
$files[$modified] = $file;
//echo ‘modified = ‘ . $modified . ”;
} else {
//echo ‘modified is not a file’;
}
}
closedir($handle);
}

krsort($files);
$last_modified_file = array_shift($files);
$fullpathname = ‘/home/jake/public_html/novamaple.com/webcam/coop/’ . $last_modified_file;
$halfpathname = ‘http://nuclearnova.com/novamaple.com/webcam/coop/’ . $last_modified_file . ‘?v=’ . rand(0,100000);
//echo ‘fullpathname = ‘ . $fullpathname . ”;
//echo ‘halfpathname = ‘ . $halfpathname . ”;

echo ‘

Chicken Coop – ‘ . date (“F d, Y – g:i a”, filemtime($fullpathname)) . ‘

‘;

[/insert_php]

 

Brian Releaser[insert_php]echo ” – ” . date (“F d, Y – g:i a”, filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-Brian-Releaser.jpg’));[/insert_php]
[insert_php]
$imagedate =filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-Brian-Releaser.jpg’);
$datediff = $now – $imagedate;
if ($datediff > $maxtime) {
echo ‘

PHOTO IS > ‘ . $maxmin . ‘ MINUTES OUT OF DATE

‘;
}
[/insert_php]

Brian Tanks[insert_php]echo ” – ” . date (“F d, Y – g:i a”, filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-Brian-Tanks.jpg’));[/insert_php]
[insert_php]
$imagedate =filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-Brian-Tanks.jpg’);
$datediff = $now – $imagedate;
if ($datediff > $maxtime) {
echo ‘

PHOTO IS > ‘ . $maxmin . ‘ MINUTES OUT OF DATE

‘;
}
[/insert_php]

Brian New[insert_php]echo ” – ” . date (“F d, Y – g:i a”, filemtime(‘/home/jake/public_html/novamaple.com/webcam/Nova-Brian-New.jpg’));[/insert_php]