$msgAll $msgBest $msgInfos $msgHelp $msgExif
END; // Render cam overview if (isset($webcam['overview'])) { $num= 0; foreach ($webcam['overview'] as $cam) { $name= $cam[0]; $current= $cam[1]; $link= $cam[2]; $title= $cam[3]; if ($current === null) { $current= $webcam['uri']."/$name/current"; // If hosted locally and older than 5h, do not list if ($current[0]=='/') { $img= $_SERVER['DOCUMENT_ROOT']."$current/400.jpg"; if (filemtime($img)=12) { $lazy1= ""; } $webcamMenu.= "". "$lazy1$lazy2\n"; $num++; } $webcamMenu.= ' '; } if (isset($webcam['extOverview'])) { $webcamMenu.= ""; foreach ($webcam['extOverview'] as $cam) { $name= $cam[0]; $current= $cam[1]; $link= $cam[2]; $title= $cam[3]; $style= ""; if (isset($cam[4])) { $style= $cam[4]; } $current= preg_replace("#/$#", "", $current); $target= ""; if (preg_match("/^http/", $link)) { $target= "target='_blank'"; } $webcamMenu.= "". "". "". "\n"; } $webcamMenu.= ' '; } $webcamMenu.= <<
END; // ---------------------------------------------------------------------------- // Fetch configuration of this particular camera require "$webcamWorkpath/config.php"; $webcamTitle= $webcam['title']; $webcamShort= $webcam['short']; $webcamKeywords= isset($webcam['keywords'])?$webcam['keywords']:""; $webcamMainWidth= $webcam['mainWidth']; $webcamMainHeight= $webcam['mainHeight']; $webcamHdWidth= $webcam['hdWidth']; $webcamHdHeight= $webcam['hdHeight']; $webcamThumbWidth= $webcam['thumbWidth']; $webcamThumbHeight= $webcam['thumbHeight']; $webcamHugeWidth= $webcam['hugeWidth']; $webcamHugeHeight= $webcam['hugeHeight']; $webcamActMinute= $webcam['actMinute']; $webcamBoxAdd= $webcam['boxAdd']; $webcamUrl= ""; if (isset($webcam['url'])) { $webcamUrl= $webcam['url']; } // ---------------------------------------------------------------------------- // If requested, load cam information file if (isset($_GET["infos"])) { $fi= @fopen("$webcamWorkpath/infos/index.html", "rt"); if ($fi) { while (! feof($fi)) { $line= fgets($fi); if (! preg_match("/^